! Started logfile: J0914+0245_X_2001_07_05_pus_uvs.log on Wed Jul  4 20:19:59 2007
obs J0914+0245_X_2001_07_05_pus_uva.fits
! Reading UV FITS file: J0914+0245_X_2001_07_05_pus_uva.fits
! AN table 1: 44 integrations on 171 of 171 possible baselines.
! AN table 2: 123 integrations on 171 of 171 possible baselines.
! AN table 3: 98 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.144566 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0914+0245
! 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 2370 lines of history.
! 
! Reading 26204 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 501 telescope corrections were flagged in sub-array 1.
!  A total of 1641 telescope corrections were flagged in sub-array 2.
!  A total of 1404 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 501 telescope corrections were flagged in sub-array 1.
!  A total of 1641 telescope corrections were flagged in sub-array 2.
!  A total of 1404 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 501 telescope corrections were flagged in sub-array 1.
!  A total of 1641 telescope corrections were flagged in sub-array 2.
!  A total of 1404 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 501 telescope corrections were flagged in sub-array 1.
!  A total of 1641 telescope corrections were flagged in sub-array 2.
!  A total of 1404 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.820318Jy  sigma=0.006617
! Fit after  self-cal, rms=0.627638Jy  sigma=0.004908
! 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.91% of the data.
!  The x-axis pixel size should ideally be below 0.1535 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1851 milli-arcsec
! Estimated beam: bmin=0.5389 mas, bmaj=1.329 mas, bpa=-2.48 degrees
! Estimated noise=790.597 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.316826 Jy
! Component: 100  -  total flux cleaned = 0.3952 Jy
! Total flux subtracted in 100 components = 0.3952 Jy
! Clean residual min=-0.009315 max=0.033218 Jy/beam
! Clean residual mean=0.000277 rms=0.003480 Jy/beam
! Combined flux in latest and established models = 0.3952 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 0.3952 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.212664Jy  sigma=0.001382
! Fit after  self-cal, rms=0.212650Jy  sigma=0.001382
! Inverting map 
! Your choice of large map pixels excluded 3.91% of the data.
!  The x-axis pixel size should ideally be below 0.1535 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1851 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0370332 Jy
! Component: 100  -  total flux cleaned = 0.0571188 Jy
! Total flux subtracted in 100 components = 0.0571188 Jy
! Clean residual min=-0.007530 max=0.012111 Jy/beam
! Clean residual mean=0.000144 rms=0.002327 Jy/beam
! Combined flux in latest and established models = 0.452319 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 12 components and 0.452319 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.205945Jy  sigma=0.001299
! Fit after  self-cal, rms=0.205901Jy  sigma=0.001298
! Inverting map 
! Your choice of large map pixels excluded 3.91% of the data.
!  The x-axis pixel size should ideally be below 0.1535 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1851 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.91% of the data.
!  The x-axis pixel size should ideally be below 0.1535 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1851 milli-arcsec
! Estimated beam: bmin=0.6546 mas, bmaj=1.552 mas, bpa=-3.261 degrees
! Estimated noise=567.387 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.8, 2.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0175021 Jy
! Component: 100  -  total flux cleaned = 0.0287347 Jy
! Component: 150  -  total flux cleaned = 0.036568 Jy
! Component: 200  -  total flux cleaned = 0.0420279 Jy
! Total flux subtracted in 200 components = 0.0420279 Jy
! Clean residual min=-0.006833 max=0.007629 Jy/beam
! Clean residual mean=0.000136 rms=0.001959 Jy/beam
! Combined flux in latest and established models = 0.494347 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 31 components and 0.494347 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.204263Jy  sigma=0.001278
! Fit after  self-cal, rms=0.204201Jy  sigma=0.001277
! Inverting map 
! Your choice of large map pixels excluded 3.91% of the data.
!  The x-axis pixel size should ideally be below 0.1535 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1851 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.99     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        0.90     KK        0.99     KP        0.97     
!   LA        0.94     MC        1.00*    MK        1.01     NL        0.97     
!   NY        1.00*    OV        0.95     PT        0.98     SC        0.99     
!   TS        1.00*    WF        1.04     WZ        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        1.06     GC        1.00     GG        1.00*    
!   HH        1.12     HN        1.19     KK        0.91     KP        1.08     
!   LA        1.05     MC        1.08     MK        1.01     NL        1.04     
!   NY        1.08     OV        1.11     PT        1.03     SC        0.99     
!   TS        0.86     WF        0.98     WZ        0.94     
! 
!  A total of 93 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.97     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.05     KK        0.92     KP        0.93     
!   LA        0.98     MC        1.00*    MK        0.96     NL        0.98     
!   NY        1.00*    OV        0.97     PT        0.98     SC        1.03     
!   TS        1.24     WF        1.01     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.00     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        0.90     KK        0.98     KP        0.97     
!   LA        0.94     MC        1.00*    MK        1.00     NL        0.95     
!   NY        1.00*    OV        0.94     PT        0.95     SC        0.96     
!   TS        1.00*    WF        1.00     WZ        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        1.07     GC        0.95     GG        1.00*    
!   HH        1.20     HN        1.19     KK        0.91     KP        1.10     
!   LA        1.02     MC        1.07     MK        1.02     NL        1.00     
!   NY        1.15     OV        1.08     PT        1.00     SC        0.95     
!   TS        0.91     WF        0.97     WZ        0.98     
! 
!  A total of 93 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.96     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        0.95     KP        0.95     
!   LA        0.97     MC        1.00*    MK        0.98     NL        0.92     
!   NY        1.00*    OV        0.96     PT        0.95     SC        0.99     
!   TS        1.19     WF        1.02     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.95     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.88     KK        0.93     KP        0.99     
!   LA        0.99     MC        1.00*    MK        1.00     NL        0.97     
!   NY        1.00*    OV        0.98     PT        0.99     SC        0.98     
!   TS        1.00*    WF        0.99     WZ        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.05     GC        0.99     GG        1.00*    
!   HH        1.29     HN        1.20     KK        0.97     KP        1.20     
!   LA        1.04     MC        1.10     MK        0.96     NL        0.99     
!   NY        1.25     OV        1.11     PT        1.03     SC        0.98     
!   TS        0.84     WF        0.99     WZ        0.94     
! 
!  A total of 93 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.95     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        0.88     KP        0.97     
!   LA        0.97     MC        1.00*    MK        1.01     NL        0.97     
!   NY        1.00*    OV        0.99     PT        0.98     SC        1.00     
!   TS        1.29     WF        1.03     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.96     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.91     KK        0.97     KP        0.96     
!   LA        0.97     MC        1.00*    MK        1.03     NL        0.96     
!   NY        1.00*    OV        0.94     PT        0.98     SC        1.03     
!   TS        1.00*    WF        0.97     WZ        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.04     GC        1.00     GG        1.00*    
!   HH        1.46     HN        1.26     KK        0.96     KP        1.08     
!   LA        1.04     MC        1.10     MK        1.10     NL        1.03     
!   NY        1.07     OV        1.08     PT        1.04     SC        1.01     
!   TS        0.87     WF        0.95     WZ        0.96     
! 
!  A total of 93 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.93     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        1.03     KK        0.94     KP        0.93     
!   LA        0.97     MC        1.00*    MK        1.02     NL        0.96     
!   NY        1.00*    OV        0.97     PT        0.98     SC        1.08     
!   TS        1.29     WF        1.06     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.204201Jy  sigma=0.001277
! Fit after  self-cal, rms=0.220623Jy  sigma=0.001241
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 3.81% of the data.
!  The x-axis pixel size should ideally be below 0.1535 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1851 milli-arcsec
! Estimated beam: bmin=0.6618 mas, bmaj=1.61 mas, bpa=-3.758 degrees
! Estimated noise=568.58 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.2, 7.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00471213 Jy
! Component: 100  -  total flux cleaned = 0.00808551 Jy
! Component: 150  -  total flux cleaned = 0.0104367 Jy
! Component: 200  -  total flux cleaned = 0.0114951 Jy
! Total flux subtracted in 200 components = 0.0114951 Jy
! Clean residual min=-0.002589 max=0.002776 Jy/beam
! Clean residual mean=0.000117 rms=0.000686 Jy/beam
! Combined flux in latest and established models = 0.505842 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 58 components and 0.505842 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.220475Jy  sigma=0.001239
! Fit after  self-cal, rms=0.220651Jy  sigma=0.001239
! Inverting map 
! Your choice of large map pixels excluded 3.81% of the data.
!  The x-axis pixel size should ideally be below 0.1535 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1851 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.220651Jy  sigma=0.001239
! Fit after  self-cal, rms=0.221310Jy  sigma=0.001239
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.81% of the data.
!  The x-axis pixel size should ideally be below 0.1535 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1851 milli-arcsec
! Estimated beam: bmin=0.6615 mas, bmaj=1.61 mas, bpa=-3.786 degrees
! Estimated noise=568.524 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00231053 Jy
! Component: 100  -  total flux cleaned = 0.00328835 Jy
! Component: 150  -  total flux cleaned = 0.00392618 Jy
! Component: 200  -  total flux cleaned = 0.0044244 Jy
! Total flux subtracted in 200 components = 0.0044244 Jy
! Clean residual min=-0.002404 max=0.002654 Jy/beam
! Clean residual mean=0.000108 rms=0.000646 Jy/beam
! Combined flux in latest and established models = 0.510267 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 67 components and 0.510267 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.221257Jy  sigma=0.001238
! Fit after  self-cal, rms=0.221268Jy  sigma=0.001238
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.81% of the data.
!  The x-axis pixel size should ideally be below 0.1535 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1851 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.000613023 Jy
! Component: 100  -  total flux cleaned = 0.00101408 Jy
! Component: 150  -  total flux cleaned = 0.00132365 Jy
! Component: 200  -  total flux cleaned = 0.00160659 Jy
! Total flux subtracted in 200 components = 0.00160659 Jy
! Clean residual min=-0.002434 max=0.002592 Jy/beam
! Clean residual mean=0.000083 rms=0.000632 Jy/beam
! Combined flux in latest and established models = 0.511873 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 73 components and 0.511873 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.221240Jy  sigma=0.001238
! Fit after  self-cal, rms=0.221240Jy  sigma=0.001238
! Inverting map 
! Your choice of large map pixels excluded 3.81% of the data.
!  The x-axis pixel size should ideally be below 0.1535 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1851 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.221240Jy  sigma=0.001238
! Fit after  self-cal, rms=0.221511Jy  sigma=0.001238
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.81% of the data.
!  The x-axis pixel size should ideally be below 0.1535 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1851 milli-arcsec
! Estimated beam: bmin=0.6617 mas, bmaj=1.609 mas, bpa=-3.8 degrees
! Estimated noise=568.854 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000770186 Jy
! Component: 100  -  total flux cleaned = 0.00105626 Jy
! Component: 150  -  total flux cleaned = 0.0013143 Jy
! Component: 200  -  total flux cleaned = 0.00155347 Jy
! Total flux subtracted in 200 components = 0.00155347 Jy
! Clean residual min=-0.002415 max=0.002573 Jy/beam
! Clean residual mean=0.000097 rms=0.000621 Jy/beam
! Combined flux in latest and established models = 0.513427 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 76 components and 0.513427 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.221491Jy  sigma=0.001238
! Fit after  self-cal, rms=0.221494Jy  sigma=0.001238
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.81% of the data.
!  The x-axis pixel size should ideally be below 0.1535 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1851 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.000276512 Jy
! Component: 100  -  total flux cleaned = 0.000427771 Jy
! Component: 150  -  total flux cleaned = 0.00053272 Jy
! Component: 200  -  total flux cleaned = 0.000597953 Jy
! Total flux subtracted in 200 components = 0.000597953 Jy
! Clean residual min=-0.002422 max=0.002530 Jy/beam
! Clean residual mean=0.000087 rms=0.000616 Jy/beam
! Combined flux in latest and established models = 0.514025 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 81 components and 0.514024 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.221479Jy  sigma=0.001237
! Fit after  self-cal, rms=0.221479Jy  sigma=0.001237
! Inverting map 
! Your choice of large map pixels excluded 3.81% of the data.
!  The x-axis pixel size should ideally be below 0.1535 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1851 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.221479Jy  sigma=0.001237
! Fit after  self-cal, rms=0.221464Jy  sigma=0.001237
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.81% of the data.
!  The x-axis pixel size should ideally be below 0.1535 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1851 milli-arcsec
! Estimated beam: bmin=2.087 mas, bmaj=2.885 mas, bpa=3.12 degrees
! Estimated noise=778.576 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000677585 Jy
! Component: 100  -  total flux cleaned = 0.000808074 Jy
! Component: 150  -  total flux cleaned = 0.000828015 Jy
! Component: 200  -  total flux cleaned = 0.000826912 Jy
! Total flux subtracted in 200 components = 0.000826912 Jy
! Clean residual min=-0.001875 max=0.002827 Jy/beam
! Clean residual mean=0.000267 rms=0.000746 Jy/beam
! Combined flux in latest and established models = 0.514851 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 93 components and 0.514851 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.221460Jy  sigma=0.001237
! Fit after  self-cal, rms=0.221456Jy  sigma=0.001237
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.81% of the data.
!  The x-axis pixel size should ideally be below 0.1535 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1851 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.000155594 Jy
! Component: 100  -  total flux cleaned = 0.000176759 Jy
! Component: 150  -  total flux cleaned = 0.00016084 Jy
! Component: 200  -  total flux cleaned = 0.000174108 Jy
! Total flux subtracted in 200 components = 0.000174108 Jy
! Clean residual min=-0.001851 max=0.002802 Jy/beam
! Clean residual mean=0.000260 rms=0.000745 Jy/beam
! Combined flux in latest and established models = 0.515025 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 95 components and 0.515025 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.221457Jy  sigma=0.001237
! Fit after  self-cal, rms=0.221456Jy  sigma=0.001237
! Inverting map 
! Your choice of large map pixels excluded 3.81% of the data.
!  The x-axis pixel size should ideally be below 0.1535 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1851 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.81% of the data.
!  The x-axis pixel size should ideally be below 0.1535 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1851 milli-arcsec
! Estimated beam: bmin=0.6621 mas, bmaj=1.608 mas, bpa=-3.808 degrees
! Estimated noise=569.137 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6621 x 1.608 at -3.808 degrees (North through East)
! Clean map  min=-0.0018923  max=0.41551 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
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.81% of the data.
!  The x-axis pixel size should ideally be below 0.1535 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1851 milli-arcsec
! Estimated beam: bmin=0.5469 mas, bmaj=1.355 mas, bpa=-2.732 degrees
! Estimated noise=794.343 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.316435 Jy
! Component: 100  -  total flux cleaned = 0.39372 Jy
! Component: 150  -  total flux cleaned = 0.429441 Jy
! Component: 200  -  total flux cleaned = 0.448852 Jy
! Total flux subtracted in 200 components = 0.448852 Jy
! Clean residual min=-0.004784 max=0.009783 Jy/beam
! Clean residual mean=0.000155 rms=0.001434 Jy/beam
! Combined flux in latest and established models = 0.448852 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 0.448852 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 3.81% of the data.
!  The x-axis pixel size should ideally be below 0.1535 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1851 milli-arcsec
! Estimated beam: bmin=0.6621 mas, bmaj=1.608 mas, bpa=-3.808 degrees
! Estimated noise=569.137 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.0173447 Jy
! Component: 100  -  total flux cleaned = 0.0279161 Jy
! Component: 150  -  total flux cleaned = 0.0352805 Jy
! Component: 200  -  total flux cleaned = 0.0409794 Jy
! Total flux subtracted in 200 components = 0.0409794 Jy
! Clean residual min=-0.002514 max=0.003568 Jy/beam
! Clean residual mean=0.000493 rms=0.000898 Jy/beam
! Combined flux in latest and established models = 0.489832 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 37 components and 0.489832 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.81% of the data.
!  The x-axis pixel size should ideally be below 0.1535 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1851 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.81% of the data.
!  The x-axis pixel size should ideally be below 0.1535 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1851 milli-arcsec
! Estimated beam: bmin=2.087 mas, bmaj=2.885 mas, bpa=3.12 degrees
! Estimated noise=778.576 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0086273 Jy
! Component: 100  -  total flux cleaned = 0.0136286 Jy
! Component: 150  -  total flux cleaned = 0.0169455 Jy
! Component: 200  -  total flux cleaned = 0.0192292 Jy
! Total flux subtracted in 200 components = 0.0192292 Jy
! Clean residual min=-0.001681 max=0.003027 Jy/beam
! Clean residual mean=0.000534 rms=0.000798 Jy/beam
! Combined flux in latest and established models = 0.509061 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.0016185 Jy
! Component: 100  -  total flux cleaned = 0.00278206 Jy
! Component: 150  -  total flux cleaned = 0.00362499 Jy
! Component: 200  -  total flux cleaned = 0.00423726 Jy
! Total flux subtracted in 200 components = 0.00423726 Jy
! Clean residual min=-0.001772 max=0.002869 Jy/beam
! Clean residual mean=0.000344 rms=0.000745 Jy/beam
! Combined flux in latest and established models = 0.513298 Jy
! Adding 77 model components to the UV plane model.
! The established model now contains 101 components and 0.513298 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.81% of the data.
!  The x-axis pixel size should ideally be below 0.1535 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1851 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 3.81% of the data.
!  The x-axis pixel size should ideally be below 0.1535 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1851 milli-arcsec
! Estimated beam: bmin=0.6621 mas, bmaj=1.608 mas, bpa=-3.808 degrees
! Estimated noise=569.137 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000328114 Jy
! Component: 100  -  total flux cleaned = -0.000331585 Jy
! Component: 150  -  total flux cleaned = -0.000142749 Jy
! Component: 200  -  total flux cleaned = 2.52905e-05 Jy
! Total flux subtracted in 200 components = 2.52905e-05 Jy
! Clean residual min=-0.002362 max=0.002356 Jy/beam
! Clean residual mean=0.000115 rms=0.000623 Jy/beam
! Combined flux in latest and established models = 0.513323 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 116 components and 0.513323 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.221564Jy  sigma=0.001238
! Fit after  self-cal, rms=0.221476Jy  sigma=0.001238
wmodel J0914+0245_X_2001_07_05_pus_map.mod
! Writing 116 model components to file: J0914+0245_X_2001_07_05_pus_map.mod
wobs J0914+0245_X_2001_07_05_pus_uvs.fits
! Writing UV FITS file: J0914+0245_X_2001_07_05_pus_uvs.fits
wwins J0914+0245_X_2001_07_05_pus_map.win
! wwins: Wrote 3 windows to J0914+0245_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.81% of the data.
!  The x-axis pixel size should ideally be below 0.1535 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1851 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000398311 Jy
! Component: 100  -  total flux cleaned = 0.000876364 Jy
! Component: 150  -  total flux cleaned = 0.00129129 Jy
! Component: 200  -  total flux cleaned = 0.00154366 Jy
! Component: 250  -  total flux cleaned = 0.00168335 Jy
! Component: 300  -  total flux cleaned = 0.00185499 Jy
! Component: 350  -  total flux cleaned = 0.00215574 Jy
! Component: 400  -  total flux cleaned = 0.00241666 Jy
! Component: 450  -  total flux cleaned = 0.00267246 Jy
! Component: 500  -  total flux cleaned = 0.00289224 Jy
! Component: 550  -  total flux cleaned = 0.00298509 Jy
! Component: 600  -  total flux cleaned = 0.00316767 Jy
! Component: 650  -  total flux cleaned = 0.00331725 Jy
! Component: 700  -  total flux cleaned = 0.00349392 Jy
! Component: 750  -  total flux cleaned = 0.00361016 Jy
! Component: 800  -  total flux cleaned = 0.00375334 Jy
! Component: 850  -  total flux cleaned = 0.00386645 Jy
! Component: 900  -  total flux cleaned = 0.00400612 Jy
! Component: 950  -  total flux cleaned = 0.00406144 Jy
! Component: 1000  -  total flux cleaned = 0.00419797 Jy
! Total flux subtracted in 1024 components = 0.00427898 Jy
! Clean residual min=-0.001392 max=0.001348 Jy/beam
! Clean residual mean=0.000069 rms=0.000515 Jy/beam
! Combined flux in latest and established models = 0.517602 Jy
keep
! Adding 78 model components to the UV plane model.
! The established model now contains 194 components and 0.517602 Jy
wmap "J0914+0245_X_2001_07_05_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 3.81% of the data.
!  The x-axis pixel size should ideally be below 0.1535 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1851 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6621 x 1.608 at -3.808 degrees (North through East)
! Clean map  min=-0.0020425  max=0.41599 Jy/beam
! Writing clean map to FITS file: J0914+0245_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.415994 
invert
! Inverting map 
! Your choice of large map pixels excluded 3.81% of the data.
!  The x-axis pixel size should ideally be below 0.1535 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1851 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000515614 
device "J0914+0245_X_2001_07_05_pus\_map.eps/VPS"
! Attempting to open device: 'J0914+0245_X_2001_07_05_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.371843 0.371843 0.743686 1.48737 2.97474 5.94949 11.899 23.7979 47.5959 95.1918
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0015 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.415 
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.6621 x 1.608 at -3.808 degrees (North through East)
! Clean map  min=-0.0020425  max=0.41599 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0914+0245_X_2001_07_05_pus\_map.gif/vgif"
! Attempting to open device: 'J0914+0245_X_2001_07_05_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0914+0245_X_2001_07_05_pus_uvs.log closed on Wed Jul  4 20:21:00 2007