! Started logfile: J2246-1206_S_1999_05_10_pus_uvs.log on Mon Jan 21 17:51:37 2008
obs J2246-1206_S_1999_05_10_pus_uva.fits
! Reading UV FITS file: J2246-1206_S_1999_05_10_pus_uva.fits
! AN table 1: 64 integrations on 153 of 153 possible baselines.
! AN table 2: 159 integrations on 153 of 153 possible baselines.
! AN table 3: 110 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.150503 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2246-1206
! 
! 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 1998 lines of history.
! 
! Reading 30672 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 J2246-1206_S_1999_05_10_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 1016 telescope corrections were flagged in sub-array 1.
!  A total of 2144 telescope corrections were flagged in sub-array 2.
!  A total of 864 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1016 telescope corrections were flagged in sub-array 1.
!  A total of 2144 telescope corrections were flagged in sub-array 2.
!  A total of 864 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1016 telescope corrections were flagged in sub-array 1.
!  A total of 2144 telescope corrections were flagged in sub-array 2.
!  A total of 864 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1122 telescope corrections were flagged in sub-array 1.
!  A total of 2229 telescope corrections were flagged in sub-array 2.
!  A total of 934 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.964312Jy  sigma=0.006521
! Fit after  self-cal, rms=0.556651Jy  sigma=0.003994
! 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.978 mas, bmaj=3.97 mas, bpa=5.924 degrees
! Estimated noise=1022.55 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.777446 Jy
! Component: 100  -  total flux cleaned = 1.08288 Jy
! Total flux subtracted in 100 components = 1.08288 Jy
! Clean residual min=-0.041258 max=0.143058 Jy/beam
! Clean residual mean=-0.000149 rms=0.013723 Jy/beam
! Combined flux in latest and established models = 1.08288 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 13 components and 1.08288 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.432518Jy  sigma=0.003242
! Fit after  self-cal, rms=0.429545Jy  sigma=0.003233
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.166951 Jy
! Component: 100  -  total flux cleaned = 0.260427 Jy
! Total flux subtracted in 100 components = 0.260427 Jy
! Clean residual min=-0.025389 max=0.103651 Jy/beam
! Clean residual mean=-0.000069 rms=0.008289 Jy/beam
! Combined flux in latest and established models = 1.34331 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 23 components and 1.34331 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.338642Jy  sigma=0.002238
! Fit after  self-cal, rms=0.337203Jy  sigma=0.002232
! Inverting map 
! Added new window around map position (5.5, 7).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0896412 Jy
! Component: 100  -  total flux cleaned = 0.140652 Jy
! Total flux subtracted in 100 components = 0.140652 Jy
! Clean residual min=-0.021811 max=0.028987 Jy/beam
! Clean residual mean=-0.000090 rms=0.005636 Jy/beam
! Combined flux in latest and established models = 1.48396 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 35 components and 1.48396 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.309876Jy  sigma=0.001867
! Fit after  self-cal, rms=0.307709Jy  sigma=0.001848
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0423743 Jy
! Component: 100  -  total flux cleaned = 0.0711532 Jy
! Total flux subtracted in 100 components = 0.0711532 Jy
! Clean residual min=-0.018938 max=0.021722 Jy/beam
! Clean residual mean=-0.000095 rms=0.004571 Jy/beam
! Combined flux in latest and established models = 1.55511 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 41 components and 1.55511 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.300901Jy  sigma=0.001732
! Fit after  self-cal, rms=0.300411Jy  sigma=0.001728
! 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.354 mas, bmaj=5.274 mas, bpa=1.682 degrees
! Estimated noise=574.057 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.038446 Jy
! Component: 100  -  total flux cleaned = 0.0610814 Jy
! Component: 150  -  total flux cleaned = 0.075441 Jy
! Component: 200  -  total flux cleaned = 0.0846334 Jy
! Total flux subtracted in 200 components = 0.0846334 Jy
! Clean residual min=-0.018994 max=0.018265 Jy/beam
! Clean residual mean=0.000213 rms=0.005662 Jy/beam
! Combined flux in latest and established models = 1.63975 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 53 components and 1.63974 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.297463Jy  sigma=0.001660
! Fit after  self-cal, rms=0.296978Jy  sigma=0.001656
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 96 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        0.77     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.96     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.08     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.22     
! 
!  A total of 111 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.97     GC        1.00*    HH        1.22     
!   HN        1.01     KK        0.94     KP        1.03     LA        0.98     
!   MC        1.03     MK        0.96     NL        1.01     NY        1.00*    
!   ON        0.87     OV        1.03     PT        1.00     SC        0.99     
!   WF        0.99     WZ        1.17     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.98     GC        1.00*    HH        1.04     
!   HN        1.02     KK        1.00     KP        0.99     LA        0.99     
!   MC        1.05     MK        0.99     NL        1.01     NY        1.00*    
!   ON        1.11     OV        1.02     PT        1.00     SC        1.01     
!   WF        1.02     WZ        1.57     
! 
! 
! Correcting IF 2.
!  A total of 96 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.35     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.06     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.14     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.07     
! 
!  A total of 111 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.00     GC        1.00*    HH        1.08     
!   HN        1.00     KK        0.93     KP        1.01     LA        0.97     
!   MC        1.03     MK        1.02     NL        1.02     NY        1.00*    
!   ON        1.06     OV        0.99     PT        0.99     SC        1.03     
!   WF        0.98     WZ        1.08     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.01     GC        1.00*    HH        1.06     
!   HN        1.01     KK        0.97     KP        0.98     LA        0.96     
!   MC        0.93     MK        1.09     NL        0.99     NY        1.00*    
!   ON        1.13     OV        0.98     PT        0.99     SC        1.03     
!   WF        1.02     WZ        1.65     
! 
! 
! Correcting IF 3.
!  A total of 96 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.30     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.84     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.16     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.41     
! 
!  A total of 111 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.97     GC        1.00*    HH        0.97     
!   HN        1.03     KK        0.92     KP        0.98     LA        1.00     
!   MC        1.00     MK        0.97     NL        1.04     NY        1.00*    
!   ON        0.96     OV        1.00     PT        0.97     SC        1.01     
!   WF        1.02     WZ        0.96     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.99     GC        1.00*    HH        1.08     
!   HN        1.02     KK        0.98     KP        0.97     LA        0.97     
!   MC        1.76     MK        1.00     NL        1.01     NY        1.00*    
!   ON        1.11     OV        0.98     PT        0.95     SC        1.02     
!   WF        1.04     WZ        1.29     
! 
! 
! Correcting IF 4.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 60 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.97     GC        1.00*    HH        1.03     
!   HN        1.02     KK        0.91     KP        0.97     LA        1.00     
!   MC        0.87     MK        0.93     NL        1.05     NY        1.00*    
!   ON        1.37     OV        0.96     PT        0.99     SC        1.03     
!   WF        1.03     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        0.98     GC        1.00*    HH        1.11     
!   HN        0.99     KK        0.98     KP        0.96     LA        0.97     
!   MC        1.40     MK        1.02     NL        1.02     NY        1.00*    
!   ON        1.12     OV        0.95     PT        0.99     SC        1.03     
!   WF        1.02     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.296978Jy  sigma=0.001656
! Fit after  self-cal, rms=0.326407Jy  sigma=0.001503
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.45 mas, bmaj=5.639 mas, bpa=2.088 degrees
! Estimated noise=593.229 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 (12, 5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00806866 Jy
! Component: 100  -  total flux cleaned = 0.0101103 Jy
! Component: 150  -  total flux cleaned = 0.011822 Jy
! Component: 200  -  total flux cleaned = 0.0129428 Jy
! Total flux subtracted in 200 components = 0.0129428 Jy
! Clean residual min=-0.009005 max=0.009961 Jy/beam
! Clean residual mean=0.000388 rms=0.002105 Jy/beam
! Combined flux in latest and established models = 1.65269 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 70 components and 1.65269 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.324684Jy  sigma=0.001490
! Fit after  self-cal, rms=0.325723Jy  sigma=0.001488
! 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.325723Jy  sigma=0.001488
! Fit after  self-cal, rms=0.325668Jy  sigma=0.001470
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.458 mas, bmaj=5.652 mas, bpa=2.172 degrees
! Estimated noise=594.013 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00220227 Jy
! Component: 100  -  total flux cleaned = 0.00323581 Jy
! Component: 150  -  total flux cleaned = 0.00412217 Jy
! Component: 200  -  total flux cleaned = 0.00490507 Jy
! Total flux subtracted in 200 components = 0.00490507 Jy
! Clean residual min=-0.006439 max=0.006897 Jy/beam
! Clean residual mean=0.000247 rms=0.001471 Jy/beam
! Combined flux in latest and established models = 1.65759 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 75 components and 1.65759 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.324866Jy  sigma=0.001464
! Fit after  self-cal, rms=0.325162Jy  sigma=0.001464
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 (2.5, 6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0027272 Jy
! Component: 100  -  total flux cleaned = 0.0041351 Jy
! Component: 150  -  total flux cleaned = 0.00517761 Jy
! Component: 200  -  total flux cleaned = 0.00537125 Jy
! Total flux subtracted in 200 components = 0.00537125 Jy
! Clean residual min=-0.006338 max=0.006483 Jy/beam
! Clean residual mean=0.000187 rms=0.001357 Jy/beam
! Combined flux in latest and established models = 1.66296 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 85 components and 1.66296 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.324770Jy  sigma=0.001461
! Fit after  self-cal, rms=0.324817Jy  sigma=0.001461
! Inverting map 
! Added new window around map position (-5, 47.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00457616 Jy
! Component: 100  -  total flux cleaned = 0.00567885 Jy
! Component: 150  -  total flux cleaned = 0.00617032 Jy
! Component: 200  -  total flux cleaned = 0.00647523 Jy
! Total flux subtracted in 200 components = 0.00647523 Jy
! Clean residual min=-0.006178 max=0.004631 Jy/beam
! Clean residual mean=0.000106 rms=0.001241 Jy/beam
! Combined flux in latest and established models = 1.66944 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 96 components and 1.66944 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.324542Jy  sigma=0.001459
! Fit after  self-cal, rms=0.324553Jy  sigma=0.001459
! 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.324553Jy  sigma=0.001459
! Fit after  self-cal, rms=0.328410Jy  sigma=0.001458
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.468 mas, bmaj=5.664 mas, bpa=2.201 degrees
! Estimated noise=595.326 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00164787 Jy
! Component: 100  -  total flux cleaned = 0.00237255 Jy
! Component: 150  -  total flux cleaned = 0.00300998 Jy
! Component: 200  -  total flux cleaned = 0.00329974 Jy
! Total flux subtracted in 200 components = 0.00329974 Jy
! Clean residual min=-0.004819 max=0.004549 Jy/beam
! Clean residual mean=0.000029 rms=0.001076 Jy/beam
! Combined flux in latest and established models = 1.67274 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 101 components and 1.67274 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.328173Jy  sigma=0.001457
! Fit after  self-cal, rms=0.328274Jy  sigma=0.001456
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.000607131 Jy
! Component: 100  -  total flux cleaned = 0.00101287 Jy
! Component: 150  -  total flux cleaned = 0.00113359 Jy
! Component: 200  -  total flux cleaned = 0.00124684 Jy
! Total flux subtracted in 200 components = 0.00124684 Jy
! Clean residual min=-0.004658 max=0.004039 Jy/beam
! Clean residual mean=0.000011 rms=0.001037 Jy/beam
! Combined flux in latest and established models = 1.67399 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 113 components and 1.67399 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.328154Jy  sigma=0.001456
! Fit after  self-cal, rms=0.328168Jy  sigma=0.001456
! 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.328168Jy  sigma=0.001456
! Fit after  self-cal, rms=0.330308Jy  sigma=0.001455
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.036 mas, bmaj=13.38 mas, bpa=-2.147 degrees
! Estimated noise=728.07 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00318538 Jy
! Component: 100  -  total flux cleaned = 0.00319705 Jy
! Component: 150  -  total flux cleaned = 0.00307851 Jy
! Component: 200  -  total flux cleaned = 0.00307842 Jy
! Total flux subtracted in 200 components = 0.00307842 Jy
! Clean residual min=-0.003477 max=0.003477 Jy/beam
! Clean residual mean=-0.000054 rms=0.001035 Jy/beam
! Combined flux in latest and established models = 1.67706 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 131 components and 1.67706 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.330274Jy  sigma=0.001455
! Fit after  self-cal, rms=0.330294Jy  sigma=0.001455
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.000607066 Jy
! Component: 100  -  total flux cleaned = 0.000714781 Jy
! Component: 150  -  total flux cleaned = 0.000789607 Jy
! Component: 200  -  total flux cleaned = 0.000854388 Jy
! Total flux subtracted in 200 components = 0.000854388 Jy
! Clean residual min=-0.003410 max=0.003468 Jy/beam
! Clean residual mean=-0.000082 rms=0.001040 Jy/beam
! Combined flux in latest and established models = 1.67792 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 146 components and 1.67792 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.330294Jy  sigma=0.001455
! Fit after  self-cal, rms=0.330288Jy  sigma=0.001455
! 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.473 mas, bmaj=5.673 mas, bpa=2.192 degrees
! Estimated noise=596.171 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.473 x 5.673 at 2.192 degrees (North through East)
! Clean map  min=-0.003727  max=1.071 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.330288Jy  sigma=0.001455
! Fit after  self-cal, rms=1.188962Jy  sigma=0.001204
! Inverting map and beam 
! Estimated beam: bmin=2.474 mas, bmaj=5.646 mas, bpa=2.206 degrees
! Estimated noise=595.36 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00134006 Jy
! Component: 100  -  total flux cleaned = -0.00122658 Jy
! Component: 150  -  total flux cleaned = -0.00123067 Jy
! Component: 200  -  total flux cleaned = -0.0015425 Jy
! Total flux subtracted in 200 components = -0.0015425 Jy
! Clean residual min=-0.003342 max=0.003213 Jy/beam
! Clean residual mean=0.000000 rms=0.000846 Jy/beam
! Combined flux in latest and established models = 1.67638 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 153 components and 1.67638 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.188948Jy  sigma=0.001203
! Fit after  self-cal, rms=1.189071Jy  sigma=0.001203
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000103649 Jy
! Component: 100  -  total flux cleaned = 0.000111274 Jy
! Component: 150  -  total flux cleaned = 2.09829e-05 Jy
! Component: 200  -  total flux cleaned = -6.58919e-05 Jy
! Total flux subtracted in 200 components = -6.58919e-05 Jy
! Clean residual min=-0.003318 max=0.003118 Jy/beam
! Clean residual mean=-0.000000 rms=0.000822 Jy/beam
! Combined flux in latest and established models = 1.67631 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 160 components and 1.67631 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.189061Jy  sigma=0.001202
! Fit after  self-cal, rms=1.189111Jy  sigma=0.001202
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.189111Jy  sigma=0.001202
! Fit after  self-cal, rms=1.228410Jy  sigma=0.001202
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.041 mas, bmaj=4.132 mas, bpa=5.97 degrees
! Estimated noise=1085.17 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.797453 Jy
! Component: 100  -  total flux cleaned = 1.10198 Jy
! Component: 150  -  total flux cleaned = 1.26579 Jy
! Component: 200  -  total flux cleaned = 1.3707 Jy
! Total flux subtracted in 200 components = 1.3707 Jy
! Clean residual min=-0.016409 max=0.056770 Jy/beam
! Clean residual mean=-0.000000 rms=0.006108 Jy/beam
! Combined flux in latest and established models = 1.37069 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 20 model components to the UV plane model.
! The established model now contains 20 components and 1.37069 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.478 mas, bmaj=5.655 mas, bpa=2.18 degrees
! Estimated noise=595.686 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.116477 Jy
! Component: 100  -  total flux cleaned = 0.180744 Jy
! Component: 150  -  total flux cleaned = 0.218008 Jy
! Component: 200  -  total flux cleaned = 0.242645 Jy
! Total flux subtracted in 200 components = 0.242645 Jy
! Clean residual min=-0.005171 max=0.014873 Jy/beam
! Clean residual mean=0.000798 rms=0.002673 Jy/beam
! Combined flux in latest and established models = 1.61334 Jy
! Adding 48 model components to the UV plane model.
! The established model now contains 59 components and 1.61334 Jy
! Inverting map 
! Added new window around map position (1, -5.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0173072 Jy
! Component: 100  -  total flux cleaned = 0.0294653 Jy
! Component: 150  -  total flux cleaned = 0.0383595 Jy
! Component: 200  -  total flux cleaned = 0.0449373 Jy
! Total flux subtracted in 200 components = 0.0449373 Jy
! Clean residual min=-0.003106 max=0.003849 Jy/beam
! Clean residual mean=0.000219 rms=0.001067 Jy/beam
! Combined flux in latest and established models = 1.65828 Jy
! Adding 39 model components to the UV plane model.
! The established model now contains 86 components and 1.65828 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=8.034 mas, bmaj=13.38 mas, bpa=-2.194 degrees
! Estimated noise=726.55 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00698257 Jy
! Component: 100  -  total flux cleaned = 0.0107135 Jy
! Component: 150  -  total flux cleaned = 0.0131961 Jy
! Component: 200  -  total flux cleaned = 0.0147447 Jy
! Total flux subtracted in 200 components = 0.0147447 Jy
! Clean residual min=-0.002707 max=0.002530 Jy/beam
! Clean residual mean=0.000062 rms=0.000874 Jy/beam
! Combined flux in latest and established models = 1.67302 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.000383889 Jy
! Component: 100  -  total flux cleaned = 0.000525613 Jy
! Component: 150  -  total flux cleaned = 0.00061109 Jy
! Component: 200  -  total flux cleaned = 0.000727931 Jy
! Total flux subtracted in 200 components = 0.000727931 Jy
! Clean residual min=-0.002628 max=0.002438 Jy/beam
! Clean residual mean=0.000040 rms=0.000820 Jy/beam
! Combined flux in latest and established models = 1.67375 Jy
! Adding 73 model components to the UV plane model.
! The established model now contains 151 components and 1.67375 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.478 mas, bmaj=5.655 mas, bpa=2.18 degrees
! Estimated noise=595.686 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000274124 Jy
! Component: 100  -  total flux cleaned = -0.000281411 Jy
! Component: 150  -  total flux cleaned = -3.61526e-05 Jy
! Component: 200  -  total flux cleaned = 3.86444e-05 Jy
! Total flux subtracted in 200 components = 3.86444e-05 Jy
! Clean residual min=-0.002995 max=0.003812 Jy/beam
! Clean residual mean=0.000016 rms=0.000770 Jy/beam
! Combined flux in latest and established models = 1.67379 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 172 components and 1.67379 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.228419Jy  sigma=0.001201
! Fit after  self-cal, rms=1.228762Jy  sigma=0.001201
wmodel J2246-1206_S_1999_05_10_pus_map.mod
! Writing 172 model components to file: J2246-1206_S_1999_05_10_pus_map.mod
wobs J2246-1206_S_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J2246-1206_S_1999_05_10_pus_uvs.fits
wwins J2246-1206_S_1999_05_10_pus_map.win
! wwins: Wrote 6 windows to J2246-1206_S_1999_05_10_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.00052116 Jy
! Component: 100  -  total flux cleaned = 0.000319378 Jy
! Component: 150  -  total flux cleaned = -1.7614e-05 Jy
! Component: 200  -  total flux cleaned = -0.000111359 Jy
! Component: 250  -  total flux cleaned = -0.000157488 Jy
! Component: 300  -  total flux cleaned = -0.000158082 Jy
! Component: 350  -  total flux cleaned = -0.000245633 Jy
! Component: 400  -  total flux cleaned = -0.000373617 Jy
! Component: 450  -  total flux cleaned = -0.000457825 Jy
! Component: 500  -  total flux cleaned = -0.000582022 Jy
! Component: 550  -  total flux cleaned = -0.000581872 Jy
! Component: 600  -  total flux cleaned = -0.000662585 Jy
! Component: 650  -  total flux cleaned = -0.000742085 Jy
! Component: 700  -  total flux cleaned = -0.000859891 Jy
! Component: 750  -  total flux cleaned = -0.000937494 Jy
! Component: 800  -  total flux cleaned = -0.00101388 Jy
! Component: 850  -  total flux cleaned = -0.00108911 Jy
! Component: 900  -  total flux cleaned = -0.00101416 Jy
! Component: 950  -  total flux cleaned = -0.0011256 Jy
! Component: 1000  -  total flux cleaned = -0.00119894 Jy
! Component: 1050  -  total flux cleaned = -0.00119924 Jy
! Component: 1100  -  total flux cleaned = -0.00127163 Jy
! Component: 1150  -  total flux cleaned = -0.00137879 Jy
! Component: 1200  -  total flux cleaned = -0.00141434 Jy
! Component: 1250  -  total flux cleaned = -0.00148428 Jy
! Component: 1300  -  total flux cleaned = -0.00151914 Jy
! Component: 1350  -  total flux cleaned = -0.00162207 Jy
! Component: 1400  -  total flux cleaned = -0.00165584 Jy
! Component: 1450  -  total flux cleaned = -0.00162212 Jy
! Component: 1500  -  total flux cleaned = -0.00162215 Jy
! Component: 1550  -  total flux cleaned = -0.00168882 Jy
! Component: 1600  -  total flux cleaned = -0.00168883 Jy
! Component: 1650  -  total flux cleaned = -0.00175434 Jy
! Component: 1700  -  total flux cleaned = -0.00181913 Jy
! Component: 1750  -  total flux cleaned = -0.00185128 Jy
! Component: 1800  -  total flux cleaned = -0.00191496 Jy
! Component: 1850  -  total flux cleaned = -0.00191508 Jy
! Component: 1900  -  total flux cleaned = -0.00200927 Jy
! Component: 1950  -  total flux cleaned = -0.00200921 Jy
! Component: 2000  -  total flux cleaned = -0.00204024 Jy
! Total flux subtracted in 2048 components = -0.00213275 Jy
! Clean residual min=-0.002004 max=0.001652 Jy/beam
! Clean residual mean=0.000016 rms=0.000581 Jy/beam
! Combined flux in latest and established models = 1.67166 Jy
keep
! Adding 144 model components to the UV plane model.
! The established model now contains 316 components and 1.67166 Jy
![Exited script file: muppet]
wmap "J2246-1206_S_1999_05_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.478 x 5.655 at 2.18 degrees (North through East)
! Clean map  min=-0.0032888  max=1.0768 Jy/beam
! Writing clean map to FITS file: J2246-1206_S_1999_05_10_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.07675 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00058136 
device "J2246-1206_S_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J2246-1206_S_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.161976 0.161976 0.323951 0.647902 1.2958 2.59161 5.18322 10.3664 20.7329 41.4657 82.9315
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0017 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.076 
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.478 x 5.655 at 2.18 degrees (North through East)
! Clean map  min=-0.0032888  max=1.0768 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2246-1206_S_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J2246-1206_S_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2246-1206_S_1999_05_10_pus_uvs.log closed on Mon Jan 21 17:51:53 2008