! Started logfile: J0231+1322_X_2001_07_05_pus_uvs.log on Thu Jul  5 14:52:15 2007
obs J0231+1322_X_2001_07_05_pus_uva.fits
! Reading UV FITS file: J0231+1322_X_2001_07_05_pus_uva.fits
! AN table 1: 59 integrations on 171 of 171 possible baselines.
! AN table 2: 31 integrations on 171 of 171 possible baselines.
! AN table 3: 38 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.102431 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0231+1322
! 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  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 2374 lines of history.
! 
! Reading 8968 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 
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 970 telescope corrections were flagged in sub-array 1.
!  A total of 443 telescope corrections were flagged in sub-array 2.
!  A total of 478 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 970 telescope corrections were flagged in sub-array 1.
!  A total of 443 telescope corrections were flagged in sub-array 2.
!  A total of 477 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 970 telescope corrections were flagged in sub-array 1.
!  A total of 443 telescope corrections were flagged in sub-array 2.
!  A total of 479 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 970 telescope corrections were flagged in sub-array 1.
!  A total of 443 telescope corrections were flagged in sub-array 2.
!  A total of 479 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.595421Jy  sigma=0.004686
! Fit after  self-cal, rms=0.313169Jy  sigma=0.002476
! 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 3.6% of the data.
!  The x-axis pixel size should ideally be below 0.1806 milli-arcsec
! Estimated beam: bmin=0.638 mas, bmaj=1.298 mas, bpa=-1.525 degrees
! Estimated noise=1732.16 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.732487 Jy
! Component: 100  -  total flux cleaned = 0.945802 Jy
! Total flux subtracted in 100 components = 0.945802 Jy
! Clean residual min=-0.031673 max=0.095744 Jy/beam
! Clean residual mean=0.001588 rms=0.011655 Jy/beam
! Combined flux in latest and established models = 0.945802 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.945802 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.277168Jy  sigma=0.002205
! Fit after  self-cal, rms=0.275927Jy  sigma=0.002197
! Inverting map 
! Your choice of large map pixels excluded 3.6% of the data.
!  The x-axis pixel size should ideally be below 0.1806 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.104771 Jy
! Component: 100  -  total flux cleaned = 0.158759 Jy
! Total flux subtracted in 100 components = 0.158759 Jy
! Clean residual min=-0.024277 max=0.042248 Jy/beam
! Clean residual mean=0.000822 rms=0.007523 Jy/beam
! Combined flux in latest and established models = 1.10456 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 16 components and 1.10456 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.235771Jy  sigma=0.001670
! Fit after  self-cal, rms=0.235227Jy  sigma=0.001666
! Inverting map 
! Your choice of large map pixels excluded 3.6% of the data.
!  The x-axis pixel size should ideally be below 0.1806 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 3.6% of the data.
!  The x-axis pixel size should ideally be below 0.1806 milli-arcsec
! Estimated beam: bmin=0.7552 mas, bmaj=1.433 mas, bpa=-2.883 degrees
! Estimated noise=992.175 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 (1.4, 1.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0553264 Jy
! Component: 100  -  total flux cleaned = 0.0875249 Jy
! Component: 150  -  total flux cleaned = 0.104785 Jy
! Component: 200  -  total flux cleaned = 0.112509 Jy
! Total flux subtracted in 200 components = 0.112509 Jy
! Clean residual min=-0.017810 max=0.028776 Jy/beam
! Clean residual mean=0.000152 rms=0.006525 Jy/beam
! Combined flux in latest and established models = 1.21707 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 41 components and 1.21707 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.225778Jy  sigma=0.001496
! Fit after  self-cal, rms=0.225097Jy  sigma=0.001489
! Inverting map 
! Your choice of large map pixels excluded 3.6% of the data.
!  The x-axis pixel size should ideally be below 0.1806 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.99     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.06     KK        1.00*    KP        1.45     
!   LA        0.98     MC        1.00*    MK        1.00     NL        1.02     
!   NY        1.00*    OV        0.99     PT        1.01     SC        1.00*    
!   TS        1.00     WF        1.18     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.00*    GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.93     KP        1.00*    
!   LA        1.00*    MC        1.00*    MK        1.01     NL        1.00*    
!   NY        1.00*    OV        1.16     PT        1.00*    SC        1.00*    
!   TS        0.95     WF        1.00*    WZ        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.91     FD        0.95     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        0.98     KP        0.88     
!   LA        0.93     MC        1.00*    MK        1.02     NL        0.98     
!   NY        1.11     OV        0.99     PT        0.97     SC        1.02     
!   TS        1.00*    WF        1.06     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.99     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        1.07     KK        1.00*    KP        1.50     
!   LA        0.97     MC        1.00*    MK        1.00     NL        0.97     
!   NY        1.00*    OV        0.98     PT        0.98     SC        1.00*    
!   TS        1.04     WF        1.17     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.00*    GC        0.92     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.99     KP        1.00*    
!   LA        1.00*    MC        1.00*    MK        1.00     NL        1.00*    
!   NY        1.00*    OV        1.19     PT        1.00*    SC        1.00*    
!   TS        0.95     WF        1.00*    WZ        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.91     FD        0.95     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        0.96     KP        0.88     
!   LA        0.91     MC        1.00*    MK        1.01     NL        0.95     
!   NY        1.43     OV        0.97     PT        0.94     SC        0.99     
!   TS        1.00*    WF        1.04     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.98     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.09     KK        1.00*    KP        1.61     
!   LA        0.97     MC        1.00*    MK        1.00     NL        1.00     
!   NY        1.00*    OV        1.03     PT        1.01     SC        1.00*    
!   TS        1.04     WF        1.11     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.00*    GC        0.99     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.91     KP        1.00*    
!   LA        1.00*    MC        1.00*    MK        1.03     NL        1.00*    
!   NY        1.00*    OV        1.21     PT        1.00*    SC        1.00*    
!   TS        0.95     WF        1.00*    WZ        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.93     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        0.95     KP        0.93     
!   LA        0.93     MC        1.00*    MK        1.03     NL        0.97     
!   NY        1.00*    OV        1.02     PT        0.98     SC        1.01     
!   TS        1.00*    WF        1.04     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.97     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.11     KK        1.00*    KP        1.59     
!   LA        0.96     MC        1.00*    MK        1.06     NL        1.01     
!   NY        1.00*    OV        1.00     PT        1.00     SC        1.00*    
!   TS        1.00     WF        1.15     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.00*    GC        0.99     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.94     KP        1.00*    
!   LA        1.00*    MC        1.00*    MK        1.05     NL        1.00*    
!   NY        1.00*    OV        1.20     PT        1.00*    SC        1.00*    
!   TS        0.97     WF        1.00*    WZ        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.92     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        0.97     KP        0.89     
!   LA        0.91     MC        1.00*    MK        1.08     NL        0.97     
!   NY        1.00*    OV        1.00     PT        0.96     SC        1.06     
!   TS        1.00*    WF        1.10     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.225097Jy  sigma=0.001489
! Fit after  self-cal, rms=0.210229Jy  sigma=0.001244
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 3.48% of the data.
!  The x-axis pixel size should ideally be below 0.1806 milli-arcsec
! Estimated beam: bmin=0.7574 mas, bmaj=1.452 mas, bpa=-2.605 degrees
! Estimated noise=989.236 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.01234 Jy
! Component: 100  -  total flux cleaned = 0.0177408 Jy
! Component: 150  -  total flux cleaned = 0.0190088 Jy
! Component: 200  -  total flux cleaned = 0.0197291 Jy
! Total flux subtracted in 200 components = 0.0197291 Jy
! Clean residual min=-0.005459 max=0.006943 Jy/beam
! Clean residual mean=0.000120 rms=0.001754 Jy/beam
! Combined flux in latest and established models = 1.2368 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 56 components and 1.2368 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.209542Jy  sigma=0.001236
! Fit after  self-cal, rms=0.209722Jy  sigma=0.001235
! Inverting map 
! Your choice of large map pixels excluded 3.48% of the data.
!  The x-axis pixel size should ideally be below 0.1806 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.209722Jy  sigma=0.001235
! Fit after  self-cal, rms=0.210040Jy  sigma=0.001234
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.48% of the data.
!  The x-axis pixel size should ideally be below 0.1806 milli-arcsec
! Estimated beam: bmin=0.7561 mas, bmaj=1.451 mas, bpa=-2.652 degrees
! Estimated noise=990.375 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00739964 Jy
! Component: 100  -  total flux cleaned = 0.00890367 Jy
! Component: 150  -  total flux cleaned = 0.00936089 Jy
! Component: 200  -  total flux cleaned = 0.00963534 Jy
! Total flux subtracted in 200 components = 0.00963534 Jy
! Clean residual min=-0.005128 max=0.006301 Jy/beam
! Clean residual mean=0.000038 rms=0.001573 Jy/beam
! Combined flux in latest and established models = 1.24643 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 62 components and 1.24643 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.209752Jy  sigma=0.001231
! Fit after  self-cal, rms=0.209686Jy  sigma=0.001230
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.48% of the data.
!  The x-axis pixel size should ideally be below 0.1806 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.00107793 Jy
! Component: 100  -  total flux cleaned = 0.000941872 Jy
! Component: 150  -  total flux cleaned = 0.00105873 Jy
! Component: 200  -  total flux cleaned = 0.00116877 Jy
! Total flux subtracted in 200 components = 0.00116877 Jy
! Clean residual min=-0.005084 max=0.005839 Jy/beam
! Clean residual mean=0.000025 rms=0.001508 Jy/beam
! Combined flux in latest and established models = 1.2476 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 68 components and 1.2476 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.209555Jy  sigma=0.001229
! Fit after  self-cal, rms=0.209523Jy  sigma=0.001229
! Inverting map 
! Your choice of large map pixels excluded 3.48% of the data.
!  The x-axis pixel size should ideally be below 0.1806 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.209523Jy  sigma=0.001229
! Fit after  self-cal, rms=0.209799Jy  sigma=0.001228
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.48% of the data.
!  The x-axis pixel size should ideally be below 0.1806 milli-arcsec
! Estimated beam: bmin=0.7553 mas, bmaj=1.45 mas, bpa=-2.661 degrees
! Estimated noise=991.257 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0041927 Jy
! Component: 100  -  total flux cleaned = 0.00445262 Jy
! Component: 150  -  total flux cleaned = 0.00456334 Jy
! Component: 200  -  total flux cleaned = 0.00466376 Jy
! Total flux subtracted in 200 components = 0.00466376 Jy
! Clean residual min=-0.005055 max=0.005678 Jy/beam
! Clean residual mean=-0.000009 rms=0.001435 Jy/beam
! Combined flux in latest and established models = 1.25227 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 68 components and 1.25227 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.209649Jy  sigma=0.001226
! Fit after  self-cal, rms=0.209618Jy  sigma=0.001226
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.48% of the data.
!  The x-axis pixel size should ideally be below 0.1806 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.000494704 Jy
! Component: 100  -  total flux cleaned = 0.000496802 Jy
! Component: 150  -  total flux cleaned = 0.000587444 Jy
! Component: 200  -  total flux cleaned = 0.000668697 Jy
! Total flux subtracted in 200 components = 0.000668697 Jy
! Clean residual min=-0.004947 max=0.005373 Jy/beam
! Clean residual mean=-0.000016 rms=0.001403 Jy/beam
! Combined flux in latest and established models = 1.25294 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 73 components and 1.25294 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.209542Jy  sigma=0.001225
! Fit after  self-cal, rms=0.209526Jy  sigma=0.001225
! Inverting map 
! Your choice of large map pixels excluded 3.48% of the data.
!  The x-axis pixel size should ideally be below 0.1806 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.209526Jy  sigma=0.001225
! Fit after  self-cal, rms=0.209692Jy  sigma=0.001225
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.48% of the data.
!  The x-axis pixel size should ideally be below 0.1806 milli-arcsec
! Estimated beam: bmin=2.108 mas, bmaj=2.524 mas, bpa=6.374 degrees
! Estimated noise=1406.42 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00308254 Jy
! Component: 100  -  total flux cleaned = 0.00354672 Jy
! Component: 150  -  total flux cleaned = 0.00359495 Jy
! Component: 200  -  total flux cleaned = 0.00363573 Jy
! Total flux subtracted in 200 components = 0.00363573 Jy
! Clean residual min=-0.007070 max=0.005421 Jy/beam
! Clean residual mean=-0.000153 rms=0.001766 Jy/beam
! Combined flux in latest and established models = 1.25657 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 78 components and 1.25657 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.209679Jy  sigma=0.001225
! Fit after  self-cal, rms=0.209669Jy  sigma=0.001225
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.48% of the data.
!  The x-axis pixel size should ideally be below 0.1806 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 = 5.54489e-05 Jy
! Component: 100  -  total flux cleaned = 0.000236041 Jy
! Component: 150  -  total flux cleaned = 0.000273205 Jy
! Component: 200  -  total flux cleaned = 0.000305694 Jy
! Total flux subtracted in 200 components = 0.000305694 Jy
! Clean residual min=-0.007037 max=0.005426 Jy/beam
! Clean residual mean=-0.000163 rms=0.001754 Jy/beam
! Combined flux in latest and established models = 1.25688 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 80 components and 1.25688 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.209685Jy  sigma=0.001225
! Fit after  self-cal, rms=0.209680Jy  sigma=0.001225
! Inverting map 
! Your choice of large map pixels excluded 3.48% of the data.
!  The x-axis pixel size should ideally be below 0.1806 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 3.48% of the data.
!  The x-axis pixel size should ideally be below 0.1806 milli-arcsec
! Estimated beam: bmin=0.7548 mas, bmaj=1.449 mas, bpa=-2.671 degrees
! Estimated noise=991.753 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7548 x 1.449 at -2.671 degrees (North through East)
! Clean map  min=-0.0043395  max=0.97511 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.209680Jy  sigma=0.001225
! Fit after  self-cal, rms=0.202460Jy  sigma=0.001148
! Inverting map and beam 
! Your choice of large map pixels excluded 3.48% of the data.
!  The x-axis pixel size should ideally be below 0.1806 milli-arcsec
! Estimated beam: bmin=0.7542 mas, bmaj=1.449 mas, bpa=-2.715 degrees
! Estimated noise=991.919 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000322271 Jy
! Component: 100  -  total flux cleaned = 0.000519964 Jy
! Component: 150  -  total flux cleaned = 0.00068976 Jy
! Component: 200  -  total flux cleaned = 0.000765941 Jy
! Total flux subtracted in 200 components = 0.000765941 Jy
! Clean residual min=-0.004773 max=0.004929 Jy/beam
! Clean residual mean=-0.000025 rms=0.001296 Jy/beam
! Combined flux in latest and established models = 1.25764 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 85 components and 1.25764 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.202326Jy  sigma=0.001146
! Fit after  self-cal, rms=0.202313Jy  sigma=0.001146
! Inverting map 
! Your choice of large map pixels excluded 3.48% of the data.
!  The x-axis pixel size should ideally be below 0.1806 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.94779e-05 Jy
! Component: 100  -  total flux cleaned = 0.000164779 Jy
! Component: 150  -  total flux cleaned = 0.000234158 Jy
! Component: 200  -  total flux cleaned = 0.000298009 Jy
! Total flux subtracted in 200 components = 0.000298009 Jy
! Clean residual min=-0.004655 max=0.004928 Jy/beam
! Clean residual mean=-0.000028 rms=0.001282 Jy/beam
! Combined flux in latest and established models = 1.25794 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 87 components and 1.25794 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.202256Jy  sigma=0.001146
! Fit after  self-cal, rms=0.202248Jy  sigma=0.001146
! Inverting map 
! Your choice of large map pixels excluded 3.48% of the data.
!  The x-axis pixel size should ideally be below 0.1806 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.202248Jy  sigma=0.001146
! Fit after  self-cal, rms=0.202353Jy  sigma=0.001146
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 3.48% of the data.
!  The x-axis pixel size should ideally be below 0.1806 milli-arcsec
! Estimated beam: bmin=0.6414 mas, bmaj=1.306 mas, bpa=-1.563 degrees
! Estimated noise=1734.98 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.735738 Jy
! Component: 100  -  total flux cleaned = 0.949971 Jy
! Component: 150  -  total flux cleaned = 1.05358 Jy
! Component: 200  -  total flux cleaned = 1.11093 Jy
! Total flux subtracted in 200 components = 1.11093 Jy
! Clean residual min=-0.012864 max=0.030226 Jy/beam
! Clean residual mean=0.000658 rms=0.004358 Jy/beam
! Combined flux in latest and established models = 1.11093 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 15 model components to the UV plane model.
! The established model now contains 15 components and 1.11093 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 3.48% of the data.
!  The x-axis pixel size should ideally be below 0.1806 milli-arcsec
! Estimated beam: bmin=0.7539 mas, bmaj=1.449 mas, bpa=-2.713 degrees
! Estimated noise=992.469 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.049787 Jy
! Component: 100  -  total flux cleaned = 0.079779 Jy
! Component: 150  -  total flux cleaned = 0.0995326 Jy
! Component: 200  -  total flux cleaned = 0.113576 Jy
! Total flux subtracted in 200 components = 0.113576 Jy
! Clean residual min=-0.005117 max=0.007929 Jy/beam
! Clean residual mean=0.000399 rms=0.001862 Jy/beam
! Combined flux in latest and established models = 1.22451 Jy
! Adding 36 model components to the UV plane model.
! The established model now contains 41 components and 1.22451 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.48% of the data.
!  The x-axis pixel size should ideally be below 0.1806 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0102721 Jy
! Component: 100  -  total flux cleaned = 0.0178746 Jy
! Component: 150  -  total flux cleaned = 0.0236615 Jy
! Component: 200  -  total flux cleaned = 0.027138 Jy
! Total flux subtracted in 200 components = 0.027138 Jy
! Clean residual min=-0.004500 max=0.004643 Jy/beam
! Clean residual mean=0.000059 rms=0.001370 Jy/beam
! Combined flux in latest and established models = 1.25164 Jy
! Adding 27 model components to the UV plane model.
! The established model now contains 56 components and 1.25164 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.48% of the data.
!  The x-axis pixel size should ideally be below 0.1806 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 3.48% of the data.
!  The x-axis pixel size should ideally be below 0.1806 milli-arcsec
! Estimated beam: bmin=2.106 mas, bmaj=2.524 mas, bpa=6.342 degrees
! Estimated noise=1409.98 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00530212 Jy
! Component: 100  -  total flux cleaned = 0.00721161 Jy
! Component: 150  -  total flux cleaned = 0.00776848 Jy
! Component: 200  -  total flux cleaned = 0.00811449 Jy
! Total flux subtracted in 200 components = 0.00811449 Jy
! Clean residual min=-0.006252 max=0.004844 Jy/beam
! Clean residual mean=-0.000141 rms=0.001614 Jy/beam
! Combined flux in latest and established models = 1.25976 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.000187702 Jy
! Component: 100  -  total flux cleaned = 0.000245874 Jy
! Component: 150  -  total flux cleaned = 0.000270568 Jy
! Component: 200  -  total flux cleaned = 0.000292717 Jy
! Total flux subtracted in 200 components = 0.000292717 Jy
! Clean residual min=-0.006311 max=0.004833 Jy/beam
! Clean residual mean=-0.000153 rms=0.001610 Jy/beam
! Combined flux in latest and established models = 1.26005 Jy
! Adding 34 model components to the UV plane model.
! The established model now contains 84 components and 1.26005 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.48% of the data.
!  The x-axis pixel size should ideally be below 0.1806 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 3.48% of the data.
!  The x-axis pixel size should ideally be below 0.1806 milli-arcsec
! Estimated beam: bmin=0.7539 mas, bmaj=1.449 mas, bpa=-2.713 degrees
! Estimated noise=992.469 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.001625 Jy
! Component: 100  -  total flux cleaned = -0.00161762 Jy
! Component: 150  -  total flux cleaned = -0.00172206 Jy
! Component: 200  -  total flux cleaned = -0.00162925 Jy
! Total flux subtracted in 200 components = -0.00162925 Jy
! Clean residual min=-0.004877 max=0.004807 Jy/beam
! Clean residual mean=-0.000027 rms=0.001276 Jy/beam
! Combined flux in latest and established models = 1.25842 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 93 components and 1.25842 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.202121Jy  sigma=0.001143
! Fit after  self-cal, rms=0.202053Jy  sigma=0.001142
wmodel J0231+1322_X_2001_07_05_pus_map.mod
! Writing 93 model components to file: J0231+1322_X_2001_07_05_pus_map.mod
wobs J0231+1322_X_2001_07_05_pus_uvs.fits
! Writing UV FITS file: J0231+1322_X_2001_07_05_pus_uvs.fits
wwins J0231+1322_X_2001_07_05_pus_map.win
! wwins: Wrote 2 windows to J0231+1322_X_2001_07_05_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 3.48% of the data.
!  The x-axis pixel size should ideally be below 0.1806 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -5.56096e-06 Jy
! Component: 100  -  total flux cleaned = 0.000310594 Jy
! Component: 150  -  total flux cleaned = 0.000686807 Jy
! Component: 200  -  total flux cleaned = 0.000830676 Jy
! Component: 250  -  total flux cleaned = 0.0009002 Jy
! Component: 300  -  total flux cleaned = 0.000967042 Jy
! Component: 350  -  total flux cleaned = 0.00109924 Jy
! Component: 400  -  total flux cleaned = 0.00135722 Jy
! Component: 450  -  total flux cleaned = 0.00154603 Jy
! Component: 500  -  total flux cleaned = 0.00179214 Jy
! Component: 550  -  total flux cleaned = 0.00197392 Jy
! Component: 600  -  total flux cleaned = 0.00209305 Jy
! Component: 650  -  total flux cleaned = 0.00226821 Jy
! Component: 700  -  total flux cleaned = 0.00243961 Jy
! Component: 750  -  total flux cleaned = 0.00243928 Jy
! Component: 800  -  total flux cleaned = 0.00244027 Jy
! Component: 850  -  total flux cleaned = 0.00260463 Jy
! Component: 900  -  total flux cleaned = 0.00271172 Jy
! Component: 950  -  total flux cleaned = 0.0028699 Jy
! Component: 1000  -  total flux cleaned = 0.00297367 Jy
! Total flux subtracted in 1024 components = 0.00292213 Jy
! Clean residual min=-0.002858 max=0.003477 Jy/beam
! Clean residual mean=-0.000025 rms=0.000997 Jy/beam
! Combined flux in latest and established models = 1.26134 Jy
keep
! Adding 64 model components to the UV plane model.
! The established model now contains 157 components and 1.26134 Jy
wmap "J0231+1322_X_2001_07_05_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 3.48% of the data.
!  The x-axis pixel size should ideally be below 0.1806 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7539 x 1.449 at -2.713 degrees (North through East)
! Clean map  min=-0.0034935  max=0.9774 Jy/beam
! Writing clean map to FITS file: J0231+1322_X_2001_07_05_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.977399 
invert
! Inverting map 
! Your choice of large map pixels excluded 3.48% of the data.
!  The x-axis pixel size should ideally be below 0.1806 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000992939 
device "J0231+1322_X_2001_07_05_pus\_map.eps/VPS"
! Attempting to open device: 'J0231+1322_X_2001_07_05_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.30477 0.30477 0.60954 1.21908 2.43816 4.87632 9.75263 19.5053 39.0105 78.0211
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0029 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.977 
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.7539 x 1.449 at -2.713 degrees (North through East)
! Clean map  min=-0.0034935  max=0.9774 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0231+1322_X_2001_07_05_pus\_map.gif/vgif"
! Attempting to open device: 'J0231+1322_X_2001_07_05_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0231+1322_X_2001_07_05_pus_uvs.log closed on Thu Jul  5 14:52:54 2007