! Started logfile: J0339-0146_S_1999_12_20_pus_uvs.log on Fri Dec 21 12:53:56 2007
obs J0339-0146_S_1999_12_20_pus_uva.fits
! Reading UV FITS file: J0339-0146_S_1999_12_20_pus_uva.fits
! AN table 1: 12 integrations on 190 of 190 possible baselines.
! AN table 2: 145 integrations on 190 of 190 possible baselines.
! AN table 3: 87 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.18736 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0339-0146
! 
! 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.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2287 lines of history.
! 
! Reading 34744 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 
![@muppet J0339-0146_S_1999_12_20_pus]
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 204 telescope corrections were flagged in sub-array 1.
!  A total of 1872 telescope corrections were flagged in sub-array 2.
!  A total of 1148 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 204 telescope corrections were flagged in sub-array 1.
!  A total of 1872 telescope corrections were flagged in sub-array 2.
!  A total of 1148 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 211 telescope corrections were flagged in sub-array 1.
!  A total of 1895 telescope corrections were flagged in sub-array 2.
!  A total of 1148 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 204 telescope corrections were flagged in sub-array 1.
!  A total of 1872 telescope corrections were flagged in sub-array 2.
!  A total of 1148 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.219297Jy  sigma=0.010299
! Fit after  self-cal, rms=0.693825Jy  sigma=0.006163
! 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.902 mas, bmaj=4.032 mas, bpa=3.688 degrees
! Estimated noise=901.575 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.986721 Jy
! Component: 100  -  total flux cleaned = 1.36595 Jy
! Total flux subtracted in 100 components = 1.36595 Jy
! Clean residual min=-0.056483 max=0.175289 Jy/beam
! Clean residual mean=0.000232 rms=0.012261 Jy/beam
! Combined flux in latest and established models = 1.36595 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 11 components and 1.36595 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.456597Jy  sigma=0.003971
! Fit after  self-cal, rms=0.452229Jy  sigma=0.003955
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.201073 Jy
! Component: 100  -  total flux cleaned = 0.311325 Jy
! Total flux subtracted in 100 components = 0.311325 Jy
! Clean residual min=-0.036947 max=0.085825 Jy/beam
! Clean residual mean=0.000141 rms=0.006680 Jy/beam
! Combined flux in latest and established models = 1.67727 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 26 components and 1.67727 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.314935Jy  sigma=0.002470
! Fit after  self-cal, rms=0.311888Jy  sigma=0.002458
! Inverting map 
! Added new window around map position (2.5, 1).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0886725 Jy
! Component: 100  -  total flux cleaned = 0.140427 Jy
! Total flux subtracted in 100 components = 0.140427 Jy
! Clean residual min=-0.028589 max=0.032084 Jy/beam
! Clean residual mean=0.000092 rms=0.004791 Jy/beam
! Combined flux in latest and established models = 1.8177 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 37 components and 1.8177 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.280511Jy  sigma=0.002035
! Fit after  self-cal, rms=0.278119Jy  sigma=0.002022
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0404788 Jy
! Component: 100  -  total flux cleaned = 0.0667774 Jy
! Total flux subtracted in 100 components = 0.0667774 Jy
! Clean residual min=-0.023533 max=0.022321 Jy/beam
! Clean residual mean=0.000069 rms=0.004174 Jy/beam
! Combined flux in latest and established models = 1.88448 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 43 components and 1.88448 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.271705Jy  sigma=0.001901
! Fit after  self-cal, rms=0.271167Jy  sigma=0.001899
! 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.536 mas, bmaj=6.43 mas, bpa=-4.333 degrees
! Estimated noise=489.915 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.0319627 Jy
! Component: 100  -  total flux cleaned = 0.048978 Jy
! Component: 150  -  total flux cleaned = 0.058587 Jy
! Component: 200  -  total flux cleaned = 0.0632691 Jy
! Total flux subtracted in 200 components = 0.0632691 Jy
! Clean residual min=-0.017482 max=0.017315 Jy/beam
! Clean residual mean=-0.000421 rms=0.004481 Jy/beam
! Combined flux in latest and established models = 1.94775 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 55 components and 1.94775 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.270064Jy  sigma=0.001842
! Fit after  self-cal, rms=0.269565Jy  sigma=0.001839
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.94     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.15     MK        1.00*    NY        1.00*    ON        1.15     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        0.96     GN        1.00*    NL        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        0.99     GC        0.99     HH        1.03     
!   HN        1.08     KK        1.06     KP        1.02     LA        1.00     
!   MC        1.07     MK        1.02     NY        1.00*    ON        1.11     
!   OV        1.02     PT        1.02     SC        1.00     TS        1.03     
!   WF        1.06     WZ        1.08     GN        1.00     NL        0.99     
! 
!  A total of 36 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.98     GC        1.01     HH        1.00*    
!   HN        1.03     KK        1.02     KP        0.88     LA        0.98     
!   MC        1.00*    MK        0.97     NY        1.00*    ON        1.00*    
!   OV        0.97     PT        1.00     SC        1.04     TS        1.00*    
!   WF        0.97     WZ        1.00*    GN        0.93     NL        0.99     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.05     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.10     MK        1.00*    NY        1.00*    ON        0.94     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.08     GN        1.00*    NL        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.04     GC        0.97     HH        1.06     
!   HN        1.16     KK        1.03     KP        1.01     LA        0.97     
!   MC        0.97     MK        1.00     NY        1.00*    ON        1.07     
!   OV        0.99     PT        1.00     SC        1.00     TS        1.02     
!   WF        1.05     WZ        1.10     GN        1.00     NL        0.99     
! 
!  A total of 36 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.03     GC        1.01     HH        1.00*    
!   HN        1.08     KK        0.99     KP        0.97     LA        0.97     
!   MC        1.00*    MK        0.96     NY        1.00*    ON        1.00*    
!   OV        0.95     PT        0.99     SC        1.03     TS        1.00*    
!   WF        0.99     WZ        1.00*    GN        0.94     NL        0.99     
! 
! 
! Correcting IF 3.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.06     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.83     MK        1.00*    NY        1.00*    ON        1.07     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00     GN        1.00*    NL        1.00*    
! 
!  A total of 72 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.01     GC        0.99     HH        0.99     
!   HN        1.08     KK        1.08     KP        1.02     LA        1.01     
!   MC        1.43     MK        0.99     NY        1.00*    ON        1.07     
!   OV        1.03     PT        0.96     SC        1.03     TS        0.92     
!   WF        1.08     WZ        1.06     GN        1.00     NL        0.97     
! 
!  A total of 36 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.00     GC        1.03     HH        1.00*    
!   HN        1.04     KK        1.01     KP        1.02     LA        1.00     
!   MC        1.00*    MK        0.92     NY        1.00*    ON        1.00*    
!   OV        0.99     PT        0.92     SC        1.05     TS        1.00*    
!   WF        0.99     WZ        1.00*    GN        0.95     NL        0.98     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.00     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.18     MK        1.00*    NY        1.00*    ON        0.97     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.05     GN        1.00*    NL        1.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.00     GC        1.01     HH        1.03     
!   HN        1.12     KK        1.08     KP        1.01     LA        1.01     
!   MC        1.26     MK        1.03     NY        1.00*    ON        0.99     
!   OV        0.99     PT        0.95     SC        1.03     TS        0.97     
!   WF        1.07     WZ        1.07     GN        1.00     NL        0.97     
! 
!  A total of 36 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        0.99     GC        1.02     HH        1.00*    
!   HN        1.05     KK        1.01     KP        0.99     LA        1.01     
!   MC        1.00*    MK        0.94     NY        1.00*    ON        1.00*    
!   OV        0.95     PT        0.89     SC        1.05     TS        1.00*    
!   WF        0.99     WZ        1.00*    GN        0.96     NL        0.96     
! 
! 
! Fit before self-cal, rms=0.269565Jy  sigma=0.001839
! Fit after  self-cal, rms=0.279341Jy  sigma=0.001657
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.576 mas, bmaj=6.602 mas, bpa=-4.525 degrees
! Estimated noise=494.238 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.00637161 Jy
! Component: 100  -  total flux cleaned = -0.00685371 Jy
! Component: 150  -  total flux cleaned = -0.0074686 Jy
! Component: 200  -  total flux cleaned = -0.00781391 Jy
! Total flux subtracted in 200 components = -0.00781391 Jy
! Clean residual min=-0.010459 max=0.013223 Jy/beam
! Clean residual mean=0.000358 rms=0.002815 Jy/beam
! Combined flux in latest and established models = 1.93993 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 61 components and 1.93993 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.278829Jy  sigma=0.001654
! Fit after  self-cal, rms=0.279903Jy  sigma=0.001653
! 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.279903Jy  sigma=0.001653
! Fit after  self-cal, rms=0.286039Jy  sigma=0.001504
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.587 mas, bmaj=6.595 mas, bpa=-4.551 degrees
! Estimated noise=494.86 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00270153 Jy
! Component: 100  -  total flux cleaned = 0.00268827 Jy
! Component: 150  -  total flux cleaned = 0.00284937 Jy
! Component: 200  -  total flux cleaned = 0.00284123 Jy
! Total flux subtracted in 200 components = 0.00284123 Jy
! Clean residual min=-0.004659 max=0.010193 Jy/beam
! Clean residual mean=0.000221 rms=0.001324 Jy/beam
! Combined flux in latest and established models = 1.94277 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 65 components and 1.94277 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.285744Jy  sigma=0.001501
! Fit after  self-cal, rms=0.286394Jy  sigma=0.001500
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 (6, 3.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00827564 Jy
! Component: 100  -  total flux cleaned = 0.00941315 Jy
! Component: 150  -  total flux cleaned = 0.00985597 Jy
! Component: 200  -  total flux cleaned = 0.00998229 Jy
! Total flux subtracted in 200 components = 0.00998229 Jy
! Clean residual min=-0.005064 max=0.004625 Jy/beam
! Clean residual mean=0.000169 rms=0.001137 Jy/beam
! Combined flux in latest and established models = 1.95276 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 79 components and 1.95276 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.286066Jy  sigma=0.001496
! Fit after  self-cal, rms=0.286079Jy  sigma=0.001496
! 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.286079Jy  sigma=0.001496
! Fit after  self-cal, rms=0.289880Jy  sigma=0.001485
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.595 mas, bmaj=6.602 mas, bpa=-4.556 degrees
! Estimated noise=495.317 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00272077 Jy
! Component: 100  -  total flux cleaned = 0.00331685 Jy
! Component: 150  -  total flux cleaned = 0.00357153 Jy
! Component: 200  -  total flux cleaned = 0.003798 Jy
! Total flux subtracted in 200 components = 0.003798 Jy
! Clean residual min=-0.003810 max=0.004592 Jy/beam
! Clean residual mean=0.000109 rms=0.000932 Jy/beam
! Combined flux in latest and established models = 1.95655 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 86 components and 1.95655 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.289708Jy  sigma=0.001483
! Fit after  self-cal, rms=0.289826Jy  sigma=0.001483
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.000761671 Jy
! Component: 100  -  total flux cleaned = 0.000964955 Jy
! Component: 150  -  total flux cleaned = 0.00114971 Jy
! Component: 200  -  total flux cleaned = 0.00123354 Jy
! Total flux subtracted in 200 components = 0.00123354 Jy
! Clean residual min=-0.003720 max=0.004490 Jy/beam
! Clean residual mean=0.000102 rms=0.000921 Jy/beam
! Combined flux in latest and established models = 1.95779 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 90 components and 1.95779 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.289745Jy  sigma=0.001483
! Fit after  self-cal, rms=0.289776Jy  sigma=0.001482
! Inverting map 
! Added new window around map position (30.5, 5.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0044125 Jy
! Component: 100  -  total flux cleaned = 0.00614295 Jy
! Component: 150  -  total flux cleaned = 0.00696163 Jy
! Component: 200  -  total flux cleaned = 0.00728946 Jy
! Total flux subtracted in 200 components = 0.00728946 Jy
! Clean residual min=-0.003771 max=0.003281 Jy/beam
! Clean residual mean=0.000072 rms=0.000843 Jy/beam
! Combined flux in latest and established models = 1.96508 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 107 components and 1.96508 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.289655Jy  sigma=0.001482
! Fit after  self-cal, rms=0.289673Jy  sigma=0.001481
! 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.289673Jy  sigma=0.001481
! Fit after  self-cal, rms=0.291195Jy  sigma=0.001481
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.269 mas, bmaj=12.65 mas, bpa=-5.735 degrees
! Estimated noise=622.383 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00203521 Jy
! Component: 100  -  total flux cleaned = 0.00293624 Jy
! Component: 150  -  total flux cleaned = 0.00370888 Jy
! Component: 200  -  total flux cleaned = 0.00437691 Jy
! Total flux subtracted in 200 components = 0.00437691 Jy
! Clean residual min=-0.002520 max=0.003519 Jy/beam
! Clean residual mean=0.000106 rms=0.000870 Jy/beam
! Combined flux in latest and established models = 1.96945 Jy
selfcal
! Performing phase self-cal
! Adding 44 model components to the UV plane model.
! The established model now contains 147 components and 1.96945 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.291177Jy  sigma=0.001481
! Fit after  self-cal, rms=0.291169Jy  sigma=0.001481
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.000613169 Jy
! Component: 100  -  total flux cleaned = 0.00107148 Jy
! Component: 150  -  total flux cleaned = 0.00146236 Jy
! Component: 200  -  total flux cleaned = 0.0018665 Jy
! Total flux subtracted in 200 components = 0.0018665 Jy
! Clean residual min=-0.002658 max=0.003563 Jy/beam
! Clean residual mean=0.000085 rms=0.000878 Jy/beam
! Combined flux in latest and established models = 1.97132 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 160 components and 1.97132 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.291167Jy  sigma=0.001481
! Fit after  self-cal, rms=0.291142Jy  sigma=0.001481
! 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.599 mas, bmaj=6.606 mas, bpa=-4.562 degrees
! Estimated noise=495.658 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.599 x 6.606 at -4.562 degrees (North through East)
! Clean map  min=-0.00295  max=1.3939 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.291142Jy  sigma=0.001481
! Fit after  self-cal, rms=0.335333Jy  sigma=0.001359
! Inverting map and beam 
! Estimated beam: bmin=2.598 mas, bmaj=6.608 mas, bpa=-4.553 degrees
! Estimated noise=495.144 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00129121 Jy
! Component: 100  -  total flux cleaned = -0.00121293 Jy
! Component: 150  -  total flux cleaned = -0.000999379 Jy
! Component: 200  -  total flux cleaned = -0.000930321 Jy
! Total flux subtracted in 200 components = -0.000930321 Jy
! Clean residual min=-0.002939 max=0.003253 Jy/beam
! Clean residual mean=0.000053 rms=0.000763 Jy/beam
! Combined flux in latest and established models = 1.97039 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 166 components and 1.97039 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.335272Jy  sigma=0.001359
! Fit after  self-cal, rms=0.335306Jy  sigma=0.001358
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000104005 Jy
! Component: 100  -  total flux cleaned = 0.000231411 Jy
! Component: 150  -  total flux cleaned = 0.000353515 Jy
! Component: 200  -  total flux cleaned = 0.00035229 Jy
! Total flux subtracted in 200 components = 0.00035229 Jy
! Clean residual min=-0.002703 max=0.003206 Jy/beam
! Clean residual mean=0.000051 rms=0.000756 Jy/beam
! Combined flux in latest and established models = 1.97074 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 169 components and 1.97074 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.335267Jy  sigma=0.001358
! Fit after  self-cal, rms=0.335275Jy  sigma=0.001358
! Inverting map 
! Added new window around map position (15, -4.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00275349 Jy
! Component: 100  -  total flux cleaned = 0.00305818 Jy
! Component: 150  -  total flux cleaned = 0.00299576 Jy
! Component: 200  -  total flux cleaned = 0.00288265 Jy
! Total flux subtracted in 200 components = 0.00288265 Jy
! Clean residual min=-0.002688 max=0.002639 Jy/beam
! Clean residual mean=0.000034 rms=0.000718 Jy/beam
! Combined flux in latest and established models = 1.97362 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 181 components and 1.97362 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.335225Jy  sigma=0.001358
! Fit after  self-cal, rms=0.335234Jy  sigma=0.001358
! 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.335234Jy  sigma=0.001358
! Fit after  self-cal, rms=0.336022Jy  sigma=0.001358
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.938 mas, bmaj=4.077 mas, bpa=3.415 degrees
! Estimated noise=936.069 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.01014 Jy
! Component: 100  -  total flux cleaned = 1.39938 Jy
! Component: 150  -  total flux cleaned = 1.59626 Jy
! Component: 200  -  total flux cleaned = 1.7091 Jy
! Total flux subtracted in 200 components = 1.7091 Jy
! Clean residual min=-0.015576 max=0.058889 Jy/beam
! Clean residual mean=0.000087 rms=0.004642 Jy/beam
! Combined flux in latest and established models = 1.7091 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 21 model components to the UV plane model.
! The established model now contains 21 components and 1.7091 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.601 mas, bmaj=6.611 mas, bpa=-4.552 degrees
! Estimated noise=495.3 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.108117 Jy
! Component: 100  -  total flux cleaned = 0.163269 Jy
! Component: 150  -  total flux cleaned = 0.193487 Jy
! Component: 200  -  total flux cleaned = 0.211772 Jy
! Total flux subtracted in 200 components = 0.211772 Jy
! Clean residual min=-0.003848 max=0.010442 Jy/beam
! Clean residual mean=0.000293 rms=0.001668 Jy/beam
! Combined flux in latest and established models = 1.92087 Jy
! Adding 50 model components to the UV plane model.
! The established model now contains 65 components and 1.92087 Jy
! Inverting map 
! Added new window around map position (1, -4.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0123463 Jy
! Component: 100  -  total flux cleaned = 0.0207962 Jy
! Component: 150  -  total flux cleaned = 0.0269435 Jy
! Component: 200  -  total flux cleaned = 0.031978 Jy
! Total flux subtracted in 200 components = 0.031978 Jy
! Clean residual min=-0.002467 max=0.004038 Jy/beam
! Clean residual mean=0.000135 rms=0.000917 Jy/beam
! Combined flux in latest and established models = 1.95284 Jy
! Adding 37 model components to the UV plane model.
! The established model now contains 96 components and 1.95284 Jy
! Inverting map 
! Added new window around map position (11.5, 9.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00446261 Jy
! Component: 100  -  total flux cleaned = 0.00807857 Jy
! Component: 150  -  total flux cleaned = 0.0111431 Jy
! Component: 200  -  total flux cleaned = 0.0134765 Jy
! Total flux subtracted in 200 components = 0.0134765 Jy
! Clean residual min=-0.002380 max=0.002702 Jy/beam
! Clean residual mean=0.000072 rms=0.000761 Jy/beam
! Combined flux in latest and established models = 1.96632 Jy
! Adding 40 model components to the UV plane model.
! The established model now contains 114 components and 1.96632 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.269 mas, bmaj=12.65 mas, bpa=-5.74 degrees
! Estimated noise=621.553 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00297078 Jy
! Component: 100  -  total flux cleaned = 0.00490813 Jy
! Component: 150  -  total flux cleaned = 0.00630065 Jy
! Component: 200  -  total flux cleaned = 0.0069116 Jy
! Total flux subtracted in 200 components = 0.0069116 Jy
! Clean residual min=-0.002226 max=0.002400 Jy/beam
! Clean residual mean=0.000086 rms=0.000713 Jy/beam
! Combined flux in latest and established models = 1.97323 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 = 0.000406048 Jy
! Component: 100  -  total flux cleaned = 0.00066329 Jy
! Component: 150  -  total flux cleaned = 0.000916583 Jy
! Component: 200  -  total flux cleaned = 0.00111531 Jy
! Total flux subtracted in 200 components = 0.00111531 Jy
! Clean residual min=-0.002205 max=0.002273 Jy/beam
! Clean residual mean=0.000071 rms=0.000693 Jy/beam
! Combined flux in latest and established models = 1.97435 Jy
! Adding 71 model components to the UV plane model.
! The established model now contains 179 components and 1.97435 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.601 mas, bmaj=6.611 mas, bpa=-4.552 degrees
! Estimated noise=495.3 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000857369 Jy
! Component: 100  -  total flux cleaned = -0.000779319 Jy
! Component: 150  -  total flux cleaned = -0.000779495 Jy
! Component: 200  -  total flux cleaned = -0.000916145 Jy
! Total flux subtracted in 200 components = -0.000916145 Jy
! Clean residual min=-0.002423 max=0.002650 Jy/beam
! Clean residual mean=0.000035 rms=0.000711 Jy/beam
! Combined flux in latest and established models = 1.97343 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 194 components and 1.97343 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.336332Jy  sigma=0.001359
! Fit after  self-cal, rms=0.336098Jy  sigma=0.001358
wmodel J0339-0146_S_1999_12_20_pus_map.mod
! Writing 194 model components to file: J0339-0146_S_1999_12_20_pus_map.mod
wobs J0339-0146_S_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J0339-0146_S_1999_12_20_pus_uvs.fits
wwins J0339-0146_S_1999_12_20_pus_map.win
! wwins: Wrote 7 windows to J0339-0146_S_1999_12_20_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.000551148 Jy
! Component: 100  -  total flux cleaned = 0.000732691 Jy
! Component: 150  -  total flux cleaned = 0.000863765 Jy
! Component: 200  -  total flux cleaned = 0.000991308 Jy
! Component: 250  -  total flux cleaned = 0.00107443 Jy
! Component: 300  -  total flux cleaned = 0.00107456 Jy
! Component: 350  -  total flux cleaned = 0.00107476 Jy
! Component: 400  -  total flux cleaned = 0.00107479 Jy
! Component: 450  -  total flux cleaned = 0.00111398 Jy
! Component: 500  -  total flux cleaned = 0.00111401 Jy
! Component: 550  -  total flux cleaned = 0.00119036 Jy
! Component: 600  -  total flux cleaned = 0.00115283 Jy
! Component: 650  -  total flux cleaned = 0.0013025 Jy
! Component: 700  -  total flux cleaned = 0.00133975 Jy
! Component: 750  -  total flux cleaned = 0.00144976 Jy
! Component: 800  -  total flux cleaned = 0.00152215 Jy
! Component: 850  -  total flux cleaned = 0.00159381 Jy
! Component: 900  -  total flux cleaned = 0.00166468 Jy
! Component: 950  -  total flux cleaned = 0.00162946 Jy
! Component: 1000  -  total flux cleaned = 0.00173486 Jy
! Component: 1050  -  total flux cleaned = 0.00176992 Jy
! Component: 1100  -  total flux cleaned = 0.00187362 Jy
! Component: 1150  -  total flux cleaned = 0.00180515 Jy
! Component: 1200  -  total flux cleaned = 0.00190753 Jy
! Component: 1250  -  total flux cleaned = 0.00197546 Jy
! Component: 1300  -  total flux cleaned = 0.0019082 Jy
! Component: 1350  -  total flux cleaned = 0.00197512 Jy
! Component: 1400  -  total flux cleaned = 0.0020085 Jy
! Component: 1450  -  total flux cleaned = 0.00200835 Jy
! Component: 1500  -  total flux cleaned = 0.00210692 Jy
! Component: 1550  -  total flux cleaned = 0.002074 Jy
! Component: 1600  -  total flux cleaned = 0.00210687 Jy
! Component: 1650  -  total flux cleaned = 0.00200968 Jy
! Component: 1700  -  total flux cleaned = 0.00213865 Jy
! Component: 1750  -  total flux cleaned = 0.00201029 Jy
! Component: 1800  -  total flux cleaned = 0.00204226 Jy
! Component: 1850  -  total flux cleaned = 0.00204246 Jy
! Component: 1900  -  total flux cleaned = 0.00204254 Jy
! Component: 1950  -  total flux cleaned = 0.00204264 Jy
! Component: 2000  -  total flux cleaned = 0.00204273 Jy
! Total flux subtracted in 2048 components = 0.00207405 Jy
! Clean residual min=-0.001656 max=0.002160 Jy/beam
! Clean residual mean=0.000029 rms=0.000605 Jy/beam
! Combined flux in latest and established models = 1.97551 Jy
keep
! Adding 150 model components to the UV plane model.
! The established model now contains 344 components and 1.97551 Jy
![Exited script file: muppet]
wmap "J0339-0146_S_1999_12_20_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.601 x 6.611 at -4.552 degrees (North through East)
! Clean map  min=-0.0023137  max=1.3948 Jy/beam
! Writing clean map to FITS file: J0339-0146_S_1999_12_20_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.39481 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000605221 
device "J0339-0146_S_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J0339-0146_S_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.130173 0.130173 0.260346 0.520692 1.04138 2.08277 4.16554 8.33108 16.6622 33.3243 66.6486
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0018 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.394 
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.601 x 6.611 at -4.552 degrees (North through East)
! Clean map  min=-0.0023137  max=1.3948 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0339-0146_S_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J0339-0146_S_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0339-0146_S_1999_12_20_pus_uvs.log closed on Fri Dec 21 12:54:17 2007