! Started logfile: J1357+7643_S_2001_07_05_pus_uvs.log on Fri Aug 10 01:26:49 2007
obs J1357+7643_S_2001_07_05_pus_uva.fits
! Reading UV FITS file: J1357+7643_S_2001_07_05_pus_uva.fits
! AN table 1: 62 integrations on 171 of 171 possible baselines.
! AN table 2: 203 integrations on 171 of 171 possible baselines.
! AN table 3: 424 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.328767 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1357+7643
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1774 lines of history.
! 
! Reading 154940 visibilities.
select I
! Polarization I is unavailable.
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
print "field_size =",field_size
! field_size = 512 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 531 telescope corrections were flagged in sub-array 1.
!  A total of 1933 telescope corrections were flagged in sub-array 2.
!  A total of 4155 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 531 telescope corrections were flagged in sub-array 1.
!  A total of 1933 telescope corrections were flagged in sub-array 2.
!  A total of 4149 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 531 telescope corrections were flagged in sub-array 1.
!  A total of 1933 telescope corrections were flagged in sub-array 2.
!  A total of 4155 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 531 telescope corrections were flagged in sub-array 1.
!  A total of 1933 telescope corrections were flagged in sub-array 2.
!  A total of 4171 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.645148Jy  sigma=0.004847
! Fit after  self-cal, rms=0.289382Jy  sigma=0.001725
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.939 mas, bmaj=1.964 mas, bpa=36.57 degrees
! Estimated noise=521.946 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.729624 Jy
! Component: 100  -  total flux cleaned = 0.888729 Jy
! Total flux subtracted in 100 components = 0.888729 Jy
! Clean residual min=-0.009530 max=0.044608 Jy/beam
! Clean residual mean=0.000050 rms=0.002440 Jy/beam
! Combined flux in latest and established models = 0.888729 Jy
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 0.888729 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.293051Jy  sigma=0.001796
! Fit after  self-cal, rms=0.293037Jy  sigma=0.001796
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.037878 Jy
! Component: 100  -  total flux cleaned = 0.0575684 Jy
! Total flux subtracted in 100 components = 0.0575684 Jy
! Clean residual min=-0.009122 max=0.010671 Jy/beam
! Clean residual mean=0.000029 rms=0.002162 Jy/beam
! Combined flux in latest and established models = 0.946298 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 16 components and 0.946298 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.285355Jy  sigma=0.001694
! Fit after  self-cal, rms=0.285346Jy  sigma=0.001693
! Inverting map 
print "************** FINISHED UNIFORM WEIGHTING CLEAN **************"
! ************** FINISHED UNIFORM WEIGHTING CLEAN ************** 
! 
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
win_mult = win_mult * 1.6
clean_niter = clean_niter * 2
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.369 mas, bmaj=2.487 mas, bpa=-49.95 degrees
! Estimated noise=223.11 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0249207 Jy
! Component: 100  -  total flux cleaned = 0.037084 Jy
! Component: 150  -  total flux cleaned = 0.0436274 Jy
! Component: 200  -  total flux cleaned = 0.0472764 Jy
! Total flux subtracted in 200 components = 0.0472764 Jy
! Clean residual min=-0.005639 max=0.006254 Jy/beam
! Clean residual mean=0.000174 rms=0.001480 Jy/beam
! Combined flux in latest and established models = 0.993574 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 25 components and 0.993574 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.283787Jy  sigma=0.001666
! Fit after  self-cal, rms=0.283766Jy  sigma=0.001666
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.08     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        0.95     KK        1.00*    KP        1.16     
!   LA        1.08     MC        1.02     MK        1.05     NL        1.01     
!   NY        1.01     OV        1.07     PT        1.03     SC        1.03     
!   TS        1.04     WF        1.03     WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.01     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.04     KP        1.09     
!   LA        1.01     MC        0.98     MK        1.01     NL        1.00     
!   NY        1.00     OV        0.96     PT        0.98     SC        1.04     
!   TS        0.99     WF        1.00     WZ        1.00     
! 
!  A total of 141 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.01     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.95     KK        1.01     KP        1.00     
!   LA        1.01     MC        0.99     MK        1.00     NL        0.99     
!   NY        1.00     OV        0.97     PT        0.97     SC        1.00     
!   TS        1.00     WF        0.99     WZ        1.00     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.08     GC        0.93     GG        1.00*    
!   HH        1.00*    HN        0.95     KK        1.00*    KP        1.04     
!   LA        1.04     MC        0.93     MK        1.06     NL        0.99     
!   NY        0.99     OV        1.10     PT        1.07     SC        1.06     
!   TS        1.03     WF        1.03     WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        1.02     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.05     KP        0.92     
!   LA        0.97     MC        0.91     MK        0.99     NL        0.97     
!   NY        1.02     OV        1.00     PT        1.00     SC        1.06     
!   TS        0.98     WF        1.01     WZ        0.97     
! 
!  A total of 147 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.02     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        0.95     KK        1.01     KP        0.93     
!   LA        0.97     MC        0.93     MK        0.99     NL        0.96     
!   NY        1.02     OV        1.00     PT        1.00     SC        1.03     
!   TS        0.99     WF        0.98     WZ        0.98     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        1.01     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.00*    KP        1.09     
!   LA        1.04     MC        0.94     MK        1.09     NL        1.04     
!   NY        0.98     OV        1.10     PT        1.06     SC        1.06     
!   TS        1.06     WF        1.09     WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.97     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        1.04     KP        1.04     
!   LA        0.98     MC        1.49     MK        1.03     NL        1.03     
!   NY        1.01     OV        1.02     PT        0.97     SC        1.07     
!   TS        1.00     WF        0.98     WZ        1.01     
! 
!  A total of 141 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.97     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.01     KP        1.04     
!   LA        1.00     MC        1.06     MK        1.02     NL        1.01     
!   NY        1.02     OV        1.02     PT        1.00     SC        1.03     
!   TS        1.01     WF        1.01     WZ        1.00     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.08     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        0.93     KK        1.00*    KP        1.22     
!   LA        1.03     MC        0.70     MK        1.08     NL        1.01     
!   NY        0.94     OV        1.04     PT        1.06     SC        1.04     
!   TS        1.07     WF        1.05     WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.94     FD        1.02     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        1.03     KP        1.09     
!   LA        0.99     MC        0.84     MK        1.03     NL        1.00     
!   NY        1.03     OV        0.99     PT        0.99     SC        1.08     
!   TS        1.01     WF        1.01     WZ        0.99     
! 
!  A total of 147 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        1.00     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.93     KK        1.00     KP        1.05     
!   LA        1.00     MC        1.07     MK        1.02     NL        0.99     
!   NY        1.03     OV        0.97     PT        1.03     SC        1.04     
!   TS        1.02     WF        1.00     WZ        0.98     
! 
! 
! Fit before self-cal, rms=0.283766Jy  sigma=0.001666
! Fit after  self-cal, rms=0.276659Jy  sigma=0.001588
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.372 mas, bmaj=2.506 mas, bpa=-47.69 degrees
! Estimated noise=223.352 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00128919 Jy
! Component: 100  -  total flux cleaned = -0.00128391 Jy
! Component: 150  -  total flux cleaned = -0.00117981 Jy
! Component: 200  -  total flux cleaned = -0.00122622 Jy
! Total flux subtracted in 200 components = -0.00122622 Jy
! Clean residual min=-0.004849 max=0.004906 Jy/beam
! Clean residual mean=0.000100 rms=0.001124 Jy/beam
! Combined flux in latest and established models = 0.992348 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 31 components and 0.992348 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276632Jy  sigma=0.001587
! Fit after  self-cal, rms=0.276812Jy  sigma=0.001587
! Inverting map 
selfcal true, true, soltime1
! Performing amp+phase self-cal over 120 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276812Jy  sigma=0.001587
! Fit after  self-cal, rms=0.276042Jy  sigma=0.001505
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.37 mas, bmaj=2.509 mas, bpa=-44.95 degrees
! Estimated noise=223.593 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00211971 Jy
! Component: 100  -  total flux cleaned = 0.00218421 Jy
! Component: 150  -  total flux cleaned = 0.00217948 Jy
! Component: 200  -  total flux cleaned = 0.00218061 Jy
! Total flux subtracted in 200 components = 0.00218061 Jy
! Clean residual min=-0.001507 max=0.003827 Jy/beam
! Clean residual mean=0.000032 rms=0.000427 Jy/beam
! Combined flux in latest and established models = 0.994529 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 31 components and 0.994529 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276008Jy  sigma=0.001504
! Fit after  self-cal, rms=0.276180Jy  sigma=0.001504
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (-3.5, -2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00339795 Jy
! Component: 100  -  total flux cleaned = 0.0039001 Jy
! Component: 150  -  total flux cleaned = 0.00416743 Jy
! Component: 200  -  total flux cleaned = 0.00439205 Jy
! Total flux subtracted in 200 components = 0.00439205 Jy
! Clean residual min=-0.001567 max=0.001917 Jy/beam
! Clean residual mean=0.000013 rms=0.000393 Jy/beam
! Combined flux in latest and established models = 0.998921 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 46 components and 0.998921 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276135Jy  sigma=0.001503
! Fit after  self-cal, rms=0.276126Jy  sigma=0.001503
! Inverting map 
! Added new window around map position (-6.5, -11).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00184787 Jy
! Component: 100  -  total flux cleaned = 0.00250554 Jy
! Component: 150  -  total flux cleaned = 0.0029654 Jy
! Component: 200  -  total flux cleaned = 0.00322155 Jy
! Total flux subtracted in 200 components = 0.00322155 Jy
! Clean residual min=-0.001499 max=0.001538 Jy/beam
! Clean residual mean=-0.000001 rms=0.000380 Jy/beam
! Combined flux in latest and established models = 1.00214 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 63 components and 1.00214 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276109Jy  sigma=0.001503
! Fit after  self-cal, rms=0.276106Jy  sigma=0.001503
! Inverting map 
selfcal true, true, soltime2
! Performing amp+phase self-cal over 20 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276106Jy  sigma=0.001503
! Fit after  self-cal, rms=0.276262Jy  sigma=0.001503
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.368 mas, bmaj=2.509 mas, bpa=-44.3 degrees
! Estimated noise=223.733 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00186708 Jy
! Component: 100  -  total flux cleaned = 0.00241604 Jy
! Component: 150  -  total flux cleaned = 0.00272466 Jy
! Component: 200  -  total flux cleaned = 0.00299662 Jy
! Total flux subtracted in 200 components = 0.00299662 Jy
! Clean residual min=-0.001419 max=0.001494 Jy/beam
! Clean residual mean=-0.000003 rms=0.000364 Jy/beam
! Combined flux in latest and established models = 1.00514 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 68 components and 1.00514 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276246Jy  sigma=0.001503
! Fit after  self-cal, rms=0.276246Jy  sigma=0.001503
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000385537 Jy
! Component: 100  -  total flux cleaned = 0.000662095 Jy
! Component: 150  -  total flux cleaned = 0.000774482 Jy
! Component: 200  -  total flux cleaned = 0.00087964 Jy
! Total flux subtracted in 200 components = 0.00087964 Jy
! Clean residual min=-0.001424 max=0.001494 Jy/beam
! Clean residual mean=-0.000007 rms=0.000361 Jy/beam
! Combined flux in latest and established models = 1.00602 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 72 components and 1.00602 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276240Jy  sigma=0.001503
! Fit after  self-cal, rms=0.276239Jy  sigma=0.001503
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
win_mult = win_mult * 1.2
selfcal true, true, soltime2
! Performing amp+phase self-cal over 20 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276239Jy  sigma=0.001503
! Fit after  self-cal, rms=0.276297Jy  sigma=0.001503
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.99 mas, bmaj=8.585 mas, bpa=79.25 degrees
! Estimated noise=359.347 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00161392 Jy
! Component: 100  -  total flux cleaned = 0.00230991 Jy
! Component: 150  -  total flux cleaned = 0.00262137 Jy
! Component: 200  -  total flux cleaned = 0.00269578 Jy
! Total flux subtracted in 200 components = 0.00269578 Jy
! Clean residual min=-0.001579 max=0.001469 Jy/beam
! Clean residual mean=-0.000046 rms=0.000511 Jy/beam
! Combined flux in latest and established models = 1.00871 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 95 components and 1.00871 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276298Jy  sigma=0.001503
! Fit after  self-cal, rms=0.276297Jy  sigma=0.001503
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000308191 Jy
! Component: 100  -  total flux cleaned = 0.000317229 Jy
! Component: 150  -  total flux cleaned = 0.000325345 Jy
! Component: 200  -  total flux cleaned = 0.000339663 Jy
! Total flux subtracted in 200 components = 0.000339663 Jy
! Clean residual min=-0.001588 max=0.001479 Jy/beam
! Clean residual mean=-0.000051 rms=0.000508 Jy/beam
! Combined flux in latest and established models = 1.00905 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 100 components and 1.00905 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276297Jy  sigma=0.001503
! Fit after  self-cal, rms=0.276296Jy  sigma=0.001503
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.2
print "************** FINISHED AMPLITUDE SELF-CAL **************"
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
restore
! Inverting map and beam 
! Estimated beam: bmin=2.367 mas, bmaj=2.509 mas, bpa=-43.96 degrees
! Estimated noise=223.844 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.367 x 2.509 at -43.96 degrees (North through East)
! Clean map  min=-0.0012516  max=0.95295 Jy/beam
if(peak(flux) > thresh)
  selfcal true, true
  clean clean_niter,clean_gain
  selfcal
  flux_cutoff = imstat(rms) * dynam
  repeat
    if (peak(flux) > flux_cutoff) peakwin win_mult
    clean clean_niter,clean_gain
    flux_cutoff = imstat(rms) * dynam
    selfcal
    new_peak = peak(flux)
    until(new_peak<=flux_cutoff)
  selfcal true, true
  end if
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276296Jy  sigma=0.001503
! Fit after  self-cal, rms=0.349997Jy  sigma=0.001411
! Inverting map and beam 
! Estimated beam: bmin=2.367 mas, bmaj=2.508 mas, bpa=-43.96 degrees
! Estimated noise=223.834 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000716372 Jy
! Component: 100  -  total flux cleaned = 0.000684111 Jy
! Component: 150  -  total flux cleaned = 0.00070906 Jy
! Component: 200  -  total flux cleaned = 0.000708509 Jy
! Total flux subtracted in 200 components = 0.000708509 Jy
! Clean residual min=-0.001466 max=0.001293 Jy/beam
! Clean residual mean=-0.000016 rms=0.000320 Jy/beam
! Combined flux in latest and established models = 1.00976 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 106 components and 1.00976 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.349990Jy  sigma=0.001411
! Fit after  self-cal, rms=0.349992Jy  sigma=0.001411
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.79572e-05 Jy
! Component: 100  -  total flux cleaned = 4.7907e-05 Jy
! Component: 150  -  total flux cleaned = 4.76343e-05 Jy
! Component: 200  -  total flux cleaned = 2.89436e-05 Jy
! Total flux subtracted in 200 components = 2.89436e-05 Jy
! Clean residual min=-0.001470 max=0.001292 Jy/beam
! Clean residual mean=-0.000016 rms=0.000319 Jy/beam
! Combined flux in latest and established models = 1.00979 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 114 components and 1.00979 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.349989Jy  sigma=0.001411
! Fit after  self-cal, rms=0.349990Jy  sigma=0.001411
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.349990Jy  sigma=0.001411
! Fit after  self-cal, rms=0.349726Jy  sigma=0.001411
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=1.947 mas, bmaj=1.968 mas, bpa=24.16 degrees
! Estimated noise=524.053 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.734309 Jy
! Component: 100  -  total flux cleaned = 0.894436 Jy
! Component: 150  -  total flux cleaned = 0.932333 Jy
! Component: 200  -  total flux cleaned = 0.951166 Jy
! Total flux subtracted in 200 components = 0.951166 Jy
! Clean residual min=-0.003919 max=0.010316 Jy/beam
! Clean residual mean=0.000019 rms=0.001045 Jy/beam
! Combined flux in latest and established models = 0.951166 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 17 model components to the UV plane model.
! The established model now contains 17 components and 0.951166 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.366 mas, bmaj=2.507 mas, bpa=-43.64 degrees
! Estimated noise=223.888 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  keep
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0230696 Jy
! Component: 100  -  total flux cleaned = 0.0353476 Jy
! Component: 150  -  total flux cleaned = 0.0425317 Jy
! Component: 200  -  total flux cleaned = 0.0469706 Jy
! Total flux subtracted in 200 components = 0.0469706 Jy
! Clean residual min=-0.001467 max=0.002403 Jy/beam
! Clean residual mean=0.000038 rms=0.000401 Jy/beam
! Combined flux in latest and established models = 0.998136 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 45 components and 0.998136 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00308174 Jy
! Component: 100  -  total flux cleaned = 0.00544122 Jy
! Component: 150  -  total flux cleaned = 0.00727727 Jy
! Component: 200  -  total flux cleaned = 0.00872429 Jy
! Total flux subtracted in 200 components = 0.00872429 Jy
! Clean residual min=-0.001450 max=0.001577 Jy/beam
! Clean residual mean=0.000000 rms=0.000333 Jy/beam
! Combined flux in latest and established models = 1.00686 Jy
! Adding 33 model components to the UV plane model.
! The established model now contains 67 components and 1.00686 Jy
! Inverting map 
! Added new window around map position (-9, -0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00145492 Jy
! Component: 100  -  total flux cleaned = 0.00243428 Jy
! Component: 150  -  total flux cleaned = 0.00281985 Jy
! Component: 200  -  total flux cleaned = 0.00307667 Jy
! Total flux subtracted in 200 components = 0.00307667 Jy
! Clean residual min=-0.001445 max=0.001356 Jy/beam
! Clean residual mean=-0.000013 rms=0.000323 Jy/beam
! Combined flux in latest and established models = 1.00994 Jy
! Adding 33 model components to the UV plane model.
! The established model now contains 80 components and 1.00994 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.99 mas, bmaj=8.581 mas, bpa=79.28 degrees
! Estimated noise=359.879 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000832689 Jy
! Component: 100  -  total flux cleaned = 0.000951576 Jy
! Component: 150  -  total flux cleaned = 0.0010285 Jy
! Component: 200  -  total flux cleaned = 0.00104201 Jy
! Total flux subtracted in 200 components = 0.00104201 Jy
! Clean residual min=-0.001466 max=0.001328 Jy/beam
! Clean residual mean=-0.000065 rms=0.000470 Jy/beam
! Combined flux in latest and established models = 1.01098 Jy
flux_cutoff = imstat(rms) * dynam
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  keep
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.08386e-05 Jy
! Component: 100  -  total flux cleaned = 1.05435e-05 Jy
! Component: 150  -  total flux cleaned = 1.02405e-05 Jy
! Component: 200  -  total flux cleaned = 1.07714e-05 Jy
! Total flux subtracted in 200 components = 1.07714e-05 Jy
! Clean residual min=-0.001453 max=0.001318 Jy/beam
! Clean residual mean=-0.000066 rms=0.000468 Jy/beam
! Combined flux in latest and established models = 1.01099 Jy
! Adding 34 model components to the UV plane model.
! The established model now contains 110 components and 1.01099 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.366 mas, bmaj=2.507 mas, bpa=-43.64 degrees
! Estimated noise=223.888 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 8.08664e-05 Jy
! Component: 100  -  total flux cleaned = 1.91267e-05 Jy
! Component: 150  -  total flux cleaned = -8.87895e-06 Jy
! Component: 200  -  total flux cleaned = 1.64543e-05 Jy
! Total flux subtracted in 200 components = 1.64543e-05 Jy
! Clean residual min=-0.001416 max=0.001346 Jy/beam
! Clean residual mean=-0.000017 rms=0.000319 Jy/beam
! Combined flux in latest and established models = 1.01101 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 115 components and 1.01101 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.349733Jy  sigma=0.001411
! Fit after  self-cal, rms=0.349730Jy  sigma=0.001411
wmodel J1357+7643_S_2001_07_05_pus_map.mod
! Writing 115 model components to file: J1357+7643_S_2001_07_05_pus_map.mod
wobs J1357+7643_S_2001_07_05_pus_uvs.fits
! Writing UV FITS file: J1357+7643_S_2001_07_05_pus_uvs.fits
wwins J1357+7643_S_2001_07_05_pus_map.win
! wwins: Wrote 4 windows to J1357+7643_S_2001_07_05_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000304226 Jy
! Component: 100  -  total flux cleaned = -0.000581113 Jy
! Component: 150  -  total flux cleaned = -0.000759802 Jy
! Component: 200  -  total flux cleaned = -0.000934203 Jy
! Component: 250  -  total flux cleaned = -0.0010195 Jy
! Component: 300  -  total flux cleaned = -0.00110351 Jy
! Component: 350  -  total flux cleaned = -0.00120675 Jy
! Component: 400  -  total flux cleaned = -0.00134895 Jy
! Component: 450  -  total flux cleaned = -0.00146907 Jy
! Component: 500  -  total flux cleaned = -0.00156761 Jy
! Component: 550  -  total flux cleaned = -0.00162586 Jy
! Component: 600  -  total flux cleaned = -0.00166419 Jy
! Component: 650  -  total flux cleaned = -0.00166411 Jy
! Component: 700  -  total flux cleaned = -0.00168316 Jy
! Component: 750  -  total flux cleaned = -0.00172056 Jy
! Component: 800  -  total flux cleaned = -0.00173887 Jy
! Component: 850  -  total flux cleaned = -0.00172064 Jy
! Component: 900  -  total flux cleaned = -0.00179317 Jy
! Component: 950  -  total flux cleaned = -0.00181101 Jy
! Component: 1000  -  total flux cleaned = -0.00181111 Jy
! Component: 1050  -  total flux cleaned = -0.00189984 Jy
! Component: 1100  -  total flux cleaned = -0.00191732 Jy
! Component: 1150  -  total flux cleaned = -0.00195242 Jy
! Component: 1200  -  total flux cleaned = -0.00196982 Jy
! Component: 1250  -  total flux cleaned = -0.00203901 Jy
! Component: 1300  -  total flux cleaned = -0.00209052 Jy
! Component: 1350  -  total flux cleaned = -0.00212479 Jy
! Component: 1400  -  total flux cleaned = -0.00220967 Jy
! Component: 1450  -  total flux cleaned = -0.00220977 Jy
! Component: 1500  -  total flux cleaned = -0.00229379 Jy
! Component: 1550  -  total flux cleaned = -0.00234395 Jy
! Component: 1600  -  total flux cleaned = -0.00237719 Jy
! Component: 1650  -  total flux cleaned = -0.00237718 Jy
! Component: 1700  -  total flux cleaned = -0.00249246 Jy
! Component: 1750  -  total flux cleaned = -0.00247606 Jy
! Component: 1800  -  total flux cleaned = -0.00257394 Jy
! Component: 1850  -  total flux cleaned = -0.00259016 Jy
! Component: 1900  -  total flux cleaned = -0.00263869 Jy
! Component: 1950  -  total flux cleaned = -0.00273521 Jy
! Component: 2000  -  total flux cleaned = -0.00270317 Jy
! Total flux subtracted in 2048 components = -0.00276708 Jy
! Clean residual min=-0.000846 max=0.001019 Jy/beam
! Clean residual mean=-0.000007 rms=0.000287 Jy/beam
! Combined flux in latest and established models = 1.00824 Jy
keep
! Adding 161 model components to the UV plane model.
! The established model now contains 276 components and 1.00824 Jy
wmap "J1357+7643_S_2001_07_05_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.366 x 2.507 at -43.64 degrees (North through East)
! Clean map  min=-0.0012017  max=0.95312 Jy/beam
! Writing clean map to FITS file: J1357+7643_S_2001_07_05_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.953124 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000287279 
device "J1357+7643_S_2001_07_05_pus\_map.eps/VPS"
! Attempting to open device: 'J1357+7643_S_2001_07_05_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.0904222 0.0904222 0.180844 0.361689 0.723378 1.44676 2.89351 5.78702 11.574 23.1481 46.2962 92.5924
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0008 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.953 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.366 x 2.507 at -43.64 degrees (North through East)
! Clean map  min=-0.0012017  max=0.95312 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1357+7643_S_2001_07_05_pus\_map.gif/vgif"
! Attempting to open device: 'J1357+7643_S_2001_07_05_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1357+7643_S_2001_07_05_pus_uvs.log closed on Fri Aug 10 01:31:01 2007