! Started logfile: J0501-0159_X_2003_09_17_pus_uvs.log on Sat May 12 21:00:57 2007
obs J0501-0159_X_2003_09_17_pus_uva.fits
! Reading UV FITS file: J0501-0159_X_2003_09_17_pus_uva.fits
! AN table 1: 301 integrations on 120 of 120 possible baselines.
! AN table 2: 77 integrations on 120 of 120 possible baselines.
! AN table 3: 202 integrations on 120 of 120 possible baselines.
! AN table 4: 167 integrations on 120 of 120 possible baselines.
! AN table 5: 13 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.100033 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0501-0159
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! 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 1485 lines of history.
! 
! Reading 36492 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
float field_size
field_size = 256
float field_cell
field_cell = 0.2
float 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 3611 telescope corrections were flagged in sub-array 1.
!  A total of 807 telescope corrections were flagged in sub-array 2.
!  A total of 2482 telescope corrections were flagged in sub-array 3.
!  A total of 1811 telescope corrections were flagged in sub-array 4.
!  A total of 164 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 3611 telescope corrections were flagged in sub-array 1.
!  A total of 807 telescope corrections were flagged in sub-array 2.
!  A total of 2481 telescope corrections were flagged in sub-array 3.
!  A total of 1811 telescope corrections were flagged in sub-array 4.
!  A total of 164 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 3611 telescope corrections were flagged in sub-array 1.
!  A total of 807 telescope corrections were flagged in sub-array 2.
!  A total of 2481 telescope corrections were flagged in sub-array 3.
!  A total of 1811 telescope corrections were flagged in sub-array 4.
!  A total of 164 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 3611 telescope corrections were flagged in sub-array 1.
!  A total of 807 telescope corrections were flagged in sub-array 2.
!  A total of 2481 telescope corrections were flagged in sub-array 3.
!  A total of 1811 telescope corrections were flagged in sub-array 4.
!  A total of 164 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.875446Jy  sigma=0.007955
! Fit after  self-cal, rms=0.289559Jy  sigma=0.002336
! 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 4.29% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! Estimated beam: bmin=0.5643 mas, bmaj=1.63 mas, bpa=0.7427 degrees
! Estimated noise=828.176 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.624104 Jy
! Component: 100  -  total flux cleaned = 0.764276 Jy
! Total flux subtracted in 100 components = 0.764276 Jy
! Clean residual min=-0.016444 max=0.049282 Jy/beam
! Clean residual mean=0.000375 rms=0.005983 Jy/beam
! Combined flux in latest and established models = 0.764276 Jy
! Performing phase self-cal
! Adding 3 model components to the UV plane model.
! The established model now contains 3 components and 0.764276 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222420Jy  sigma=0.001729
! Fit after  self-cal, rms=0.222362Jy  sigma=0.001729
! Inverting map 
! Your choice of large map pixels excluded 4.29% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0542335 Jy
! Component: 100  -  total flux cleaned = 0.0829512 Jy
! Total flux subtracted in 100 components = 0.0829512 Jy
! Clean residual min=-0.015041 max=0.020552 Jy/beam
! Clean residual mean=0.000313 rms=0.004268 Jy/beam
! Combined flux in latest and established models = 0.847227 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 13 components and 0.847227 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.204667Jy  sigma=0.001491
! Fit after  self-cal, rms=0.204421Jy  sigma=0.001491
! Inverting map 
! Your choice of large map pixels excluded 4.29% of the data.
!  The x-axis pixel size should ideally be below 0.1536 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 4.29% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! Estimated beam: bmin=0.6881 mas, bmaj=2.143 mas, bpa=1.292 degrees
! Estimated noise=427.211 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.0277626 Jy
! Component: 100  -  total flux cleaned = 0.0400983 Jy
! Component: 150  -  total flux cleaned = 0.0459178 Jy
! Component: 200  -  total flux cleaned = 0.0474974 Jy
! Total flux subtracted in 200 components = 0.0474974 Jy
! Clean residual min=-0.015234 max=0.033903 Jy/beam
! Clean residual mean=0.002058 rms=0.006083 Jy/beam
! Combined flux in latest and established models = 0.894725 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 27 components and 0.894725 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.201699Jy  sigma=0.001449
! Fit after  self-cal, rms=0.201556Jy  sigma=0.001449
! Inverting map 
! Your choice of large map pixels excluded 4.29% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! Added new window around map position (-4, 3.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0307701 Jy
! Component: 100  -  total flux cleaned = 0.0452523 Jy
! Component: 150  -  total flux cleaned = 0.0524368 Jy
! Component: 200  -  total flux cleaned = 0.0537018 Jy
! Total flux subtracted in 200 components = 0.0537018 Jy
! Clean residual min=-0.014267 max=0.012292 Jy/beam
! Clean residual mean=0.000753 rms=0.003194 Jy/beam
! Combined flux in latest and established models = 0.948426 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 51 components and 0.948426 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.197745Jy  sigma=0.001396
! Fit after  self-cal, rms=0.197189Jy  sigma=0.001389
! Inverting map 
! Your choice of large map pixels excluded 4.29% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 243 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.01     GC        0.94     HN        1.00*    KP        1.01     
!   LA        0.97     MK        0.97     NL        1.02     NY        1.19     
!   ON        1.04     OV        0.99     PT        0.98     SC        0.95     
!   TS        0.99     KK        1.04     WZ        1.06     WF        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.00     GC        1.00*    HN        0.87     KP        1.02     
!   LA        0.97     MK        1.00*    NL        0.96     NY        1.00*    
!   ON        1.00*    OV        1.01     PT        0.97     SC        0.93     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.06     
! 
!  A total of 252 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.01     GC        0.96     HN        1.00*    KP        1.01     
!   LA        0.98     MK        0.95     NL        1.08     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.99     SC        1.00*    
!   TS        0.90     KK        1.07     WZ        1.00*    WF        1.00*    
! 
!  A total of 195 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.02     GC        1.04     HN        0.97     KP        1.02     
!   LA        0.99     MK        0.97     NL        1.04     NY        1.00*    
!   ON        1.00*    OV        1.02     PT        0.98     SC        0.98     
!   TS        1.24     KK        1.01     WZ        1.00*    WF        1.13     
! 
!  Telescope amplitude corrections in sub-array 5:
!   FD        1.01     GC        1.00*    HN        1.00*    KP        1.00*    
!   LA        1.00     MK        1.00*    NL        1.04     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        0.92     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 243 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.01     GC        0.98     HN        1.00*    KP        0.96     
!   LA        0.98     MK        0.99     NL        1.02     NY        1.21     
!   ON        1.01     OV        0.99     PT        1.02     SC        0.90     
!   TS        0.97     KK        1.05     WZ        1.07     WF        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.99     GC        1.00*    HN        0.87     KP        0.97     
!   LA        0.98     MK        1.00*    NL        0.96     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        1.01     SC        0.88     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        0.99     
! 
!  A total of 252 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.02     GC        1.01     HN        1.00*    KP        0.95     
!   LA        0.98     MK        0.97     NL        1.06     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        1.02     SC        1.00*    
!   TS        0.90     KK        1.03     WZ        1.00*    WF        1.00*    
! 
!  A total of 195 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.02     GC        1.08     HN        0.98     KP        0.97     
!   LA        0.99     MK        0.98     NL        1.03     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        1.03     SC        0.94     
!   TS        1.26     KK        1.01     WZ        1.00*    WF        1.04     
! 
!  Telescope amplitude corrections in sub-array 5:
!   FD        1.00     GC        1.00*    HN        1.00*    KP        1.00*    
!   LA        0.95     MK        1.00*    NL        1.09     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        0.90     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 243 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00     GC        0.92     HN        1.00*    KP        0.95     
!   LA        0.98     MK        0.98     NL        1.00     NY        1.24     
!   ON        1.09     OV        1.02     PT        1.02     SC        0.91     
!   TS        0.97     KK        0.98     WZ        1.05     WF        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.98     GC        1.00*    HN        0.87     KP        0.96     
!   LA        0.98     MK        1.00*    NL        0.92     NY        1.00*    
!   ON        1.00*    OV        1.03     PT        1.01     SC        0.90     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.08     
! 
!  A total of 252 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.99     GC        0.95     HN        1.00*    KP        0.94     
!   LA        0.99     MK        0.96     NL        1.03     NY        1.00*    
!   ON        1.00*    OV        1.03     PT        1.02     SC        1.00*    
!   TS        0.88     KK        1.00     WZ        1.00*    WF        1.00*    
! 
!  A total of 195 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00     GC        1.00     HN        0.97     KP        0.95     
!   LA        0.98     MK        0.99     NL        1.02     NY        1.00*    
!   ON        1.00*    OV        1.04     PT        1.03     SC        0.97     
!   TS        1.27     KK        0.99     WZ        1.00*    WF        1.13     
! 
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.98     GC        1.00*    HN        1.00*    KP        1.00*    
!   LA        0.97     MK        1.00*    NL        1.01     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        0.91     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 243 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.01     GC        0.91     HN        1.00*    KP        0.96     
!   LA        0.96     MK        1.01     NL        1.01     NY        1.24     
!   ON        1.02     OV        1.00     PT        1.02     SC        0.95     
!   TS        0.96     KK        1.02     WZ        1.08     WF        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.00     GC        1.00*    HN        0.90     KP        0.96     
!   LA        0.96     MK        1.00*    NL        0.95     NY        1.00*    
!   ON        1.00*    OV        1.02     PT        1.01     SC        0.92     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        0.98     
! 
!  A total of 252 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.01     GC        0.95     HN        1.00*    KP        0.95     
!   LA        0.97     MK        0.99     NL        1.05     NY        1.00*    
!   ON        1.00*    OV        1.03     PT        1.02     SC        1.00*    
!   TS        0.89     KK        0.99     WZ        1.00*    WF        1.00*    
! 
!  A total of 195 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.01     GC        1.03     HN        1.00     KP        0.96     
!   LA        0.98     MK        1.00     NL        1.03     NY        1.00*    
!   ON        1.00*    OV        1.02     PT        1.02     SC        0.99     
!   TS        1.25     KK        1.00     WZ        1.00*    WF        1.00     
! 
!  Telescope amplitude corrections in sub-array 5:
!   FD        1.00     GC        1.00*    HN        1.00*    KP        1.00*    
!   LA        0.97     MK        1.00*    NL        0.99     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        0.97     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Fit before self-cal, rms=0.197189Jy  sigma=0.001389
! Fit after  self-cal, rms=0.188525Jy  sigma=0.001278
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 4.57% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! Estimated beam: bmin=0.7114 mas, bmaj=2.146 mas, bpa=0.6092 degrees
! Estimated noise=435.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)
! Added new window around map position (-1.8, 2.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00795739 Jy
! Component: 100  -  total flux cleaned = 0.00895932 Jy
! Component: 150  -  total flux cleaned = 0.00935453 Jy
! Component: 200  -  total flux cleaned = 0.00952892 Jy
! Total flux subtracted in 200 components = 0.00952892 Jy
! Clean residual min=-0.006981 max=0.005251 Jy/beam
! Clean residual mean=0.000472 rms=0.001439 Jy/beam
! Combined flux in latest and established models = 0.957955 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 66 components and 0.957955 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.187800Jy  sigma=0.001270
! Fit after  self-cal, rms=0.187958Jy  sigma=0.001269
! Inverting map 
! Your choice of large map pixels excluded 4.57% of the data.
!  The x-axis pixel size should ideally be below 0.1536 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.187958Jy  sigma=0.001269
! Fit after  self-cal, rms=0.186137Jy  sigma=0.001261
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.57% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! Estimated beam: bmin=0.7131 mas, bmaj=2.148 mas, bpa=0.5512 degrees
! Estimated noise=435.058 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00295676 Jy
! Component: 100  -  total flux cleaned = 0.00384803 Jy
! Component: 150  -  total flux cleaned = 0.00452666 Jy
! Component: 200  -  total flux cleaned = 0.00497095 Jy
! Total flux subtracted in 200 components = 0.00497095 Jy
! Clean residual min=-0.004477 max=0.004899 Jy/beam
! Clean residual mean=0.000469 rms=0.001161 Jy/beam
! Combined flux in latest and established models = 0.962926 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 80 components and 0.962926 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.185863Jy  sigma=0.001257
! Fit after  self-cal, rms=0.185731Jy  sigma=0.001257
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.57% of the data.
!  The x-axis pixel size should ideally be below 0.1536 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.00165356 Jy
! Component: 100  -  total flux cleaned = 0.00194935 Jy
! Component: 150  -  total flux cleaned = 0.00212728 Jy
! Component: 200  -  total flux cleaned = 0.00221103 Jy
! Total flux subtracted in 200 components = 0.00221103 Jy
! Clean residual min=-0.004493 max=0.004593 Jy/beam
! Clean residual mean=0.000422 rms=0.001128 Jy/beam
! Combined flux in latest and established models = 0.965137 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 88 components and 0.965137 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.185621Jy  sigma=0.001256
! Fit after  self-cal, rms=0.185618Jy  sigma=0.001256
! Inverting map 
! Your choice of large map pixels excluded 4.57% of the data.
!  The x-axis pixel size should ideally be below 0.1536 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.185618Jy  sigma=0.001256
! Fit after  self-cal, rms=0.185197Jy  sigma=0.001254
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.57% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! Estimated beam: bmin=0.7144 mas, bmaj=2.148 mas, bpa=0.5601 degrees
! Estimated noise=434.599 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000780512 Jy
! Component: 100  -  total flux cleaned = 0.00142885 Jy
! Component: 150  -  total flux cleaned = 0.00207014 Jy
! Component: 200  -  total flux cleaned = 0.00239461 Jy
! Total flux subtracted in 200 components = 0.00239461 Jy
! Clean residual min=-0.003030 max=0.004174 Jy/beam
! Clean residual mean=0.000415 rms=0.000997 Jy/beam
! Combined flux in latest and established models = 0.967532 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 98 components and 0.967532 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.185071Jy  sigma=0.001252
! Fit after  self-cal, rms=0.185058Jy  sigma=0.001252
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.57% of the data.
!  The x-axis pixel size should ideally be below 0.1536 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.000936504 Jy
! Component: 100  -  total flux cleaned = 0.00116695 Jy
! Component: 150  -  total flux cleaned = 0.00137971 Jy
! Component: 200  -  total flux cleaned = 0.00151081 Jy
! Total flux subtracted in 200 components = 0.00151081 Jy
! Clean residual min=-0.002924 max=0.004039 Jy/beam
! Clean residual mean=0.000383 rms=0.000971 Jy/beam
! Combined flux in latest and established models = 0.969042 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 104 components and 0.969042 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.184988Jy  sigma=0.001252
! Fit after  self-cal, rms=0.184986Jy  sigma=0.001252
! Inverting map 
! Your choice of large map pixels excluded 4.57% of the data.
!  The x-axis pixel size should ideally be below 0.1536 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.184986Jy  sigma=0.001252
! Fit after  self-cal, rms=0.184812Jy  sigma=0.001251
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.57% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! Estimated beam: bmin=2.794 mas, bmaj=4.447 mas, bpa=0.5873 degrees
! Estimated noise=554.311 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00160431 Jy
! Component: 100  -  total flux cleaned = 0.00239408 Jy
! Component: 150  -  total flux cleaned = 0.002791 Jy
! Component: 200  -  total flux cleaned = 0.00296303 Jy
! Total flux subtracted in 200 components = 0.00296303 Jy
! Clean residual min=-0.002552 max=0.005293 Jy/beam
! Clean residual mean=0.000745 rms=0.001465 Jy/beam
! Combined flux in latest and established models = 0.972006 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 120 components and 0.972006 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.184786Jy  sigma=0.001251
! Fit after  self-cal, rms=0.184768Jy  sigma=0.001251
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.57% of the data.
!  The x-axis pixel size should ideally be below 0.1536 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.000634694 Jy
! Component: 100  -  total flux cleaned = 0.000801326 Jy
! Component: 150  -  total flux cleaned = 0.00090435 Jy
! Component: 200  -  total flux cleaned = 0.00100135 Jy
! Total flux subtracted in 200 components = 0.00100135 Jy
! Clean residual min=-0.002493 max=0.005052 Jy/beam
! Clean residual mean=0.000698 rms=0.001421 Jy/beam
! Combined flux in latest and established models = 0.973007 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 126 components and 0.973007 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.184769Jy  sigma=0.001251
! Fit after  self-cal, rms=0.184770Jy  sigma=0.001251
! Inverting map 
! Your choice of large map pixels excluded 4.57% of the data.
!  The x-axis pixel size should ideally be below 0.1536 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 4.57% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! Estimated beam: bmin=0.7155 mas, bmaj=2.147 mas, bpa=0.5619 degrees
! Estimated noise=434.363 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7155 x 2.147 at 0.5619 degrees (North through East)
! Clean map  min=-0.002644  max=0.81649 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.184770Jy  sigma=0.001251
! Fit after  self-cal, rms=0.175701Jy  sigma=0.001124
! Inverting map and beam 
! Your choice of large map pixels excluded 4.57% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! Estimated beam: bmin=0.7167 mas, bmaj=2.147 mas, bpa=0.5569 degrees
! Estimated noise=433.927 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000825632 Jy
! Component: 100  -  total flux cleaned = -0.000913146 Jy
! Component: 150  -  total flux cleaned = -0.000847169 Jy
! Component: 200  -  total flux cleaned = -0.00078528 Jy
! Total flux subtracted in 200 components = -0.000785279 Jy
! Clean residual min=-0.002563 max=0.003663 Jy/beam
! Clean residual mean=0.000375 rms=0.000861 Jy/beam
! Combined flux in latest and established models = 0.972222 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 137 components and 0.972221 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.175612Jy  sigma=0.001123
! Fit after  self-cal, rms=0.175619Jy  sigma=0.001123
! Inverting map 
! Your choice of large map pixels excluded 4.57% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000441832 Jy
! Component: 100  -  total flux cleaned = 0.000501642 Jy
! Component: 150  -  total flux cleaned = 0.000613073 Jy
! Component: 200  -  total flux cleaned = 0.000666295 Jy
! Total flux subtracted in 200 components = 0.000666295 Jy
! Clean residual min=-0.002418 max=0.003541 Jy/beam
! Clean residual mean=0.000361 rms=0.000839 Jy/beam
! Combined flux in latest and established models = 0.972888 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 140 components and 0.972888 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.175574Jy  sigma=0.001123
! Fit after  self-cal, rms=0.175577Jy  sigma=0.001123
! Inverting map 
! Your choice of large map pixels excluded 4.57% of the data.
!  The x-axis pixel size should ideally be below 0.1536 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.175577Jy  sigma=0.001123
! Fit after  self-cal, rms=0.175484Jy  sigma=0.001123
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 4.57% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! Estimated beam: bmin=0.5772 mas, bmaj=1.626 mas, bpa=0.8605 degrees
! Estimated noise=833.142 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.621554 Jy
! Component: 100  -  total flux cleaned = 0.758238 Jy
! Component: 150  -  total flux cleaned = 0.803553 Jy
! Component: 200  -  total flux cleaned = 0.828858 Jy
! Total flux subtracted in 200 components = 0.828858 Jy
! Clean residual min=-0.007162 max=0.014275 Jy/beam
! Clean residual mean=0.000399 rms=0.002733 Jy/beam
! Combined flux in latest and established models = 0.828858 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 20 model components to the UV plane model.
! The established model now contains 20 components and 0.828858 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 4.57% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! Estimated beam: bmin=0.7179 mas, bmaj=2.147 mas, bpa=0.5554 degrees
! Estimated noise=433.802 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.0438177 Jy
! Component: 100  -  total flux cleaned = 0.0718757 Jy
! Component: 150  -  total flux cleaned = 0.0911584 Jy
! Component: 200  -  total flux cleaned = 0.104832 Jy
! Total flux subtracted in 200 components = 0.104832 Jy
! Clean residual min=-0.003552 max=0.007931 Jy/beam
! Clean residual mean=0.001208 rms=0.002341 Jy/beam
! Combined flux in latest and established models = 0.93369 Jy
! Adding 77 model components to the UV plane model.
! The established model now contains 84 components and 0.93369 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.57% of the data.
!  The x-axis pixel size should ideally be below 0.1536 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 4.57% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! Estimated beam: bmin=2.79 mas, bmaj=4.444 mas, bpa=0.6262 degrees
! Estimated noise=552.806 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0161007 Jy
! Component: 100  -  total flux cleaned = 0.0249776 Jy
! Component: 150  -  total flux cleaned = 0.0306119 Jy
! Component: 200  -  total flux cleaned = 0.0344103 Jy
! Total flux subtracted in 200 components = 0.0344103 Jy
! Clean residual min=-0.002683 max=0.005074 Jy/beam
! Clean residual mean=0.000979 rms=0.001385 Jy/beam
! Combined flux in latest and established models = 0.9681 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.00259728 Jy
! Component: 100  -  total flux cleaned = 0.00438959 Jy
! Component: 150  -  total flux cleaned = 0.00563448 Jy
! Component: 200  -  total flux cleaned = 0.00641161 Jy
! Total flux subtracted in 200 components = 0.00641161 Jy
! Clean residual min=-0.002297 max=0.004361 Jy/beam
! Clean residual mean=0.000687 rms=0.001225 Jy/beam
! Combined flux in latest and established models = 0.974512 Jy
! Adding 75 model components to the UV plane model.
! The established model now contains 144 components and 0.974512 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.57% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 4.57% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! Estimated beam: bmin=0.7179 mas, bmaj=2.147 mas, bpa=0.5554 degrees
! Estimated noise=433.802 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000463827 Jy
! Component: 100  -  total flux cleaned = 0.000547437 Jy
! Component: 150  -  total flux cleaned = 0.000472019 Jy
! Component: 200  -  total flux cleaned = 0.000474448 Jy
! Total flux subtracted in 200 components = 0.000474448 Jy
! Clean residual min=-0.001935 max=0.003136 Jy/beam
! Clean residual mean=0.000313 rms=0.000787 Jy/beam
! Combined flux in latest and established models = 0.974986 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 160 components and 0.974986 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.175485Jy  sigma=0.001122
! Fit after  self-cal, rms=0.175456Jy  sigma=0.001122
wmodel J0501-0159_X_2003_09_17_pus_map.mod
! Writing 160 model components to file: J0501-0159_X_2003_09_17_pus_map.mod
wobs J0501-0159_X_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J0501-0159_X_2003_09_17_pus_uvs.fits
wwins J0501-0159_X_2003_09_17_pus_map.win
! wwins: Wrote 3 windows to J0501-0159_X_2003_09_17_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! Your choice of large map pixels excluded 4.57% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00132975 Jy
! Component: 100  -  total flux cleaned = 0.00247435 Jy
! Component: 150  -  total flux cleaned = 0.00352328 Jy
! Component: 200  -  total flux cleaned = 0.00434994 Jy
! Component: 250  -  total flux cleaned = 0.0050975 Jy
! Component: 300  -  total flux cleaned = 0.00588453 Jy
! Component: 350  -  total flux cleaned = 0.00661006 Jy
! Component: 400  -  total flux cleaned = 0.00721292 Jy
! Component: 450  -  total flux cleaned = 0.00779789 Jy
! Component: 500  -  total flux cleaned = 0.0083659 Jy
! Component: 550  -  total flux cleaned = 0.00894908 Jy
! Component: 600  -  total flux cleaned = 0.00945816 Jy
! Component: 650  -  total flux cleaned = 0.0100133 Jy
! Component: 700  -  total flux cleaned = 0.0104697 Jy
! Component: 750  -  total flux cleaned = 0.010805 Jy
! Component: 800  -  total flux cleaned = 0.0111063 Jy
! Component: 850  -  total flux cleaned = 0.0113752 Jy
! Component: 900  -  total flux cleaned = 0.0116656 Jy
! Component: 950  -  total flux cleaned = 0.0119249 Jy
! Component: 1000  -  total flux cleaned = 0.0121032 Jy
! Total flux subtracted in 1024 components = 0.012179 Jy
! Clean residual min=-0.001328 max=0.001594 Jy/beam
! Clean residual mean=0.000104 rms=0.000510 Jy/beam
! Combined flux in latest and established models = 0.987165 Jy
keep
! Adding 61 model components to the UV plane model.
! The established model now contains 221 components and 0.987165 Jy
wmap "J0501-0159_X_2003_09_17_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 4.57% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7179 x 2.147 at 0.5554 degrees (North through East)
! Clean map  min=-0.0016702  max=0.81484 Jy/beam
! Writing clean map to FITS file: J0501-0159_X_2003_09_17_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.814835 
invert
! Inverting map 
! Your choice of large map pixels excluded 4.57% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000509705 
device "J0501-0159_X_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J0501-0159_X_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.187659 0.187659 0.375319 0.750637 1.50127 3.00255 6.0051 12.0102 24.0204 48.0408 96.0816
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0015 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.814 
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.7179 x 2.147 at 0.5554 degrees (North through East)
! Clean map  min=-0.0016702  max=0.81484 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0501-0159_X_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J0501-0159_X_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0501-0159_X_2003_09_17_pus_uvs.log closed on Sat May 12 21:03:07 2007