! Started logfile: J1800+7828_X_2001_10_29_pus_uvs.log on Mon Feb 25 18:03:20 2008
obs J1800+7828_X_2001_10_29_pus_uva.fits
! Reading UV FITS file: J1800+7828_X_2001_10_29_pus_uva.fits
! AN table 1: 545 integrations on 153 of 153 possible baselines.
! AN table 2: 61 integrations on 153 of 153 possible baselines.
! AN table 3: 180 integrations on 153 of 153 possible baselines.
! AN table 4: 64 integrations on 153 of 153 possible baselines.
! AN table 5: 86 integrations on 153 of 153 possible baselines.
! AN table 6: 15 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.216442 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1800+7828
! 
! 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  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1979 lines of history.
! 
! Reading 125972 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 = 256 
print "field_cell =",field_cell
! field_cell = 0.2 
print "taper_size =",taper_size
! taper_size = 70 
![@muppet J1800+7828_X_2001_10_29_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 = 256x256 pixels with 0.200x0.200 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 7044 telescope corrections were flagged in sub-array 1.
!  A total of 397 telescope corrections were flagged in sub-array 2.
!  A total of 1812 telescope corrections were flagged in sub-array 3.
!  A total of 496 telescope corrections were flagged in sub-array 4.
!  A total of 880 telescope corrections were flagged in sub-array 5.
!  A total of 234 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 2.
!  A total of 7044 telescope corrections were flagged in sub-array 1.
!  A total of 397 telescope corrections were flagged in sub-array 2.
!  A total of 1812 telescope corrections were flagged in sub-array 3.
!  A total of 496 telescope corrections were flagged in sub-array 4.
!  A total of 880 telescope corrections were flagged in sub-array 5.
!  A total of 234 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 3.
!  A total of 7044 telescope corrections were flagged in sub-array 1.
!  A total of 397 telescope corrections were flagged in sub-array 2.
!  A total of 1812 telescope corrections were flagged in sub-array 3.
!  A total of 496 telescope corrections were flagged in sub-array 4.
!  A total of 880 telescope corrections were flagged in sub-array 5.
!  A total of 234 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 4.
!  A total of 7044 telescope corrections were flagged in sub-array 1.
!  A total of 397 telescope corrections were flagged in sub-array 2.
!  A total of 1812 telescope corrections were flagged in sub-array 3.
!  A total of 496 telescope corrections were flagged in sub-array 4.
!  A total of 880 telescope corrections were flagged in sub-array 5.
!  A total of 234 telescope corrections were flagged in sub-array 6.
! 
! Fit before self-cal, rms=0.610374Jy  sigma=0.005785
! Fit after  self-cal, rms=0.593226Jy  sigma=0.005599
! 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 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
! Estimated beam: bmin=0.537 mas, bmaj=0.543 mas, bpa=15.06 degrees
! Estimated noise=550.982 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.973313 Jy
! Component: 100  -  total flux cleaned = 1.2346 Jy
! Total flux subtracted in 100 components = 1.2346 Jy
! Clean residual min=-0.026075 max=0.147435 Jy/beam
! Clean residual mean=0.000841 rms=0.009127 Jy/beam
! Combined flux in latest and established models = 1.2346 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 1.2346 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.450701Jy  sigma=0.004184
! Fit after  self-cal, rms=0.449932Jy  sigma=0.004181
! Inverting map 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
! Added new window around map position (-1.4, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.155472 Jy
! Component: 100  -  total flux cleaned = 0.257901 Jy
! Total flux subtracted in 100 components = 0.257901 Jy
! Clean residual min=-0.020292 max=0.068813 Jy/beam
! Clean residual mean=0.000572 rms=0.005951 Jy/beam
! Combined flux in latest and established models = 1.4925 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 9 components and 1.4925 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.326093Jy  sigma=0.002885
! Fit after  self-cal, rms=0.318689Jy  sigma=0.002837
! Inverting map 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
! Added new window around map position (-0.8, 0.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0875603 Jy
! Component: 100  -  total flux cleaned = 0.148169 Jy
! Total flux subtracted in 100 components = 0.148169 Jy
! Clean residual min=-0.012521 max=0.036014 Jy/beam
! Clean residual mean=0.000419 rms=0.003959 Jy/beam
! Combined flux in latest and established models = 1.64067 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 14 components and 1.64067 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.258331Jy  sigma=0.002165
! Fit after  self-cal, rms=0.253909Jy  sigma=0.002136
! Inverting map 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0522978 Jy
! Component: 100  -  total flux cleaned = 0.0906649 Jy
! Total flux subtracted in 100 components = 0.0906649 Jy
! Clean residual min=-0.008598 max=0.022548 Jy/beam
! Clean residual mean=0.000324 rms=0.002808 Jy/beam
! Combined flux in latest and established models = 1.73133 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 20 components and 1.73133 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224366Jy  sigma=0.001785
! Fit after  self-cal, rms=0.222324Jy  sigma=0.001772
! Inverting map 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0335694 Jy
! Component: 100  -  total flux cleaned = 0.0598904 Jy
! Total flux subtracted in 100 components = 0.0598904 Jy
! Clean residual min=-0.006697 max=0.017024 Jy/beam
! Clean residual mean=0.000262 rms=0.002150 Jy/beam
! Combined flux in latest and established models = 1.79122 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 28 components and 1.79122 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206747Jy  sigma=0.001578
! Fit after  self-cal, rms=0.205713Jy  sigma=0.001572
! Inverting map 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0236133 Jy
! Component: 100  -  total flux cleaned = 0.0426244 Jy
! Total flux subtracted in 100 components = 0.0426244 Jy
! Clean residual min=-0.005812 max=0.012716 Jy/beam
! Clean residual mean=0.000219 rms=0.001749 Jy/beam
! Combined flux in latest and established models = 1.83385 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 35 components and 1.83385 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.196747Jy  sigma=0.001456
! Fit after  self-cal, rms=0.196151Jy  sigma=0.001453
! Inverting map 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0174009 Jy
! Component: 100  -  total flux cleaned = 0.0316053 Jy
! Total flux subtracted in 100 components = 0.0316053 Jy
! Clean residual min=-0.004918 max=0.009927 Jy/beam
! Clean residual mean=0.000186 rms=0.001495 Jy/beam
! Combined flux in latest and established models = 1.86545 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 39 components and 1.86545 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.190648Jy  sigma=0.001381
! Fit after  self-cal, rms=0.190276Jy  sigma=0.001379
! Inverting map 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
! Added new window around map position (-2, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0134903 Jy
! Component: 100  -  total flux cleaned = 0.0245118 Jy
! Total flux subtracted in 100 components = 0.0245118 Jy
! Clean residual min=-0.004512 max=0.008163 Jy/beam
! Clean residual mean=0.000162 rms=0.001322 Jy/beam
! Combined flux in latest and established models = 1.88996 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 44 components and 1.88996 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.186761Jy  sigma=0.001333
! Fit after  self-cal, rms=0.186483Jy  sigma=0.001331
! Inverting map 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0104561 Jy
! Component: 100  -  total flux cleaned = 0.0191263 Jy
! Total flux subtracted in 100 components = 0.0191263 Jy
! Clean residual min=-0.004290 max=0.006775 Jy/beam
! Clean residual mean=0.000143 rms=0.001197 Jy/beam
! Combined flux in latest and established models = 1.90909 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 46 components and 1.90909 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.184173Jy  sigma=0.001300
! Fit after  self-cal, rms=0.183984Jy  sigma=0.001300
! Inverting map 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
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 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
! Estimated beam: bmin=0.7124 mas, bmaj=0.7274 mas, bpa=72.95 degrees
! Estimated noise=235.18 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.0279739 Jy
! Component: 100  -  total flux cleaned = 0.0460061 Jy
! Component: 150  -  total flux cleaned = 0.058592 Jy
! Component: 200  -  total flux cleaned = 0.0674951 Jy
! Total flux subtracted in 200 components = 0.0674951 Jy
! Clean residual min=-0.004979 max=0.012474 Jy/beam
! Clean residual mean=0.001837 rms=0.002153 Jy/beam
! Combined flux in latest and established models = 1.97659 Jy
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 61 components and 1.97659 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.179313Jy  sigma=0.001239
! Fit after  self-cal, rms=0.178757Jy  sigma=0.001234
! Inverting map 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
! Added new window around map position (-3, -0.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.014945 Jy
! Component: 100  -  total flux cleaned = 0.0248855 Jy
! Component: 150  -  total flux cleaned = 0.0323186 Jy
! Component: 200  -  total flux cleaned = 0.0380466 Jy
! Total flux subtracted in 200 components = 0.0380466 Jy
! Clean residual min=-0.002999 max=0.008443 Jy/beam
! Clean residual mean=0.001173 rms=0.001489 Jy/beam
! Combined flux in latest and established models = 2.01463 Jy
! Performing phase self-cal
! Adding 43 model components to the UV plane model.
! The established model now contains 94 components and 2.01463 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177345Jy  sigma=0.001215
! Fit after  self-cal, rms=0.177175Jy  sigma=0.001213
! Inverting map 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
! Added new window around map position (-5.4, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00941382 Jy
! Component: 100  -  total flux cleaned = 0.0159091 Jy
! Component: 150  -  total flux cleaned = 0.0210073 Jy
! Component: 200  -  total flux cleaned = 0.0251203 Jy
! Total flux subtracted in 200 components = 0.0251203 Jy
! Clean residual min=-0.002891 max=0.005867 Jy/beam
! Clean residual mean=0.000728 rms=0.001133 Jy/beam
! Combined flux in latest and established models = 2.03975 Jy
! Performing phase self-cal
! Adding 42 model components to the UV plane model.
! The established model now contains 123 components and 2.03975 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.176590Jy  sigma=0.001205
! Fit after  self-cal, rms=0.176514Jy  sigma=0.001205
! Inverting map 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
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*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.00     KP        1.00     LA        0.99     
!   MA        1.00     MC        0.99     MK        1.00     NL        1.01     
!   OV        1.00     PT        1.00     SC        1.01     TS        1.00     
!   WF        1.00     WZ        0.99     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.01     KK        1.00     KP        1.00     LA        1.00     
!   MA        1.00     MC        1.00     MK        1.01     NL        1.00     
!   OV        1.00     PT        1.00     SC        1.00     TS        0.99     
!   WF        1.00     WZ        1.00     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.01     KP        1.00     LA        1.00     
!   MA        0.99     MC        1.00     MK        1.00     NL        1.00     
!   OV        1.00     PT        1.00     SC        1.00     TS        1.00     
!   WF        1.00     WZ        1.00     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.01     KP        1.00     LA        1.00     
!   MA        1.00     MC        1.00     MK        1.01     NL        1.00     
!   OV        1.00     PT        1.00     SC        1.00     TS        1.00     
!   WF        1.00     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.01     KP        1.00     LA        1.00     
!   MA        1.00     MC        1.00     MK        1.00     NL        1.01     
!   OV        1.00     PT        1.00     SC        1.00     TS        0.99     
!   WF        1.00     WZ        1.00     
! 
!  Telescope amplitude corrections in sub-array 6:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.00*    MC        1.01     MK        1.00*    NL        1.01     
!   OV        1.00*    PT        1.00*    SC        1.00     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.00     KP        1.00     LA        0.99     
!   MA        1.00     MC        0.99     MK        1.00     NL        1.01     
!   OV        1.00     PT        1.00     SC        1.01     TS        1.00     
!   WF        1.00     WZ        0.99     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.01     KK        1.00     KP        1.00     LA        1.00     
!   MA        1.00     MC        1.00     MK        1.01     NL        1.00     
!   OV        1.00     PT        1.00     SC        1.00     TS        0.99     
!   WF        1.00     WZ        1.00     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.01     KP        1.00     LA        1.00     
!   MA        0.99     MC        1.00     MK        1.00     NL        1.00     
!   OV        1.00     PT        1.00     SC        1.00     TS        1.00     
!   WF        1.00     WZ        1.00     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.01     KP        1.00     LA        1.00     
!   MA        1.00     MC        1.00     MK        1.01     NL        1.00     
!   OV        1.00     PT        1.00     SC        1.00     TS        1.00     
!   WF        1.00     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.01     KP        1.00     LA        1.00     
!   MA        1.00     MC        1.00     MK        1.00     NL        1.00     
!   OV        1.00     PT        1.00     SC        1.00     TS        0.99     
!   WF        1.00     WZ        1.00     
! 
!  Telescope amplitude corrections in sub-array 6:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.00*    MC        1.01     MK        1.00*    NL        1.01     
!   OV        1.00*    PT        1.00*    SC        1.00     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.00     KP        1.00     LA        1.00     
!   MA        0.99     MC        0.99     MK        1.00     NL        1.01     
!   OV        1.00     PT        1.00     SC        1.01     TS        1.00     
!   WF        1.00     WZ        0.99     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.01     KK        1.00     KP        1.00     LA        1.00     
!   MA        1.00     MC        1.00     MK        1.00     NL        1.00     
!   OV        1.00     PT        1.00     SC        1.00     TS        0.99     
!   WF        1.00     WZ        1.00     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.01     KP        1.00     LA        1.00     
!   MA        0.99     MC        1.00     MK        1.01     NL        1.00     
!   OV        1.00     PT        1.00     SC        1.00     TS        1.00     
!   WF        1.00     WZ        1.00     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.01     KP        1.00     LA        1.00     
!   MA        1.00     MC        1.00     MK        1.01     NL        1.00     
!   OV        1.00     PT        1.00     SC        1.00     TS        0.99     
!   WF        1.00     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.01     KP        1.00     LA        1.00     
!   MA        1.00     MC        1.00     MK        1.00     NL        1.00     
!   OV        1.00     PT        1.00     SC        1.00     TS        0.99     
!   WF        1.00     WZ        1.00     
! 
!  Telescope amplitude corrections in sub-array 6:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.00*    MC        1.01     MK        1.00*    NL        1.01     
!   OV        1.00*    PT        1.00*    SC        1.00     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.00     KP        1.00     LA        1.00     
!   MA        1.00     MC        0.99     MK        1.00     NL        1.01     
!   OV        1.00     PT        1.00     SC        1.01     TS        1.00     
!   WF        1.00     WZ        0.99     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.01     KK        1.00     KP        1.00     LA        1.00     
!   MA        1.00     MC        1.00     MK        1.00     NL        1.00     
!   OV        1.00     PT        1.00     SC        1.00     TS        0.99     
!   WF        1.00     WZ        1.00     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.01     KP        1.00     LA        1.00     
!   MA        0.99     MC        0.99     MK        1.01     NL        1.00     
!   OV        1.00     PT        1.00     SC        1.00     TS        1.00     
!   WF        1.00     WZ        1.00     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.01     KP        1.00     LA        1.00     
!   MA        0.99     MC        1.00     MK        1.01     NL        1.00     
!   OV        1.00     PT        1.00     SC        1.00     TS        0.99     
!   WF        1.00     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.01     KP        1.00     LA        1.00     
!   MA        1.00     MC        0.99     MK        1.00     NL        1.00     
!   OV        1.00     PT        1.00     SC        1.00     TS        0.99     
!   WF        1.00     WZ        1.00     
! 
!  Telescope amplitude corrections in sub-array 6:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.00*    MC        1.01     MK        1.00*    NL        1.01     
!   OV        1.00*    PT        1.00*    SC        1.00     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.176514Jy  sigma=0.001205
! Fit after  self-cal, rms=0.176501Jy  sigma=0.001203
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
! Estimated beam: bmin=0.7116 mas, bmaj=0.7272 mas, bpa=72.12 degrees
! Estimated noise=235.293 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.00402147 Jy
! Component: 100  -  total flux cleaned = 0.00624485 Jy
! Component: 150  -  total flux cleaned = 0.00798077 Jy
! Component: 200  -  total flux cleaned = 0.00938183 Jy
! Total flux subtracted in 200 components = 0.00938183 Jy
! Clean residual min=-0.002130 max=0.004556 Jy/beam
! Clean residual mean=0.000432 rms=0.000918 Jy/beam
! Combined flux in latest and established models = 2.04914 Jy
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 133 components and 2.04914 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.176362Jy  sigma=0.001201
! Fit after  self-cal, rms=0.176327Jy  sigma=0.001201
! Inverting map 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
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.176327Jy  sigma=0.001201
! Fit after  self-cal, rms=0.176435Jy  sigma=0.001201
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
! Estimated beam: bmin=0.7112 mas, bmaj=0.7273 mas, bpa=71.88 degrees
! Estimated noise=235.492 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00237479 Jy
! Component: 100  -  total flux cleaned = 0.00372016 Jy
! Component: 150  -  total flux cleaned = 0.0050998 Jy
! Component: 200  -  total flux cleaned = 0.00622241 Jy
! Total flux subtracted in 200 components = 0.00622241 Jy
! Clean residual min=-0.002177 max=0.004233 Jy/beam
! Clean residual mean=0.000378 rms=0.000880 Jy/beam
! Combined flux in latest and established models = 2.05536 Jy
selfcal
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 136 components and 2.05536 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.176342Jy  sigma=0.001200
! Fit after  self-cal, rms=0.176307Jy  sigma=0.001199
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
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 (-9.4, -1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0043807 Jy
! Component: 100  -  total flux cleaned = 0.0061139 Jy
! Component: 150  -  total flux cleaned = 0.00762431 Jy
! Component: 200  -  total flux cleaned = 0.00890473 Jy
! Total flux subtracted in 200 components = 0.00890473 Jy
! Clean residual min=-0.002239 max=0.003616 Jy/beam
! Clean residual mean=0.000221 rms=0.000764 Jy/beam
! Combined flux in latest and established models = 2.06426 Jy
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 162 components and 2.06426 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.176183Jy  sigma=0.001198
! Fit after  self-cal, rms=0.176152Jy  sigma=0.001197
! Inverting map 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
! Added new window around map position (-2.4, -2.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00254678 Jy
! Component: 100  -  total flux cleaned = 0.00378603 Jy
! Component: 150  -  total flux cleaned = 0.00506457 Jy
! Component: 200  -  total flux cleaned = 0.00626603 Jy
! Total flux subtracted in 200 components = 0.00626603 Jy
! Clean residual min=-0.002107 max=0.002321 Jy/beam
! Clean residual mean=0.000115 rms=0.000701 Jy/beam
! Combined flux in latest and established models = 2.07053 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 176 components and 2.07053 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.176085Jy  sigma=0.001197
! Fit after  self-cal, rms=0.176064Jy  sigma=0.001196
! Inverting map 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
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.176064Jy  sigma=0.001196
! Fit after  self-cal, rms=0.176213Jy  sigma=0.001196
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
! Estimated beam: bmin=0.711 mas, bmaj=0.7274 mas, bpa=72.04 degrees
! Estimated noise=235.723 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00244309 Jy
! Component: 100  -  total flux cleaned = 0.0037792 Jy
! Component: 150  -  total flux cleaned = 0.00493847 Jy
! Component: 200  -  total flux cleaned = 0.00602807 Jy
! Total flux subtracted in 200 components = 0.00602807 Jy
! Clean residual min=-0.001998 max=0.002504 Jy/beam
! Clean residual mean=0.000117 rms=0.000676 Jy/beam
! Combined flux in latest and established models = 2.07656 Jy
selfcal
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 181 components and 2.07656 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.176156Jy  sigma=0.001195
! Fit after  self-cal, rms=0.176136Jy  sigma=0.001195
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
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 = 6.71485e-05 Jy
! Component: 100  -  total flux cleaned = 0.00104787 Jy
! Component: 150  -  total flux cleaned = 0.00203552 Jy
! Component: 200  -  total flux cleaned = 0.00288579 Jy
! Total flux subtracted in 200 components = 0.00288579 Jy
! Clean residual min=-0.002001 max=0.002397 Jy/beam
! Clean residual mean=0.000068 rms=0.000660 Jy/beam
! Combined flux in latest and established models = 2.07944 Jy
! Performing phase self-cal
! Adding 46 model components to the UV plane model.
! The established model now contains 186 components and 2.07944 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.176107Jy  sigma=0.001195
! Fit after  self-cal, rms=0.176086Jy  sigma=0.001195
! Inverting map 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 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.176086Jy  sigma=0.001195
! Fit after  self-cal, rms=0.176248Jy  sigma=0.001195
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
! Estimated beam: bmin=2.105 mas, bmaj=2.841 mas, bpa=-60.89 degrees
! Estimated noise=356.029 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00487973 Jy
! Component: 100  -  total flux cleaned = 0.00772828 Jy
! Component: 150  -  total flux cleaned = 0.0096838 Jy
! Component: 200  -  total flux cleaned = 0.0110665 Jy
! Total flux subtracted in 200 components = 0.0110665 Jy
! Clean residual min=-0.003740 max=0.003687 Jy/beam
! Clean residual mean=-0.000183 rms=0.001474 Jy/beam
! Combined flux in latest and established models = 2.09051 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 198 components and 2.09051 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.176256Jy  sigma=0.001195
! Fit after  self-cal, rms=0.176239Jy  sigma=0.001195
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
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.00153266 Jy
! Component: 100  -  total flux cleaned = 0.00249394 Jy
! Component: 150  -  total flux cleaned = 0.00302921 Jy
! Component: 200  -  total flux cleaned = 0.00318953 Jy
! Total flux subtracted in 200 components = 0.00318953 Jy
! Clean residual min=-0.003877 max=0.003605 Jy/beam
! Clean residual mean=-0.000369 rms=0.001474 Jy/beam
! Combined flux in latest and established models = 2.0937 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 204 components and 2.0937 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.176250Jy  sigma=0.001195
! Fit after  self-cal, rms=0.176248Jy  sigma=0.001195
! Inverting map 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
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 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
! Estimated beam: bmin=0.7109 mas, bmaj=0.7274 mas, bpa=72.16 degrees
! Estimated noise=235.962 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7109 x 0.7274 at 72.16 degrees (North through East)
! Clean map  min=-0.0018927  max=1.327 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.176248Jy  sigma=0.001195
! Fit after  self-cal, rms=0.176306Jy  sigma=0.001194
! Inverting map and beam 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
! Estimated beam: bmin=0.7108 mas, bmaj=0.7272 mas, bpa=72.27 degrees
! Estimated noise=236.131 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000811383 Jy
! Component: 100  -  total flux cleaned = 0.000753352 Jy
! Component: 150  -  total flux cleaned = 0.00080744 Jy
! Component: 200  -  total flux cleaned = 0.000942221 Jy
! Total flux subtracted in 200 components = 0.000942221 Jy
! Clean residual min=-0.002052 max=0.002263 Jy/beam
! Clean residual mean=-0.000022 rms=0.000616 Jy/beam
! Combined flux in latest and established models = 2.09464 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 210 components and 2.09464 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.176257Jy  sigma=0.001194
! Fit after  self-cal, rms=0.176239Jy  sigma=0.001194
! Inverting map 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000204164 Jy
! Component: 100  -  total flux cleaned = -0.000157399 Jy
! Component: 150  -  total flux cleaned = -0.000118847 Jy
! Component: 200  -  total flux cleaned = -8.30448e-05 Jy
! Total flux subtracted in 200 components = -8.30448e-05 Jy
! Clean residual min=-0.002041 max=0.002185 Jy/beam
! Clean residual mean=-0.000021 rms=0.000613 Jy/beam
! Combined flux in latest and established models = 2.09456 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 213 components and 2.09456 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.176219Jy  sigma=0.001193
! Fit after  self-cal, rms=0.176203Jy  sigma=0.001193
! Inverting map 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.176203Jy  sigma=0.001193
! Fit after  self-cal, rms=0.176366Jy  sigma=0.001193
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 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
! Estimated beam: bmin=0.5367 mas, bmaj=0.5422 mas, bpa=19.2 degrees
! Estimated noise=552.706 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.974036 Jy
! Component: 100  -  total flux cleaned = 1.25157 Jy
! Component: 150  -  total flux cleaned = 1.42525 Jy
! Component: 200  -  total flux cleaned = 1.54397 Jy
! Total flux subtracted in 200 components = 1.54397 Jy
! Clean residual min=-0.012629 max=0.065526 Jy/beam
! Clean residual mean=0.000523 rms=0.005016 Jy/beam
! Combined flux in latest and established models = 1.54397 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 10 model components to the UV plane model.
! The established model now contains 10 components and 1.54397 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
! Estimated beam: bmin=0.7106 mas, bmaj=0.7272 mas, bpa=72.21 degrees
! Estimated noise=236.376 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.185777 Jy
! Component: 100  -  total flux cleaned = 0.287987 Jy
! Component: 150  -  total flux cleaned = 0.350275 Jy
! Component: 200  -  total flux cleaned = 0.390103 Jy
! Total flux subtracted in 200 components = 0.390103 Jy
! Clean residual min=-0.003371 max=0.021387 Jy/beam
! Clean residual mean=0.002837 rms=0.003341 Jy/beam
! Combined flux in latest and established models = 1.93408 Jy
! Adding 41 model components to the UV plane model.
! The established model now contains 41 components and 1.93408 Jy
! Inverting map 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.026944 Jy
! Component: 100  -  total flux cleaned = 0.0467034 Jy
! Component: 150  -  total flux cleaned = 0.0622645 Jy
! Component: 200  -  total flux cleaned = 0.0748744 Jy
! Total flux subtracted in 200 components = 0.0748744 Jy
! Clean residual min=-0.002507 max=0.007895 Jy/beam
! Clean residual mean=0.001519 rms=0.001731 Jy/beam
! Combined flux in latest and established models = 2.00895 Jy
! Adding 63 model components to the UV plane model.
! The established model now contains 89 components and 2.00895 Jy
! Inverting map 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
! Added new window around map position (-5.6, -1.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0105182 Jy
! Component: 100  -  total flux cleaned = 0.0194133 Jy
! Component: 150  -  total flux cleaned = 0.0271234 Jy
! Component: 200  -  total flux cleaned = 0.0339075 Jy
! Total flux subtracted in 200 components = 0.0339075 Jy
! Clean residual min=-0.002191 max=0.005187 Jy/beam
! Clean residual mean=0.000922 rms=0.001185 Jy/beam
! Combined flux in latest and established models = 2.04286 Jy
! Adding 62 model components to the UV plane model.
! The established model now contains 129 components and 2.04286 Jy
! Inverting map 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
! Added new window around map position (-7.2, -0.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0062484 Jy
! Component: 100  -  total flux cleaned = 0.0116669 Jy
! Component: 150  -  total flux cleaned = 0.0165107 Jy
! Component: 200  -  total flux cleaned = 0.0208591 Jy
! Total flux subtracted in 200 components = 0.0208591 Jy
! Clean residual min=-0.002055 max=0.003464 Jy/beam
! Clean residual mean=0.000556 rms=0.000891 Jy/beam
! Combined flux in latest and established models = 2.06372 Jy
! Adding 89 model components to the UV plane model.
! The established model now contains 167 components and 2.06372 Jy
! Inverting map 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
! Estimated beam: bmin=2.105 mas, bmaj=2.84 mas, bpa=-60.88 degrees
! Estimated noise=356.92 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0106219 Jy
! Component: 100  -  total flux cleaned = 0.0179925 Jy
! Component: 150  -  total flux cleaned = 0.0233445 Jy
! Component: 200  -  total flux cleaned = 0.0273022 Jy
! Total flux subtracted in 200 components = 0.0273022 Jy
! Clean residual min=-0.003503 max=0.003953 Jy/beam
! Clean residual mean=0.000277 rms=0.001600 Jy/beam
! Combined flux in latest and established models = 2.09102 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.00296024 Jy
! Component: 100  -  total flux cleaned = 0.00518178 Jy
! Component: 150  -  total flux cleaned = 0.00685266 Jy
! Component: 200  -  total flux cleaned = 0.00811217 Jy
! Total flux subtracted in 200 components = 0.00811217 Jy
! Clean residual min=-0.003645 max=0.003864 Jy/beam
! Clean residual mean=-0.000215 rms=0.001423 Jy/beam
! Combined flux in latest and established models = 2.09913 Jy
! Adding 147 model components to the UV plane model.
! The established model now contains 270 components and 2.09913 Jy
! Inverting map 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
! Estimated beam: bmin=0.7106 mas, bmaj=0.7272 mas, bpa=72.21 degrees
! Estimated noise=236.376 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.89095e-05 Jy
! Component: 100  -  total flux cleaned = 0.000238399 Jy
! Component: 150  -  total flux cleaned = 0.000434421 Jy
! Component: 200  -  total flux cleaned = 0.000667842 Jy
! Total flux subtracted in 200 components = 0.000667842 Jy
! Clean residual min=-0.002018 max=0.001941 Jy/beam
! Clean residual mean=-0.000070 rms=0.000561 Jy/beam
! Combined flux in latest and established models = 2.0998 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 279 components and 2.0998 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.178691Jy  sigma=0.001215
! Fit after  self-cal, rms=0.178524Jy  sigma=0.001214
wmodel J1800+7828_X_2001_10_29_pus_map.mod
! Writing 279 model components to file: J1800+7828_X_2001_10_29_pus_map.mod
wobs J1800+7828_X_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J1800+7828_X_2001_10_29_pus_uvs.fits
wwins J1800+7828_X_2001_10_29_pus_map.win
! wwins: Wrote 10 windows to J1800+7828_X_2001_10_29_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000346216 Jy
! Component: 100  -  total flux cleaned = -0.000589722 Jy
! Component: 150  -  total flux cleaned = -0.000822272 Jy
! Component: 200  -  total flux cleaned = -0.00101336 Jy
! Component: 250  -  total flux cleaned = -0.00116764 Jy
! Component: 300  -  total flux cleaned = -0.00113812 Jy
! Component: 350  -  total flux cleaned = -0.0011386 Jy
! Component: 400  -  total flux cleaned = -0.00113898 Jy
! Component: 450  -  total flux cleaned = -0.00122281 Jy
! Component: 500  -  total flux cleaned = -0.00124984 Jy
! Component: 550  -  total flux cleaned = -0.00127677 Jy
! Component: 600  -  total flux cleaned = -0.00132964 Jy
! Component: 650  -  total flux cleaned = -0.00135561 Jy
! Component: 700  -  total flux cleaned = -0.00138124 Jy
! Component: 750  -  total flux cleaned = -0.00143191 Jy
! Component: 800  -  total flux cleaned = -0.00150624 Jy
! Component: 850  -  total flux cleaned = -0.00153084 Jy
! Component: 900  -  total flux cleaned = -0.00160335 Jy
! Component: 950  -  total flux cleaned = -0.00167487 Jy
! Component: 1000  -  total flux cleaned = -0.00169829 Jy
! Total flux subtracted in 1024 components = -0.00169835 Jy
! Clean residual min=-0.001257 max=0.001252 Jy/beam
! Clean residual mean=-0.000035 rms=0.000475 Jy/beam
! Combined flux in latest and established models = 2.0981 Jy
keep
! Adding 86 model components to the UV plane model.
! The established model now contains 362 components and 2.0981 Jy
![Exited script file: muppet]
wmap "J1800+7828_X_2001_10_29_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7106 x 0.7272 at 72.21 degrees (North through East)
! Clean map  min=-0.0015554  max=1.331 Jy/beam
! Writing clean map to FITS file: J1800+7828_X_2001_10_29_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.33104 
invert
! Inverting map 
! Your choice of large map pixels excluded 5.98% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1589 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000471332 
device "J1800+7828_X_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J1800+7828_X_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.106232 0.106232 0.212464 0.424929 0.849857 1.69971 3.39943 6.79886 13.5977 27.1954 54.3909
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0014 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.331 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7106 x 0.7272 at 72.21 degrees (North through East)
! Clean map  min=-0.0015554  max=1.331 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1800+7828_X_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J1800+7828_X_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1800+7828_X_2001_10_29_pus_uvs.log closed on Mon Feb 25 18:04:18 2008