! Started logfile: J2148+0657_S_2003_09_17_pus_uvs.log on Wed May 23 17:58:37 2007
obs J2148+0657_S_2003_09_17_pus_uva.fits
! Reading UV FITS file: J2148+0657_S_2003_09_17_pus_uva.fits
! AN table 1: 121 integrations on 120 of 120 possible baselines.
! AN table 2: 99 integrations on 120 of 120 possible baselines.
! AN table 3: 31 integrations on 120 of 120 possible baselines.
! AN table 4: 98 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.12808 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2148+0657
! 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 1740 lines of history.
! 
! Reading 21456 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 = 1024 
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 = 1024x1024 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 1507 telescope corrections were flagged in sub-array 1.
!  A total of 1305 telescope corrections were flagged in sub-array 2.
!  A total of 347 telescope corrections were flagged in sub-array 3.
!  A total of 906 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1507 telescope corrections were flagged in sub-array 1.
!  A total of 1305 telescope corrections were flagged in sub-array 2.
!  A total of 347 telescope corrections were flagged in sub-array 3.
!  A total of 906 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1507 telescope corrections were flagged in sub-array 1.
!  A total of 1305 telescope corrections were flagged in sub-array 2.
!  A total of 347 telescope corrections were flagged in sub-array 3.
!  A total of 906 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1507 telescope corrections were flagged in sub-array 1.
!  A total of 1305 telescope corrections were flagged in sub-array 2.
!  A total of 347 telescope corrections were flagged in sub-array 3.
!  A total of 906 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.923130Jy  sigma=0.012730
! Fit after  self-cal, rms=1.920324Jy  sigma=0.012709
! 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.993 mas, bmaj=5.272 mas, bpa=-4.856 degrees
! Estimated noise=1366.12 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 = 1.99979 Jy
! Component: 100  -  total flux cleaned = 2.54427 Jy
! Total flux subtracted in 100 components = 2.54427 Jy
! Clean residual min=-0.058687 max=0.254701 Jy/beam
! Clean residual mean=0.000196 rms=0.018673 Jy/beam
! Combined flux in latest and established models = 2.54427 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 2.54427 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.696464Jy  sigma=0.004233
! Fit after  self-cal, rms=0.695463Jy  sigma=0.004231
! Inverting map 
! Added new window around map position (4, -4.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.287861 Jy
! Component: 100  -  total flux cleaned = 0.461557 Jy
! Total flux subtracted in 100 components = 0.461557 Jy
! Clean residual min=-0.035203 max=0.095224 Jy/beam
! Clean residual mean=0.000216 rms=0.009917 Jy/beam
! Combined flux in latest and established models = 3.00583 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 21 components and 3.00583 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.487094Jy  sigma=0.002497
! Fit after  self-cal, rms=0.477922Jy  sigma=0.002439
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.127224 Jy
! Component: 100  -  total flux cleaned = 0.211367 Jy
! Total flux subtracted in 100 components = 0.211367 Jy
! Clean residual min=-0.022674 max=0.047004 Jy/beam
! Clean residual mean=0.000224 rms=0.006144 Jy/beam
! Combined flux in latest and established models = 3.21719 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 42 components and 3.21719 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.416525Jy  sigma=0.001832
! Fit after  self-cal, rms=0.413574Jy  sigma=0.001812
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0657916 Jy
! Component: 100  -  total flux cleaned = 0.111114 Jy
! Total flux subtracted in 100 components = 0.111114 Jy
! Clean residual min=-0.017134 max=0.039398 Jy/beam
! Clean residual mean=0.000228 rms=0.004645 Jy/beam
! Combined flux in latest and established models = 3.32831 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 47 components and 3.32831 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.393216Jy  sigma=0.001588
! Fit after  self-cal, rms=0.392412Jy  sigma=0.001583
! Inverting map 
! Added new window around map position (25, -70).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.043292 Jy
! Component: 100  -  total flux cleaned = 0.0753102 Jy
! Total flux subtracted in 100 components = 0.0753102 Jy
! Clean residual min=-0.015633 max=0.025288 Jy/beam
! Clean residual mean=0.000201 rms=0.003847 Jy/beam
! Combined flux in latest and established models = 3.40362 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 67 components and 3.40362 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.382276Jy  sigma=0.001468
! Fit after  self-cal, rms=0.381770Jy  sigma=0.001465
! Inverting map 
! Added new window around map position (22, -65).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0296826 Jy
! Component: 100  -  total flux cleaned = 0.0535366 Jy
! Total flux subtracted in 100 components = 0.0535366 Jy
! Clean residual min=-0.013776 max=0.024082 Jy/beam
! Clean residual mean=0.000185 rms=0.003411 Jy/beam
! Combined flux in latest and established models = 3.45715 Jy
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 89 components and 3.45715 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.376015Jy  sigma=0.001397
! Fit after  self-cal, rms=0.375810Jy  sigma=0.001396
! Inverting map 
! Added new window around map position (28, -60.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0244771 Jy
! Component: 100  -  total flux cleaned = 0.0441013 Jy
! Total flux subtracted in 100 components = 0.0441013 Jy
! Clean residual min=-0.012439 max=0.017929 Jy/beam
! Clean residual mean=0.000166 rms=0.003084 Jy/beam
! Combined flux in latest and established models = 3.50126 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 109 components and 3.50126 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.371617Jy  sigma=0.001345
! Fit after  self-cal, rms=0.371497Jy  sigma=0.001344
! 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.459 mas, bmaj=6.504 mas, bpa=-8.799 degrees
! Estimated noise=813.109 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 (25.5, -56.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0445594 Jy
! Component: 100  -  total flux cleaned = 0.0788381 Jy
! Component: 150  -  total flux cleaned = 0.106317 Jy
! Component: 200  -  total flux cleaned = 0.128652 Jy
! Total flux subtracted in 200 components = 0.128652 Jy
! Clean residual min=-0.010303 max=0.019594 Jy/beam
! Clean residual mean=0.002571 rms=0.003647 Jy/beam
! Combined flux in latest and established models = 3.62991 Jy
! Performing phase self-cal
! Adding 91 model components to the UV plane model.
! The established model now contains 177 components and 3.62991 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.363516Jy  sigma=0.001244
! Fit after  self-cal, rms=0.363174Jy  sigma=0.001240
! Inverting map 
! Added new window around map position (32.5, -50.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.022903 Jy
! Component: 100  -  total flux cleaned = 0.0403878 Jy
! Component: 150  -  total flux cleaned = 0.0549332 Jy
! Component: 200  -  total flux cleaned = 0.0672029 Jy
! Total flux subtracted in 200 components = 0.0672029 Jy
! Clean residual min=-0.007349 max=0.013207 Jy/beam
! Clean residual mean=0.002053 rms=0.002683 Jy/beam
! Combined flux in latest and established models = 3.69711 Jy
! Performing phase self-cal
! Adding 78 model components to the UV plane model.
! The established model now contains 239 components and 3.69711 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.360712Jy  sigma=0.001213
! Fit after  self-cal, rms=0.360557Jy  sigma=0.001211
! 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:
!   FD        1.00     GC        1.00*    HN        1.00     KP        1.00     
!   LA        0.99     MK        1.00*    NL        1.00     NY        1.00     
!   ON        1.01     OV        1.00     PT        0.99     SC        1.00     
!   TS        1.01     KK        1.00*    WZ        1.00     WF        0.99     
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.00*    GC        1.00*    HN        1.00     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        1.00     
!   ON        1.00     OV        1.00*    PT        1.00*    SC        1.01     
!   TS        1.01     KK        1.00*    WZ        1.00     WF        0.97     
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.00*    GC        1.00     HN        1.00*    KP        1.00     
!   LA        1.00*    MK        1.00     NL        1.00*    NY        1.02     
!   ON        1.00     OV        1.00     PT        1.00     SC        1.00*    
!   TS        1.01     KK        1.00     WZ        0.99     WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00     GC        1.00     HN        1.00     KP        1.00     
!   LA        1.00     MK        1.00     NL        1.00     NY        1.01     
!   ON        1.00     OV        0.99     PT        0.99     SC        1.02     
!   TS        1.01     KK        1.00     WZ        0.99     WF        1.00     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00     GC        1.00*    HN        1.00     KP        1.00     
!   LA        0.99     MK        1.00*    NL        1.00     NY        1.01     
!   ON        1.01     OV        1.00     PT        0.99     SC        1.01     
!   TS        1.01     KK        1.00*    WZ        1.00     WF        0.99     
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.00*    GC        1.00*    HN        1.00     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        1.00     
!   ON        1.00     OV        1.00*    PT        1.00*    SC        1.01     
!   TS        1.01     KK        1.00*    WZ        1.00     WF        0.98     
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.00*    GC        1.00     HN        1.00*    KP        1.00     
!   LA        1.00*    MK        1.00     NL        1.00*    NY        1.01     
!   ON        0.99     OV        1.00     PT        1.00     SC        1.00*    
!   TS        1.01     KK        1.00     WZ        1.00     WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00     GC        1.00     HN        1.00     KP        1.00     
!   LA        1.00     MK        1.00     NL        1.00     NY        1.00     
!   ON        1.01     OV        0.99     PT        0.99     SC        1.02     
!   TS        1.01     KK        1.00     WZ        0.99     WF        1.00     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00     GC        1.00*    HN        1.00     KP        1.00     
!   LA        1.00     MK        1.00*    NL        1.00     NY        1.00     
!   ON        1.00     OV        1.00     PT        0.99     SC        1.01     
!   TS        1.02     KK        1.00*    WZ        1.00     WF        0.99     
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.00*    GC        1.00*    HN        0.99     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        1.01     
!   ON        1.00     OV        1.00*    PT        1.00*    SC        1.00     
!   TS        1.02     KK        1.00*    WZ        1.00     WF        0.98     
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.00*    GC        1.00     HN        1.00*    KP        1.00     
!   LA        1.00*    MK        1.00     NL        1.00*    NY        1.00     
!   ON        1.00     OV        1.00     PT        1.00     SC        1.00*    
!   TS        1.01     KK        1.00     WZ        1.00     WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00     GC        1.00     HN        1.00     KP        1.00     
!   LA        1.00     MK        1.00     NL        1.00     NY        0.99     
!   ON        1.01     OV        1.00     PT        0.99     SC        1.03     
!   TS        1.01     KK        1.00     WZ        0.99     WF        1.00     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00     GC        1.00*    HN        1.00     KP        1.00     
!   LA        0.99     MK        1.00*    NL        1.00     NY        1.00     
!   ON        1.00     OV        1.00     PT        0.99     SC        1.01     
!   TS        1.02     KK        1.00*    WZ        1.00     WF        0.99     
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.00*    GC        1.00*    HN        0.99     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        1.01     
!   ON        1.00     OV        1.00*    PT        1.00*    SC        1.00     
!   TS        1.02     KK        1.00*    WZ        1.00     WF        0.98     
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.00*    GC        1.00     HN        1.00*    KP        1.00     
!   LA        1.00*    MK        1.00     NL        1.00*    NY        1.01     
!   ON        1.00     OV        1.00     PT        1.00     SC        1.00*    
!   TS        1.01     KK        1.00     WZ        1.00     WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00     GC        1.00     HN        1.00     KP        1.00     
!   LA        0.99     MK        1.00     NL        1.00     NY        0.99     
!   ON        1.01     OV        1.00     PT        0.99     SC        1.03     
!   TS        1.01     KK        1.00     WZ        0.98     WF        1.00     
! 
! 
! Fit before self-cal, rms=0.360557Jy  sigma=0.001211
! Fit after  self-cal, rms=0.359342Jy  sigma=0.001204
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.464 mas, bmaj=6.523 mas, bpa=-8.823 degrees
! Estimated noise=812.019 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.0106464 Jy
! Component: 100  -  total flux cleaned = 0.0182084 Jy
! Component: 150  -  total flux cleaned = 0.0231465 Jy
! Component: 200  -  total flux cleaned = 0.0273946 Jy
! Total flux subtracted in 200 components = 0.0273946 Jy
! Clean residual min=-0.006455 max=0.011577 Jy/beam
! Clean residual mean=0.001282 rms=0.002091 Jy/beam
! Combined flux in latest and established models = 3.7245 Jy
! Performing phase self-cal
! Adding 57 model components to the UV plane model.
! The established model now contains 275 components and 3.72451 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.358732Jy  sigma=0.001198
! Fit after  self-cal, rms=0.358681Jy  sigma=0.001198
! Inverting map 
! Added new window around map position (15.5, -46).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.011484 Jy
! Component: 100  -  total flux cleaned = 0.0182557 Jy
! Component: 150  -  total flux cleaned = 0.0230123 Jy
! Component: 200  -  total flux cleaned = 0.0271737 Jy
! Total flux subtracted in 200 components = 0.0271737 Jy
! Clean residual min=-0.006053 max=0.009651 Jy/beam
! Clean residual mean=0.001060 rms=0.001861 Jy/beam
! Combined flux in latest and established models = 3.75168 Jy
! Performing phase self-cal
! Adding 50 model components to the UV plane model.
! The established model now contains 310 components and 3.75168 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.358044Jy  sigma=0.001193
! Fit after  self-cal, rms=0.358019Jy  sigma=0.001192
! Inverting map 
! Added new window around map position (-17.5, 24).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0088666 Jy
! Component: 100  -  total flux cleaned = 0.0142649 Jy
! Component: 150  -  total flux cleaned = 0.0180761 Jy
! Component: 200  -  total flux cleaned = 0.0216102 Jy
! Total flux subtracted in 200 components = 0.0216102 Jy
! Clean residual min=-0.005829 max=0.008043 Jy/beam
! Clean residual mean=0.000879 rms=0.001673 Jy/beam
! Combined flux in latest and established models = 3.77329 Jy
! Performing phase self-cal
! Adding 42 model components to the UV plane model.
! The established model now contains 341 components and 3.77329 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.357664Jy  sigma=0.001189
! Fit after  self-cal, rms=0.357658Jy  sigma=0.001189
! 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.357658Jy  sigma=0.001189
! Fit after  self-cal, rms=0.357670Jy  sigma=0.001188
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.465 mas, bmaj=6.526 mas, bpa=-8.838 degrees
! Estimated noise=812.146 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00432936 Jy
! Component: 100  -  total flux cleaned = 0.00784069 Jy
! Component: 150  -  total flux cleaned = 0.0109729 Jy
! Component: 200  -  total flux cleaned = 0.0139715 Jy
! Total flux subtracted in 200 components = 0.0139715 Jy
! Clean residual min=-0.005400 max=0.007633 Jy/beam
! Clean residual mean=0.000892 rms=0.001586 Jy/beam
! Combined flux in latest and established models = 3.78726 Jy
selfcal
! Performing phase self-cal
! Adding 52 model components to the UV plane model.
! The established model now contains 367 components and 3.78726 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.357451Jy  sigma=0.001186
! Fit after  self-cal, rms=0.357443Jy  sigma=0.001186
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 (8.5, -18).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00754092 Jy
! Component: 100  -  total flux cleaned = 0.0113689 Jy
! Component: 150  -  total flux cleaned = 0.014163 Jy
! Component: 200  -  total flux cleaned = 0.0164056 Jy
! Total flux subtracted in 200 components = 0.0164056 Jy
! Clean residual min=-0.005245 max=0.006902 Jy/beam
! Clean residual mean=0.000756 rms=0.001481 Jy/beam
! Combined flux in latest and established models = 3.80367 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 391 components and 3.80367 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.357156Jy  sigma=0.001184
! Fit after  self-cal, rms=0.357129Jy  sigma=0.001184
! Inverting map 
! Added new window around map position (-46, 17).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0063049 Jy
! Component: 100  -  total flux cleaned = 0.0092863 Jy
! Component: 150  -  total flux cleaned = 0.0117423 Jy
! Component: 200  -  total flux cleaned = 0.0138254 Jy
! Total flux subtracted in 200 components = 0.0138254 Jy
! Clean residual min=-0.005114 max=0.006666 Jy/beam
! Clean residual mean=0.000652 rms=0.001402 Jy/beam
! Combined flux in latest and established models = 3.81749 Jy
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 413 components and 3.81749 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356930Jy  sigma=0.001182
! Fit after  self-cal, rms=0.356931Jy  sigma=0.001182
! Inverting map 
! Added new window around map position (18.5, -71.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00604273 Jy
! Component: 100  -  total flux cleaned = 0.00910929 Jy
! Component: 150  -  total flux cleaned = 0.011289 Jy
! Component: 200  -  total flux cleaned = 0.0129432 Jy
! Total flux subtracted in 200 components = 0.0129432 Jy
! Clean residual min=-0.004982 max=0.006582 Jy/beam
! Clean residual mean=0.000555 rms=0.001353 Jy/beam
! Combined flux in latest and established models = 3.83043 Jy
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 436 components and 3.83043 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356755Jy  sigma=0.001181
! Fit after  self-cal, rms=0.356747Jy  sigma=0.001181
! Inverting map 
! Added new window around map position (36, -4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00599151 Jy
! Component: 100  -  total flux cleaned = 0.00943677 Jy
! Component: 150  -  total flux cleaned = 0.0120707 Jy
! Component: 200  -  total flux cleaned = 0.0143685 Jy
! Total flux subtracted in 200 components = 0.0143685 Jy
! Clean residual min=-0.004739 max=0.005424 Jy/beam
! Clean residual mean=0.000444 rms=0.001276 Jy/beam
! Combined flux in latest and established models = 3.8448 Jy
! Performing phase self-cal
! Adding 53 model components to the UV plane model.
! The established model now contains 466 components and 3.8448 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356575Jy  sigma=0.001179
! Fit after  self-cal, rms=0.356576Jy  sigma=0.001179
! Inverting map 
! Added new window around map position (16, -0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00531838 Jy
! Component: 100  -  total flux cleaned = 0.00706681 Jy
! Component: 150  -  total flux cleaned = 0.00840599 Jy
! Component: 200  -  total flux cleaned = 0.00937243 Jy
! Total flux subtracted in 200 components = 0.00937243 Jy
! Clean residual min=-0.005021 max=0.005276 Jy/beam
! Clean residual mean=0.000368 rms=0.001235 Jy/beam
! Combined flux in latest and established models = 3.85418 Jy
! Performing phase self-cal
! Adding 49 model components to the UV plane model.
! The established model now contains 492 components and 3.85417 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356414Jy  sigma=0.001179
! Fit after  self-cal, rms=0.356405Jy  sigma=0.001179
! 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.356405Jy  sigma=0.001179
! Fit after  self-cal, rms=0.357226Jy  sigma=0.001178
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.465 mas, bmaj=6.528 mas, bpa=-8.854 degrees
! Estimated noise=812.094 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00272175 Jy
! Component: 100  -  total flux cleaned = 0.0050649 Jy
! Component: 150  -  total flux cleaned = 0.00697985 Jy
! Component: 200  -  total flux cleaned = 0.00876922 Jy
! Total flux subtracted in 200 components = 0.00876922 Jy
! Clean residual min=-0.004648 max=0.005078 Jy/beam
! Clean residual mean=0.000476 rms=0.001191 Jy/beam
! Combined flux in latest and established models = 3.86294 Jy
selfcal
! Performing phase self-cal
! Adding 46 model components to the UV plane model.
! The established model now contains 513 components and 3.86294 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.357103Jy  sigma=0.001177
! Fit after  self-cal, rms=0.357111Jy  sigma=0.001177
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 (-33.5, 44).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00453348 Jy
! Component: 100  -  total flux cleaned = 0.00542827 Jy
! Component: 150  -  total flux cleaned = 0.00635704 Jy
! Component: 200  -  total flux cleaned = 0.0075389 Jy
! Total flux subtracted in 200 components = 0.0075389 Jy
! Clean residual min=-0.005062 max=0.005152 Jy/beam
! Clean residual mean=0.000416 rms=0.001162 Jy/beam
! Combined flux in latest and established models = 3.87048 Jy
! Performing phase self-cal
! Adding 50 model components to the UV plane model.
! The established model now contains 539 components and 3.87048 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356959Jy  sigma=0.001176
! Fit after  self-cal, rms=0.356956Jy  sigma=0.001176
! Inverting map 
! Added new window around map position (64.5, 31.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00462838 Jy
! Component: 100  -  total flux cleaned = 0.00668418 Jy
! Component: 150  -  total flux cleaned = 0.00795381 Jy
! Component: 200  -  total flux cleaned = 0.00860326 Jy
! Total flux subtracted in 200 components = 0.00860326 Jy
! Clean residual min=-0.004898 max=0.004967 Jy/beam
! Clean residual mean=0.000347 rms=0.001130 Jy/beam
! Combined flux in latest and established models = 3.87909 Jy
! Performing phase self-cal
! Adding 48 model components to the UV plane model.
! The established model now contains 561 components and 3.87909 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356804Jy  sigma=0.001176
! Fit after  self-cal, rms=0.356791Jy  sigma=0.001176
! Inverting map 
! Added new window around map position (-74.5, 34.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00352042 Jy
! Component: 100  -  total flux cleaned = 0.00419708 Jy
! Component: 150  -  total flux cleaned = 0.00484206 Jy
! Component: 200  -  total flux cleaned = 0.00528028 Jy
! Total flux subtracted in 200 components = 0.00528028 Jy
! Clean residual min=-0.004751 max=0.004691 Jy/beam
! Clean residual mean=0.000311 rms=0.001104 Jy/beam
! Combined flux in latest and established models = 3.88437 Jy
! Performing phase self-cal
! Adding 50 model components to the UV plane model.
! The established model now contains 582 components and 3.88437 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356672Jy  sigma=0.001175
! Fit after  self-cal, rms=0.356669Jy  sigma=0.001175
! Inverting map 
! Added new window around map position (125, 97).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00439395 Jy
! Component: 100  -  total flux cleaned = 0.00596729 Jy
! Component: 150  -  total flux cleaned = 0.00688087 Jy
! Component: 200  -  total flux cleaned = 0.00722291 Jy
! Total flux subtracted in 200 components = 0.00722291 Jy
! Clean residual min=-0.004705 max=0.004428 Jy/beam
! Clean residual mean=0.000265 rms=0.001068 Jy/beam
! Combined flux in latest and established models = 3.89159 Jy
! Performing phase self-cal
! Adding 42 model components to the UV plane model.
! The established model now contains 600 components and 3.89159 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356552Jy  sigma=0.001174
! Fit after  self-cal, rms=0.356550Jy  sigma=0.001174
! 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.356550Jy  sigma=0.001174
! Fit after  self-cal, rms=0.356464Jy  sigma=0.001174
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.81 mas, bmaj=12.25 mas, bpa=-17 degrees
! Estimated noise=1074.17 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00468152 Jy
! Component: 100  -  total flux cleaned = 0.00841815 Jy
! Component: 150  -  total flux cleaned = 0.0115012 Jy
! Component: 200  -  total flux cleaned = 0.0137009 Jy
! Total flux subtracted in 200 components = 0.0137009 Jy
! Clean residual min=-0.004945 max=0.005457 Jy/beam
! Clean residual mean=0.000647 rms=0.001411 Jy/beam
! Combined flux in latest and established models = 3.90529 Jy
selfcal
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 632 components and 3.90529 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356364Jy  sigma=0.001174
! Fit after  self-cal, rms=0.356358Jy  sigma=0.001174
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.00200699 Jy
! Component: 100  -  total flux cleaned = 0.00352858 Jy
! Component: 150  -  total flux cleaned = 0.00448459 Jy
! Component: 200  -  total flux cleaned = 0.00521526 Jy
! Total flux subtracted in 200 components = 0.00521526 Jy
! Clean residual min=-0.005070 max=0.005237 Jy/beam
! Clean residual mean=0.000539 rms=0.001373 Jy/beam
! Combined flux in latest and established models = 3.91051 Jy
! Performing phase self-cal
! Adding 41 model components to the UV plane model.
! The established model now contains 648 components and 3.91051 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356300Jy  sigma=0.001174
! Fit after  self-cal, rms=0.356299Jy  sigma=0.001174
! 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.465 mas, bmaj=6.529 mas, bpa=-8.862 degrees
! Estimated noise=811.987 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.465 x 6.529 at -8.862 degrees (North through East)
! Clean map  min=-0.0042282  max=2.6656 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.356299Jy  sigma=0.001174
! Fit after  self-cal, rms=0.356270Jy  sigma=0.001174
! Inverting map and beam 
! Estimated beam: bmin=2.465 mas, bmaj=6.529 mas, bpa=-8.864 degrees
! Estimated noise=811.941 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000815929 Jy
! Component: 100  -  total flux cleaned = -0.000541147 Jy
! Component: 150  -  total flux cleaned = -0.000373344 Jy
! Component: 200  -  total flux cleaned = -0.000376323 Jy
! Total flux subtracted in 200 components = -0.000376323 Jy
! Clean residual min=-0.004473 max=0.004526 Jy/beam
! Clean residual mean=0.000273 rms=0.001018 Jy/beam
! Combined flux in latest and established models = 3.91013 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 660 components and 3.91013 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356218Jy  sigma=0.001173
! Fit after  self-cal, rms=0.356217Jy  sigma=0.001173
! Inverting map 
! Added new window around map position (-40, -66.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00415974 Jy
! Component: 100  -  total flux cleaned = 0.00477842 Jy
! Component: 150  -  total flux cleaned = 0.0053498 Jy
! Component: 200  -  total flux cleaned = 0.00589784 Jy
! Total flux subtracted in 200 components = 0.00589784 Jy
! Clean residual min=-0.004323 max=0.004012 Jy/beam
! Clean residual mean=0.000228 rms=0.000985 Jy/beam
! Combined flux in latest and established models = 3.91603 Jy
! Performing phase self-cal
! Adding 50 model components to the UV plane model.
! The established model now contains 679 components and 3.91603 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356128Jy  sigma=0.001173
! Fit after  self-cal, rms=0.356130Jy  sigma=0.001173
! 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.356130Jy  sigma=0.001173
! Fit after  self-cal, rms=0.356111Jy  sigma=0.001173
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.998 mas, bmaj=5.287 mas, bpa=-4.939 degrees
! Estimated noise=1369.32 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.00149 Jy
! Component: 100  -  total flux cleaned = 2.55436 Jy
! Component: 150  -  total flux cleaned = 2.85444 Jy
! Component: 200  -  total flux cleaned = 3.03724 Jy
! Total flux subtracted in 200 components = 3.03724 Jy
! Clean residual min=-0.024833 max=0.097070 Jy/beam
! Clean residual mean=0.000219 rms=0.008686 Jy/beam
! Combined flux in latest and established models = 3.03724 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 22 model components to the UV plane model.
! The established model now contains 22 components and 3.03724 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.465 mas, bmaj=6.53 mas, bpa=-8.865 degrees
! Estimated noise=811.938 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.195232 Jy
! Component: 100  -  total flux cleaned = 0.304735 Jy
! Component: 150  -  total flux cleaned = 0.382866 Jy
! Component: 200  -  total flux cleaned = 0.443609 Jy
! Total flux subtracted in 200 components = 0.443609 Jy
! Clean residual min=-0.013859 max=0.036327 Jy/beam
! Clean residual mean=0.003619 rms=0.006545 Jy/beam
! Combined flux in latest and established models = 3.48084 Jy
! Adding 71 model components to the UV plane model.
! The established model now contains 84 components and 3.48085 Jy
! Inverting map 
! Added new window around map position (6, -7).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0484281 Jy
! Component: 100  -  total flux cleaned = 0.0874007 Jy
! Component: 150  -  total flux cleaned = 0.11907 Jy
! Component: 200  -  total flux cleaned = 0.145146 Jy
! Total flux subtracted in 200 components = 0.145146 Jy
! Clean residual min=-0.008729 max=0.016421 Jy/beam
! Clean residual mean=0.002509 rms=0.003591 Jy/beam
! Combined flux in latest and established models = 3.62599 Jy
! Adding 93 model components to the UV plane model.
! The established model now contains 162 components and 3.62599 Jy
! Inverting map 
! Added new window around map position (18.5, -61).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0219523 Jy
! Component: 100  -  total flux cleaned = 0.0409069 Jy
! Component: 150  -  total flux cleaned = 0.0575444 Jy
! Component: 200  -  total flux cleaned = 0.0722288 Jy
! Total flux subtracted in 200 components = 0.0722288 Jy
! Clean residual min=-0.006490 max=0.010862 Jy/beam
! Clean residual mean=0.001948 rms=0.002489 Jy/beam
! Combined flux in latest and established models = 3.69822 Jy
! Adding 81 model components to the UV plane model.
! The established model now contains 227 components and 3.69822 Jy
! Inverting map 
! Added new window around map position (-41, 23).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0134445 Jy
! Component: 100  -  total flux cleaned = 0.0254292 Jy
! Component: 150  -  total flux cleaned = 0.0364112 Jy
! Component: 200  -  total flux cleaned = 0.046565 Jy
! Total flux subtracted in 200 components = 0.046565 Jy
! Clean residual min=-0.005341 max=0.008451 Jy/beam
! Clean residual mean=0.001586 rms=0.001960 Jy/beam
! Combined flux in latest and established models = 3.74479 Jy
! Adding 77 model components to the UV plane model.
! The established model now contains 281 components and 3.74479 Jy
! Inverting map 
! Added new window around map position (-11.5, -6.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0098212 Jy
! Component: 100  -  total flux cleaned = 0.0186504 Jy
! Component: 150  -  total flux cleaned = 0.0269537 Jy
! Component: 200  -  total flux cleaned = 0.0347718 Jy
! Total flux subtracted in 200 components = 0.0347718 Jy
! Clean residual min=-0.005147 max=0.006764 Jy/beam
! Clean residual mean=0.001316 rms=0.001659 Jy/beam
! Combined flux in latest and established models = 3.77956 Jy
! Adding 83 model components to the UV plane model.
! The established model now contains 330 components and 3.77956 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.81 mas, bmaj=12.25 mas, bpa=-17 degrees
! Estimated noise=1073.97 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0152837 Jy
! Component: 100  -  total flux cleaned = 0.0280052 Jy
! Component: 150  -  total flux cleaned = 0.0390599 Jy
! Component: 200  -  total flux cleaned = 0.0489084 Jy
! Total flux subtracted in 200 components = 0.0489084 Jy
! Clean residual min=-0.005556 max=0.008700 Jy/beam
! Clean residual mean=0.002334 rms=0.002185 Jy/beam
! Combined flux in latest and established models = 3.82847 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.00890404 Jy
! Component: 100  -  total flux cleaned = 0.017033 Jy
! Component: 150  -  total flux cleaned = 0.0244885 Jy
! Component: 200  -  total flux cleaned = 0.0313371 Jy
! Total flux subtracted in 200 components = 0.0313371 Jy
! Clean residual min=-0.005087 max=0.006626 Jy/beam
! Clean residual mean=0.001736 rms=0.001727 Jy/beam
! Combined flux in latest and established models = 3.8598 Jy
! Adding 145 model components to the UV plane model.
! The established model now contains 460 components and 3.8598 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.465 mas, bmaj=6.53 mas, bpa=-8.865 degrees
! Estimated noise=811.938 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00566993 Jy
! Component: 100  -  total flux cleaned = 0.0106178 Jy
! Component: 150  -  total flux cleaned = 0.0150721 Jy
! Component: 200  -  total flux cleaned = 0.0183508 Jy
! Total flux subtracted in 200 components = 0.0183508 Jy
! Clean residual min=-0.004269 max=0.004724 Jy/beam
! Clean residual mean=0.000545 rms=0.001128 Jy/beam
! Combined flux in latest and established models = 3.87815 Jy
selfcal
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 487 components and 3.87815 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356614Jy  sigma=0.001176
! Fit after  self-cal, rms=0.356589Jy  sigma=0.001175
wmodel J2148+0657_S_2003_09_17_pus_map.mod
! Writing 487 model components to file: J2148+0657_S_2003_09_17_pus_map.mod
wobs J2148+0657_S_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J2148+0657_S_2003_09_17_pus_uvs.fits
wwins J2148+0657_S_2003_09_17_pus_map.win
! wwins: Wrote 23 windows to J2148+0657_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=4096  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00214949 Jy
! Component: 100  -  total flux cleaned = 0.00391537 Jy
! Component: 150  -  total flux cleaned = 0.00531167 Jy
! Component: 200  -  total flux cleaned = 0.00666979 Jy
! Component: 250  -  total flux cleaned = 0.00807057 Jy
! Component: 300  -  total flux cleaned = 0.00944313 Jy
! Component: 350  -  total flux cleaned = 0.0107902 Jy
! Component: 400  -  total flux cleaned = 0.0121823 Jy
! Component: 450  -  total flux cleaned = 0.0134136 Jy
! Component: 500  -  total flux cleaned = 0.0146229 Jy
! Component: 550  -  total flux cleaned = 0.015812 Jy
! Component: 600  -  total flux cleaned = 0.0167887 Jy
! Component: 650  -  total flux cleaned = 0.0178158 Jy
! Component: 700  -  total flux cleaned = 0.0188291 Jy
! Component: 750  -  total flux cleaned = 0.0198295 Jy
! Component: 800  -  total flux cleaned = 0.0206943 Jy
! Component: 850  -  total flux cleaned = 0.0214881 Jy
! Component: 900  -  total flux cleaned = 0.0222735 Jy
! Component: 950  -  total flux cleaned = 0.0230511 Jy
! Component: 1000  -  total flux cleaned = 0.0238207 Jy
! Component: 1050  -  total flux cleaned = 0.0244657 Jy
! Component: 1100  -  total flux cleaned = 0.0252206 Jy
! Component: 1150  -  total flux cleaned = 0.0259685 Jy
! Component: 1200  -  total flux cleaned = 0.0266522 Jy
! Component: 1250  -  total flux cleaned = 0.0272739 Jy
! Component: 1300  -  total flux cleaned = 0.0279467 Jy
! Component: 1350  -  total flux cleaned = 0.0286689 Jy
! Component: 1400  -  total flux cleaned = 0.0293853 Jy
! Component: 1450  -  total flux cleaned = 0.0299862 Jy
! Component: 1500  -  total flux cleaned = 0.0304199 Jy
! Component: 1550  -  total flux cleaned = 0.0310119 Jy
! Component: 1600  -  total flux cleaned = 0.0315464 Jy
! Component: 1650  -  total flux cleaned = 0.0320233 Jy
! Component: 1700  -  total flux cleaned = 0.0324449 Jy
! Component: 1750  -  total flux cleaned = 0.0330203 Jy
! Component: 1800  -  total flux cleaned = 0.0334357 Jy
! Component: 1850  -  total flux cleaned = 0.033848 Jy
! Component: 1900  -  total flux cleaned = 0.0342065 Jy
! Component: 1950  -  total flux cleaned = 0.0345631 Jy
! Component: 2000  -  total flux cleaned = 0.0350185 Jy
! Component: 2050  -  total flux cleaned = 0.03532 Jy
! Component: 2100  -  total flux cleaned = 0.0358193 Jy
! Component: 2150  -  total flux cleaned = 0.0359683 Jy
! Component: 2200  -  total flux cleaned = 0.0364613 Jy
! Component: 2250  -  total flux cleaned = 0.0367062 Jy
! Component: 2300  -  total flux cleaned = 0.0369984 Jy
! Component: 2350  -  total flux cleaned = 0.0373376 Jy
! Component: 2400  -  total flux cleaned = 0.0376265 Jy
! Component: 2450  -  total flux cleaned = 0.0379136 Jy
! Component: 2500  -  total flux cleaned = 0.0382947 Jy
! Component: 2550  -  total flux cleaned = 0.0385316 Jy
! Component: 2600  -  total flux cleaned = 0.0388143 Jy
! Component: 2650  -  total flux cleaned = 0.0390954 Jy
! Component: 2700  -  total flux cleaned = 0.0393285 Jy
! Component: 2750  -  total flux cleaned = 0.0396999 Jy
! Component: 2800  -  total flux cleaned = 0.0398845 Jy
! Component: 2850  -  total flux cleaned = 0.0401143 Jy
! Component: 2900  -  total flux cleaned = 0.0404797 Jy
! Component: 2950  -  total flux cleaned = 0.0406614 Jy
! Component: 3000  -  total flux cleaned = 0.0409328 Jy
! Component: 3050  -  total flux cleaned = 0.0412476 Jy
! Component: 3100  -  total flux cleaned = 0.0416059 Jy
! Component: 3150  -  total flux cleaned = 0.0417394 Jy
! Component: 3200  -  total flux cleaned = 0.0419612 Jy
! Component: 3250  -  total flux cleaned = 0.0420495 Jy
! Component: 3300  -  total flux cleaned = 0.0423568 Jy
! Component: 3350  -  total flux cleaned = 0.0425752 Jy
! Component: 3400  -  total flux cleaned = 0.0427925 Jy
! Component: 3450  -  total flux cleaned = 0.042879 Jy
! Component: 3500  -  total flux cleaned = 0.0430945 Jy
! Component: 3550  -  total flux cleaned = 0.0433092 Jy
! Component: 3600  -  total flux cleaned = 0.0434374 Jy
! Component: 3650  -  total flux cleaned = 0.0435651 Jy
! Component: 3700  -  total flux cleaned = 0.0439038 Jy
! Component: 3750  -  total flux cleaned = 0.0439458 Jy
! Component: 3800  -  total flux cleaned = 0.0440717 Jy
! Component: 3850  -  total flux cleaned = 0.0442809 Jy
! Component: 3900  -  total flux cleaned = 0.0445305 Jy
! Component: 3950  -  total flux cleaned = 0.0446548 Jy
! Component: 4000  -  total flux cleaned = 0.0448195 Jy
! Component: 4050  -  total flux cleaned = 0.0450249 Jy
! Total flux subtracted in 4096 components = 0.0451067 Jy
! Clean residual min=-0.002308 max=0.002313 Jy/beam
! Clean residual mean=0.000202 rms=0.000734 Jy/beam
! Combined flux in latest and established models = 3.92326 Jy
keep
! Adding 328 model components to the UV plane model.
! The established model now contains 814 components and 3.92326 Jy
wmap "J2148+0657_S_2003_09_17_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.465 x 6.53 at -8.865 degrees (North through East)
! Clean map  min=-0.0040733  max=2.6646 Jy/beam
! Writing clean map to FITS file: J2148+0657_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 2.66458 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000732434 
device "J2148+0657_S_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J2148+0657_S_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.0824633 0.0824633 0.164927 0.329853 0.659706 1.31941 2.63883 5.27765 10.5553 21.1106 42.2212 84.4424
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0021 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.664 
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.465 x 6.53 at -8.865 degrees (North through East)
! Clean map  min=-0.0040733  max=2.6646 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2148+0657_S_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J2148+0657_S_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2148+0657_S_2003_09_17_pus_uvs.log closed on Wed May 23 18:04:43 2007