! Started logfile: J0921-2618_S_2003_09_17_pus_uvs.log on Tue May 22 23:53:54 2007
obs J0921-2618_S_2003_09_17_pus_uva.fits
! Reading UV FITS file: J0921-2618_S_2003_09_17_pus_uva.fits
! AN table 1: 13 integrations on 120 of 120 possible baselines.
! AN table 2: 77 integrations on 120 of 120 possible baselines.
! AN table 3: 311 integrations on 120 of 120 possible baselines.
! AN table 4: 18 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.127247 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0921-2618
! 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.
! 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.23697e+09        8e+06          1        8e+06
!  02        2  2.26697e+09        8e+06          1        8e+06
!  03        3  2.35697e+09        8e+06          1        8e+06
!  04        4  2.37697e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1736 lines of history.
! 
! Reading 25592 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 172 telescope corrections were flagged in sub-array 1.
!  A total of 1175 telescope corrections were flagged in sub-array 2.
!  A total of 3340 telescope corrections were flagged in sub-array 3.
!  A total of 192 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 172 telescope corrections were flagged in sub-array 1.
!  A total of 1175 telescope corrections were flagged in sub-array 2.
!  A total of 3291 telescope corrections were flagged in sub-array 3.
!  A total of 192 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 172 telescope corrections were flagged in sub-array 1.
!  A total of 1175 telescope corrections were flagged in sub-array 2.
!  A total of 3291 telescope corrections were flagged in sub-array 3.
!  A total of 192 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 172 telescope corrections were flagged in sub-array 1.
!  A total of 1178 telescope corrections were flagged in sub-array 2.
!  A total of 3298 telescope corrections were flagged in sub-array 3.
!  A total of 192 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.175901Jy  sigma=0.007124
! Fit after  self-cal, rms=0.525733Jy  sigma=0.003120
! 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=2.299 mas, bmaj=6.854 mas, bpa=-5.02 degrees
! Estimated noise=1685.77 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.618482 Jy
! Component: 100  -  total flux cleaned = 0.891727 Jy
! Total flux subtracted in 100 components = 0.891727 Jy
! Clean residual min=-0.040912 max=0.138666 Jy/beam
! Clean residual mean=0.000368 rms=0.017010 Jy/beam
! Combined flux in latest and established models = 0.891727 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 11 components and 0.891727 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.520154Jy  sigma=0.003135
! Fit after  self-cal, rms=0.519903Jy  sigma=0.003134
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.164615 Jy
! Component: 100  -  total flux cleaned = 0.268032 Jy
! Total flux subtracted in 100 components = 0.268032 Jy
! Clean residual min=-0.022616 max=0.061967 Jy/beam
! Clean residual mean=0.000116 rms=0.010021 Jy/beam
! Combined flux in latest and established models = 1.15976 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 28 components and 1.15976 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.380263Jy  sigma=0.002194
! Fit after  self-cal, rms=0.380159Jy  sigma=0.002194
! Inverting map 
! Added new window around map position (-3.5, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0758813 Jy
! Component: 100  -  total flux cleaned = 0.133275 Jy
! Total flux subtracted in 100 components = 0.133275 Jy
! Clean residual min=-0.019460 max=0.036900 Jy/beam
! Clean residual mean=-0.000014 rms=0.007391 Jy/beam
! Combined flux in latest and established models = 1.29303 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 56 components and 1.29303 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.331339Jy  sigma=0.001841
! Fit after  self-cal, rms=0.331037Jy  sigma=0.001840
! 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=3.201 mas, bmaj=9.863 mas, bpa=-8.298 degrees
! Estimated noise=776.443 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.129195 Jy
! Component: 100  -  total flux cleaned = 0.200746 Jy
! Component: 150  -  total flux cleaned = 0.242237 Jy
! Component: 200  -  total flux cleaned = 0.266629 Jy
! Total flux subtracted in 200 components = 0.266629 Jy
! Clean residual min=-0.019145 max=0.028271 Jy/beam
! Clean residual mean=-0.001678 rms=0.006723 Jy/beam
! Combined flux in latest and established models = 1.55966 Jy
! Performing phase self-cal
! Adding 75 model components to the UV plane model.
! The established model now contains 119 components and 1.55966 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.282818Jy  sigma=0.001460
! Fit after  self-cal, rms=0.281784Jy  sigma=0.001452
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 105 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.99     GC        1.00*    HN        1.10     KP        0.92     
!   LA        0.97     MK        1.09     NL        1.02     NY        1.00*    
!   ON        1.00*    OV        1.07     PT        0.99     SC        1.02     
!   TS        1.00*    KK        0.98     WZ        1.00*    WF        1.03     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00     GC        1.00*    HN        1.00*    KP        0.93     
!   LA        0.98     MK        1.03     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.07     PT        1.03     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 105 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.00     GC        1.00*    HN        1.13     KP        1.02     
!   LA        0.97     MK        1.07     NL        1.05     NY        1.00*    
!   ON        1.00*    OV        0.96     PT        0.98     SC        1.06     
!   TS        1.00*    KK        0.97     WZ        1.00*    WF        1.03     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.02     GC        1.00*    HN        1.00*    KP        1.07     
!   LA        0.99     MK        1.04     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.03     PT        0.97     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 105 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.96     GC        1.00*    HN        1.09     KP        1.01     
!   LA        0.94     MK        0.97     NL        0.98     NY        1.00*    
!   ON        1.00*    OV        1.03     PT        1.01     SC        1.00     
!   TS        1.00*    KK        0.96     WZ        1.00*    WF        1.01     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.97     GC        1.00*    HN        1.00*    KP        1.01     
!   LA        0.94     MK        0.95     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.05     PT        1.00     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 105 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.96     GC        1.00*    HN        1.08     KP        1.00     
!   LA        0.97     MK        0.91     NL        0.99     NY        1.00*    
!   ON        1.00*    OV        1.04     PT        0.96     SC        0.93     
!   TS        1.00*    KK        1.00     WZ        1.00*    WF        1.01     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.97     GC        1.00*    HN        1.00*    KP        1.02     
!   LA        0.99     MK        0.86     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.01     PT        0.95     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Fit before self-cal, rms=0.281784Jy  sigma=0.001452
! Fit after  self-cal, rms=0.280279Jy  sigma=0.001396
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.291 mas, bmaj=10.31 mas, bpa=-9.245 degrees
! Estimated noise=790.573 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.00162021 Jy
! Component: 100  -  total flux cleaned = 0.00234868 Jy
! Component: 150  -  total flux cleaned = 0.0027156 Jy
! Component: 200  -  total flux cleaned = 0.00287198 Jy
! Total flux subtracted in 200 components = 0.00287198 Jy
! Clean residual min=-0.012238 max=0.012644 Jy/beam
! Clean residual mean=-0.000585 rms=0.003703 Jy/beam
! Combined flux in latest and established models = 1.56254 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 127 components and 1.56254 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.279900Jy  sigma=0.001394
! Fit after  self-cal, rms=0.280070Jy  sigma=0.001393
! 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.280070Jy  sigma=0.001393
! Fit after  self-cal, rms=0.276317Jy  sigma=0.001360
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.3 mas, bmaj=10.34 mas, bpa=-9.34 degrees
! Estimated noise=792.312 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00102915 Jy
! Component: 100  -  total flux cleaned = -0.00117558 Jy
! Component: 150  -  total flux cleaned = -0.00131065 Jy
! Component: 200  -  total flux cleaned = -0.00143776 Jy
! Total flux subtracted in 200 components = -0.00143776 Jy
! Clean residual min=-0.009596 max=0.008877 Jy/beam
! Clean residual mean=-0.000275 rms=0.002994 Jy/beam
! Combined flux in latest and established models = 1.5611 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 137 components and 1.5611 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276191Jy  sigma=0.001359
! Fit after  self-cal, rms=0.276206Jy  sigma=0.001359
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.000246207 Jy
! Component: 100  -  total flux cleaned = -0.000349743 Jy
! Component: 150  -  total flux cleaned = -0.000349256 Jy
! Component: 200  -  total flux cleaned = -0.000442651 Jy
! Total flux subtracted in 200 components = -0.000442651 Jy
! Clean residual min=-0.009574 max=0.008705 Jy/beam
! Clean residual mean=-0.000272 rms=0.002976 Jy/beam
! Combined flux in latest and established models = 1.56066 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 141 components and 1.56066 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276141Jy  sigma=0.001359
! Fit after  self-cal, rms=0.276136Jy  sigma=0.001359
! 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.276136Jy  sigma=0.001359
! Fit after  self-cal, rms=0.267383Jy  sigma=0.001298
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.298 mas, bmaj=10.32 mas, bpa=-9.514 degrees
! Estimated noise=791.138 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000165354 Jy
! Component: 100  -  total flux cleaned = 0.00016634 Jy
! Component: 150  -  total flux cleaned = 0.000265325 Jy
! Component: 200  -  total flux cleaned = 0.000264182 Jy
! Total flux subtracted in 200 components = 0.000264182 Jy
! Clean residual min=-0.005763 max=0.008762 Jy/beam
! Clean residual mean=0.000081 rms=0.001836 Jy/beam
! Combined flux in latest and established models = 1.56092 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 148 components and 1.56092 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.267303Jy  sigma=0.001297
! Fit after  self-cal, rms=0.267303Jy  sigma=0.001297
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 (-10.5, 13).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00810499 Jy
! Component: 100  -  total flux cleaned = 0.00982313 Jy
! Component: 150  -  total flux cleaned = 0.00996922 Jy
! Component: 200  -  total flux cleaned = 0.010095 Jy
! Total flux subtracted in 200 components = 0.010095 Jy
! Clean residual min=-0.005157 max=0.005613 Jy/beam
! Clean residual mean=-0.000072 rms=0.001527 Jy/beam
! Combined flux in latest and established models = 1.57101 Jy
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 185 components and 1.57101 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266981Jy  sigma=0.001295
! Fit after  self-cal, rms=0.266926Jy  sigma=0.001295
! 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.266926Jy  sigma=0.001295
! Fit after  self-cal, rms=0.267092Jy  sigma=0.001294
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.556 mas, bmaj=22.47 mas, bpa=-7.281 degrees
! Estimated noise=950.041 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00548235 Jy
! Component: 100  -  total flux cleaned = 0.00502394 Jy
! Component: 150  -  total flux cleaned = 0.00476355 Jy
! Component: 200  -  total flux cleaned = 0.004692 Jy
! Total flux subtracted in 200 components = 0.004692 Jy
! Clean residual min=-0.004279 max=0.004317 Jy/beam
! Clean residual mean=-0.000042 rms=0.001546 Jy/beam
! Combined flux in latest and established models = 1.57571 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 198 components and 1.57571 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266973Jy  sigma=0.001294
! Fit after  self-cal, rms=0.266942Jy  sigma=0.001294
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.00170449 Jy
! Component: 100  -  total flux cleaned = 0.00150516 Jy
! Component: 150  -  total flux cleaned = 0.00134633 Jy
! Component: 200  -  total flux cleaned = 0.00120583 Jy
! Total flux subtracted in 200 components = 0.00120583 Jy
! Clean residual min=-0.004166 max=0.004090 Jy/beam
! Clean residual mean=-0.000075 rms=0.001499 Jy/beam
! Combined flux in latest and established models = 1.57691 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 208 components and 1.57691 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266920Jy  sigma=0.001293
! Fit after  self-cal, rms=0.266911Jy  sigma=0.001293
! 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=3.298 mas, bmaj=10.31 mas, bpa=-9.486 degrees
! Estimated noise=791.491 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.298 x 10.31 at -9.486 degrees (North through East)
! Clean map  min=-0.0054803  max=1.0165 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.266911Jy  sigma=0.001293
! Fit after  self-cal, rms=0.246214Jy  sigma=0.001137
! Inverting map and beam 
! Estimated beam: bmin=3.292 mas, bmaj=10.3 mas, bpa=-9.551 degrees
! Estimated noise=790.49 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00295973 Jy
! Component: 100  -  total flux cleaned = 0.00295367 Jy
! Component: 150  -  total flux cleaned = 0.00276875 Jy
! Component: 200  -  total flux cleaned = 0.00268645 Jy
! Total flux subtracted in 200 components = 0.00268645 Jy
! Clean residual min=-0.004242 max=0.003926 Jy/beam
! Clean residual mean=-0.000002 rms=0.001191 Jy/beam
! Combined flux in latest and established models = 1.5796 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 220 components and 1.5796 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.246130Jy  sigma=0.001136
! Fit after  self-cal, rms=0.246117Jy  sigma=0.001136
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000886708 Jy
! Component: 100  -  total flux cleaned = 0.000658294 Jy
! Component: 150  -  total flux cleaned = 0.000592034 Jy
! Component: 200  -  total flux cleaned = 0.000526656 Jy
! Total flux subtracted in 200 components = 0.000526656 Jy
! Clean residual min=-0.004260 max=0.003792 Jy/beam
! Clean residual mean=-0.000011 rms=0.001166 Jy/beam
! Combined flux in latest and established models = 1.58013 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 224 components and 1.58013 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.246075Jy  sigma=0.001136
! Fit after  self-cal, rms=0.246070Jy  sigma=0.001136
! 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.246070Jy  sigma=0.001136
! Fit after  self-cal, rms=0.245951Jy  sigma=0.001136
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=2.452 mas, bmaj=7.545 mas, bpa=-10.28 degrees
! Estimated noise=1577.2 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.670397 Jy
! Component: 100  -  total flux cleaned = 0.945273 Jy
! Component: 150  -  total flux cleaned = 1.10827 Jy
! Component: 200  -  total flux cleaned = 1.21341 Jy
! Total flux subtracted in 200 components = 1.21341 Jy
! Clean residual min=-0.024394 max=0.057912 Jy/beam
! Clean residual mean=0.000343 rms=0.009219 Jy/beam
! Combined flux in latest and established models = 1.21341 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 36 model components to the UV plane model.
! The established model now contains 36 components and 1.21341 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.293 mas, bmaj=10.3 mas, bpa=-9.53 degrees
! Estimated noise=790.299 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.158171 Jy
! Component: 100  -  total flux cleaned = 0.240582 Jy
! Component: 150  -  total flux cleaned = 0.286673 Jy
! Component: 200  -  total flux cleaned = 0.313793 Jy
! Total flux subtracted in 200 components = 0.313793 Jy
! Clean residual min=-0.007085 max=0.016291 Jy/beam
! Clean residual mean=0.000662 rms=0.003477 Jy/beam
! Combined flux in latest and established models = 1.52721 Jy
! Adding 85 model components to the UV plane model.
! The established model now contains 112 components and 1.52721 Jy
! Inverting map 
! Added new window around map position (3.5, -1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0178591 Jy
! Component: 100  -  total flux cleaned = 0.0293239 Jy
! Component: 150  -  total flux cleaned = 0.0371502 Jy
! Component: 200  -  total flux cleaned = 0.042847 Jy
! Total flux subtracted in 200 components = 0.042847 Jy
! Clean residual min=-0.004291 max=0.005311 Jy/beam
! Clean residual mean=0.000144 rms=0.001322 Jy/beam
! Combined flux in latest and established models = 1.57005 Jy
! Adding 62 model components to the UV plane model.
! The established model now contains 169 components and 1.57006 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.553 mas, bmaj=22.45 mas, bpa=-7.264 degrees
! Estimated noise=949.378 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00574377 Jy
! Component: 100  -  total flux cleaned = 0.00847089 Jy
! Component: 150  -  total flux cleaned = 0.00901598 Jy
! Component: 200  -  total flux cleaned = 0.00945961 Jy
! Total flux subtracted in 200 components = 0.00945961 Jy
! Clean residual min=-0.003655 max=0.003122 Jy/beam
! Clean residual mean=0.000065 rms=0.001229 Jy/beam
! Combined flux in latest and established models = 1.57951 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 = 6.06543e-05 Jy
! Component: 100  -  total flux cleaned = 0.00012035 Jy
! Component: 150  -  total flux cleaned = 0.000225613 Jy
! Component: 200  -  total flux cleaned = 0.000272288 Jy
! Total flux subtracted in 200 components = 0.000272288 Jy
! Clean residual min=-0.003380 max=0.003219 Jy/beam
! Clean residual mean=0.000065 rms=0.001180 Jy/beam
! Combined flux in latest and established models = 1.57979 Jy
! Adding 64 model components to the UV plane model.
! The established model now contains 221 components and 1.57979 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.293 mas, bmaj=10.3 mas, bpa=-9.53 degrees
! Estimated noise=790.299 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000222103 Jy
! Component: 100  -  total flux cleaned = -0.000377218 Jy
! Component: 150  -  total flux cleaned = -0.000446793 Jy
! Component: 200  -  total flux cleaned = -0.000446554 Jy
! Total flux subtracted in 200 components = -0.000446554 Jy
! Clean residual min=-0.004137 max=0.003360 Jy/beam
! Clean residual mean=0.000034 rms=0.001078 Jy/beam
! Combined flux in latest and established models = 1.57934 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 238 components and 1.57934 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.245867Jy  sigma=0.001135
! Fit after  self-cal, rms=0.245828Jy  sigma=0.001135
wmodel J0921-2618_S_2003_09_17_pus_map.mod
! Writing 238 model components to file: J0921-2618_S_2003_09_17_pus_map.mod
wobs J0921-2618_S_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J0921-2618_S_2003_09_17_pus_uvs.fits
wwins J0921-2618_S_2003_09_17_pus_map.win
! wwins: Wrote 4 windows to J0921-2618_S_2003_09_17_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.00154649 Jy
! Component: 100  -  total flux cleaned = -0.0024614 Jy
! Component: 150  -  total flux cleaned = -0.00258439 Jy
! Component: 200  -  total flux cleaned = -0.00228881 Jy
! Component: 250  -  total flux cleaned = -0.00200262 Jy
! Component: 300  -  total flux cleaned = -0.00167213 Jy
! Component: 350  -  total flux cleaned = -0.00151203 Jy
! Component: 400  -  total flux cleaned = -0.00125199 Jy
! Component: 450  -  total flux cleaned = -0.0010502 Jy
! Component: 500  -  total flux cleaned = -0.00100038 Jy
! Component: 550  -  total flux cleaned = -0.000902815 Jy
! Component: 600  -  total flux cleaned = -0.000855109 Jy
! Component: 650  -  total flux cleaned = -0.000762538 Jy
! Component: 700  -  total flux cleaned = -0.000809198 Jy
! Component: 750  -  total flux cleaned = -0.000809142 Jy
! Component: 800  -  total flux cleaned = -0.000853792 Jy
! Component: 850  -  total flux cleaned = -0.000853072 Jy
! Component: 900  -  total flux cleaned = -0.000766419 Jy
! Component: 950  -  total flux cleaned = -0.000766936 Jy
! Component: 1000  -  total flux cleaned = -0.00076694 Jy
! Component: 1050  -  total flux cleaned = -0.000808322 Jy
! Component: 1100  -  total flux cleaned = -0.000725878 Jy
! Component: 1150  -  total flux cleaned = -0.000684953 Jy
! Component: 1200  -  total flux cleaned = -0.000644749 Jy
! Component: 1250  -  total flux cleaned = -0.000565668 Jy
! Component: 1300  -  total flux cleaned = -0.000488174 Jy
! Component: 1350  -  total flux cleaned = -0.000449877 Jy
! Component: 1400  -  total flux cleaned = -0.000297847 Jy
! Component: 1450  -  total flux cleaned = -0.000298189 Jy
! Component: 1500  -  total flux cleaned = -0.000223775 Jy
! Component: 1550  -  total flux cleaned = -0.000113764 Jy
! Component: 1600  -  total flux cleaned = -4.14963e-05 Jy
! Component: 1650  -  total flux cleaned = -4.18117e-05 Jy
! Component: 1700  -  total flux cleaned = 2.92865e-05 Jy
! Component: 1750  -  total flux cleaned = 6.46397e-05 Jy
! Component: 1800  -  total flux cleaned = 0.000169106 Jy
! Component: 1850  -  total flux cleaned = 0.000237788 Jy
! Component: 1900  -  total flux cleaned = 0.000271997 Jy
! Component: 1950  -  total flux cleaned = 0.00040705 Jy
! Component: 2000  -  total flux cleaned = 0.000473934 Jy
! Total flux subtracted in 2048 components = 0.000606699 Jy
! Clean residual min=-0.001812 max=0.002772 Jy/beam
! Clean residual mean=0.000047 rms=0.000667 Jy/beam
! Combined flux in latest and established models = 1.57995 Jy
keep
! Adding 120 model components to the UV plane model.
! The established model now contains 358 components and 1.57995 Jy
wmap "J0921-2618_S_2003_09_17_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.293 x 10.3 at -9.53 degrees (North through East)
! Clean map  min=-0.0036539  max=1.0288 Jy/beam
! Writing clean map to FITS file: J0921-2618_S_2003_09_17_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.02878 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000668505 
device "J0921-2618_S_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J0921-2618_S_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.194942 0.194942 0.389884 0.779768 1.55954 3.11907 6.23814 12.4763 24.9526 49.9052 99.8103
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.002 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.028 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.293 x 10.3 at -9.53 degrees (North through East)
! Clean map  min=-0.0036539  max=1.0288 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0921-2618_S_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J0921-2618_S_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0921-2618_S_2003_09_17_pus_uvs.log closed on Tue May 22 23:55:45 2007