! Started logfile: J0501-0159_X_2001_07_05_pus_uvs.log on Wed Jul  4 19:59:29 2007
obs J0501-0159_X_2001_07_05_pus_uva.fits
! Reading UV FITS file: J0501-0159_X_2001_07_05_pus_uva.fits
! AN table 1: 21 integrations on 171 of 171 possible baselines.
! AN table 2: 64 integrations on 171 of 171 possible baselines.
! AN table 3: 145 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.0808543 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.
! 
! 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 12720 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 261 telescope corrections were flagged in sub-array 1.
!  A total of 907 telescope corrections were flagged in sub-array 2.
!  A total of 2350 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 261 telescope corrections were flagged in sub-array 1.
!  A total of 907 telescope corrections were flagged in sub-array 2.
!  A total of 2350 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 261 telescope corrections were flagged in sub-array 1.
!  A total of 907 telescope corrections were flagged in sub-array 2.
!  A total of 2350 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 261 telescope corrections were flagged in sub-array 1.
!  A total of 907 telescope corrections were flagged in sub-array 2.
!  A total of 2350 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.803562Jy  sigma=0.006869
! Fit after  self-cal, rms=0.433111Jy  sigma=0.003457
! 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.65% of the data.
!  The x-axis pixel size should ideally be below 0.1663 milli-arcsec
! Estimated beam: bmin=0.542 mas, bmaj=1.37 mas, bpa=-1.449 degrees
! Estimated noise=1186.46 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.481765 Jy
! Component: 100  -  total flux cleaned = 0.586835 Jy
! Total flux subtracted in 100 components = 0.586835 Jy
! Clean residual min=-0.011046 max=0.029448 Jy/beam
! Clean residual mean=0.001236 rms=0.004282 Jy/beam
! Combined flux in latest and established models = 0.586835 Jy
! Performing phase self-cal
! Adding 2 model components to the UV plane model.
! The established model now contains 2 components and 0.586835 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.216844Jy  sigma=0.001406
! Fit after  self-cal, rms=0.216821Jy  sigma=0.001406
! Inverting map 
! Your choice of large map pixels excluded 4.65% of the data.
!  The x-axis pixel size should ideally be below 0.1663 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0263879 Jy
! Component: 100  -  total flux cleaned = 0.039936 Jy
! Total flux subtracted in 100 components = 0.039936 Jy
! Clean residual min=-0.010134 max=0.018976 Jy/beam
! Clean residual mean=0.001038 rms=0.003561 Jy/beam
! Combined flux in latest and established models = 0.626771 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 14 components and 0.626771 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.212141Jy  sigma=0.001347
! Fit after  self-cal, rms=0.212190Jy  sigma=0.001347
! Inverting map 
! Your choice of large map pixels excluded 4.65% of the data.
!  The x-axis pixel size should ideally be below 0.1663 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.65% of the data.
!  The x-axis pixel size should ideally be below 0.1663 milli-arcsec
! Estimated beam: bmin=0.6157 mas, bmaj=1.711 mas, bpa=-3.339 degrees
! Estimated noise=783.286 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.020348 Jy
! Component: 100  -  total flux cleaned = 0.0319383 Jy
! Component: 150  -  total flux cleaned = 0.0387134 Jy
! Component: 200  -  total flux cleaned = 0.0426005 Jy
! Total flux subtracted in 200 components = 0.0426005 Jy
! Clean residual min=-0.011071 max=0.032083 Jy/beam
! Clean residual mean=0.002974 rms=0.005559 Jy/beam
! Combined flux in latest and established models = 0.669371 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 21 components and 0.669371 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.210542Jy  sigma=0.001323
! Fit after  self-cal, rms=0.210635Jy  sigma=0.001323
! Inverting map 
! Your choice of large map pixels excluded 4.65% of the data.
!  The x-axis pixel size should ideally be below 0.1663 milli-arcsec
! Added new window around map position (-3.8, 3.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0303935 Jy
! Component: 100  -  total flux cleaned = 0.0478915 Jy
! Component: 150  -  total flux cleaned = 0.0592578 Jy
! Component: 200  -  total flux cleaned = 0.0673077 Jy
! Total flux subtracted in 200 components = 0.0673077 Jy
! Clean residual min=-0.008333 max=0.018375 Jy/beam
! Clean residual mean=0.001665 rms=0.003258 Jy/beam
! Combined flux in latest and established models = 0.736679 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 52 components and 0.736679 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206563Jy  sigma=0.001268
! Fit after  self-cal, rms=0.206157Jy  sigma=0.001264
! Inverting map 
! Your choice of large map pixels excluded 4.65% of the data.
!  The x-axis pixel size should ideally be below 0.1663 milli-arcsec
! Added new window around map position (-1.4, 1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0179228 Jy
! Component: 100  -  total flux cleaned = 0.0238211 Jy
! Component: 150  -  total flux cleaned = 0.0270478 Jy
! Component: 200  -  total flux cleaned = 0.0286803 Jy
! Total flux subtracted in 200 components = 0.0286803 Jy
! Clean residual min=-0.006654 max=0.010486 Jy/beam
! Clean residual mean=0.001136 rms=0.002395 Jy/beam
! Combined flux in latest and established models = 0.765359 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 78 components and 0.76536 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.204626Jy  sigma=0.001245
! Fit after  self-cal, rms=0.204650Jy  sigma=0.001244
! Inverting map 
! Your choice of large map pixels excluded 4.65% of the data.
!  The x-axis pixel size should ideally be below 0.1663 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.02     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        1.00*    KP        1.14     
!   LA        0.97     MC        1.00*    MK        0.99     NL        0.97     
!   NY        1.00*    OV        1.01     PT        1.00     SC        1.03     
!   TS        1.00*    WF        1.07     WZ        1.00*    
! 
!  A total of 99 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.07     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.94     KP        0.98     
!   LA        0.99     MC        1.00*    MK        0.97     NL        1.09     
!   NY        1.00*    OV        1.00     PT        0.99     SC        1.00*    
!   TS        0.95     WF        1.00*    WZ        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.04     GC        1.00*    GG        1.00*    
!   HH        0.96     HN        1.01     KK        1.00*    KP        1.00*    
!   LA        1.03     MC        1.01     MK        1.00*    NL        1.02     
!   NY        1.00*    OV        1.00*    PT        1.02     SC        1.02     
!   TS        1.00*    WF        1.01     WZ        0.94     
! 
! 
! Correcting IF 2.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.99     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        1.00*    KP        1.24     
!   LA        0.97     MC        1.00*    MK        1.02     NL        0.94     
!   NY        1.00*    OV        1.02     PT        0.98     SC        0.99     
!   TS        1.00*    WF        1.02     WZ        1.00*    
! 
!  A total of 99 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.06     GC        0.95     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.95     KP        0.95     
!   LA        0.98     MC        1.00*    MK        0.99     NL        1.04     
!   NY        1.00*    OV        0.99     PT        0.96     SC        1.00*    
!   TS        0.96     WF        1.00*    WZ        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.03     GC        1.00*    GG        1.00*    
!   HH        1.06     HN        0.98     KK        1.00*    KP        1.00*    
!   LA        1.04     MC        1.02     MK        1.00*    NL        0.97     
!   NY        1.00*    OV        1.00*    PT        0.98     SC        0.98     
!   TS        1.00*    WF        1.00     WZ        0.94     
! 
! 
! Correcting IF 3.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        1.00     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        1.00*    KP        1.27     
!   LA        1.01     MC        1.00*    MK        1.02     NL        0.95     
!   NY        1.00*    OV        1.04     PT        0.97     SC        0.98     
!   TS        1.00*    WF        0.98     WZ        1.00*    
! 
!  A total of 99 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.03     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.91     KP        0.99     
!   LA        1.01     MC        1.00*    MK        0.99     NL        1.06     
!   NY        1.00*    OV        1.05     PT        0.98     SC        1.00*    
!   TS        0.93     WF        1.00*    WZ        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00     GC        1.00*    GG        1.00*    
!   HH        1.15     HN        1.00     KK        1.00*    KP        1.00*    
!   LA        1.05     MC        0.99     MK        1.00*    NL        1.00     
!   NY        1.00*    OV        1.00*    PT        1.04     SC        1.00     
!   TS        1.00*    WF        1.01     WZ        0.93     
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.98     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        0.92     KK        1.00*    KP        1.22     
!   LA        0.97     MC        1.00*    MK        1.04     NL        0.98     
!   NY        1.00*    OV        1.00     PT        1.02     SC        1.00     
!   TS        1.00*    WF        1.00     WZ        1.00*    
! 
!  A total of 99 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.01     GC        0.95     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.94     KP        0.97     
!   LA        0.97     MC        1.00*    MK        1.02     NL        1.08     
!   NY        1.00*    OV        1.01     PT        0.97     SC        1.00*    
!   TS        0.94     WF        1.00*    WZ        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00     GC        1.00*    GG        1.00*    
!   HH        1.28     HN        1.01     KK        1.00*    KP        1.00*    
!   LA        1.01     MC        1.01     MK        1.00*    NL        1.03     
!   NY        1.00*    OV        1.00*    PT        1.02     SC        1.03     
!   TS        1.00*    WF        1.00     WZ        0.94     
! 
! 
! Fit before self-cal, rms=0.204650Jy  sigma=0.001244
! Fit after  self-cal, rms=0.221458Jy  sigma=0.001219
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 4.88% of the data.
!  The x-axis pixel size should ideally be below 0.1663 milli-arcsec
! Estimated beam: bmin=0.6145 mas, bmaj=1.74 mas, bpa=-4.459 degrees
! Estimated noise=803.726 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.00887904 Jy
! Component: 100  -  total flux cleaned = 0.0147396 Jy
! Component: 150  -  total flux cleaned = 0.0185015 Jy
! Component: 200  -  total flux cleaned = 0.0193982 Jy
! Total flux subtracted in 200 components = 0.0193982 Jy
! Clean residual min=-0.004222 max=0.005812 Jy/beam
! Clean residual mean=0.000675 rms=0.001358 Jy/beam
! Combined flux in latest and established models = 0.784758 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 98 components and 0.784758 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.220971Jy  sigma=0.001214
! Fit after  self-cal, rms=0.221030Jy  sigma=0.001213
! Inverting map 
! Your choice of large map pixels excluded 4.88% of the data.
!  The x-axis pixel size should ideally be below 0.1663 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.221030Jy  sigma=0.001213
! Fit after  self-cal, rms=0.220849Jy  sigma=0.001213
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.88% of the data.
!  The x-axis pixel size should ideally be below 0.1663 milli-arcsec
! Estimated beam: bmin=0.614 mas, bmaj=1.735 mas, bpa=-4.429 degrees
! Estimated noise=804.58 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00523624 Jy
! Component: 100  -  total flux cleaned = 0.00796213 Jy
! Component: 150  -  total flux cleaned = 0.00884591 Jy
! Component: 200  -  total flux cleaned = 0.00940988 Jy
! Total flux subtracted in 200 components = 0.00940988 Jy
! Clean residual min=-0.003685 max=0.005358 Jy/beam
! Clean residual mean=0.000603 rms=0.001212 Jy/beam
! Combined flux in latest and established models = 0.794168 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 108 components and 0.794168 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.220664Jy  sigma=0.001211
! Fit after  self-cal, rms=0.220664Jy  sigma=0.001211
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.88% of the data.
!  The x-axis pixel size should ideally be below 0.1663 milli-arcsec
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (1.4, 4.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00442861 Jy
! Component: 100  -  total flux cleaned = 0.00491015 Jy
! Component: 150  -  total flux cleaned = 0.00512028 Jy
! Component: 200  -  total flux cleaned = 0.00531685 Jy
! Total flux subtracted in 200 components = 0.00531685 Jy
! Clean residual min=-0.003236 max=0.004296 Jy/beam
! Clean residual mean=0.000499 rms=0.001058 Jy/beam
! Combined flux in latest and established models = 0.799484 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 123 components and 0.799484 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.220490Jy  sigma=0.001209
! Fit after  self-cal, rms=0.220491Jy  sigma=0.001209
! Inverting map 
! Your choice of large map pixels excluded 4.88% of the data.
!  The x-axis pixel size should ideally be below 0.1663 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.220491Jy  sigma=0.001209
! Fit after  self-cal, rms=0.220755Jy  sigma=0.001208
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.88% of the data.
!  The x-axis pixel size should ideally be below 0.1663 milli-arcsec
! Estimated beam: bmin=0.6139 mas, bmaj=1.735 mas, bpa=-4.421 degrees
! Estimated noise=805.007 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00324247 Jy
! Component: 100  -  total flux cleaned = 0.00492975 Jy
! Component: 150  -  total flux cleaned = 0.00562461 Jy
! Component: 200  -  total flux cleaned = 0.00594593 Jy
! Total flux subtracted in 200 components = 0.00594593 Jy
! Clean residual min=-0.003207 max=0.004133 Jy/beam
! Clean residual mean=0.000471 rms=0.000995 Jy/beam
! Combined flux in latest and established models = 0.80543 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 125 components and 0.80543 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.220664Jy  sigma=0.001207
! Fit after  self-cal, rms=0.220670Jy  sigma=0.001207
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.88% of the data.
!  The x-axis pixel size should ideally be below 0.1663 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.00113267 Jy
! Component: 100  -  total flux cleaned = 0.00151472 Jy
! Component: 150  -  total flux cleaned = 0.00180074 Jy
! Component: 200  -  total flux cleaned = 0.00207379 Jy
! Total flux subtracted in 200 components = 0.00207379 Jy
! Clean residual min=-0.003052 max=0.004043 Jy/beam
! Clean residual mean=0.000430 rms=0.000959 Jy/beam
! Combined flux in latest and established models = 0.807504 Jy
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 137 components and 0.807504 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.220618Jy  sigma=0.001207
! Fit after  self-cal, rms=0.220623Jy  sigma=0.001207
! Inverting map 
! Your choice of large map pixels excluded 4.88% of the data.
!  The x-axis pixel size should ideally be below 0.1663 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.220623Jy  sigma=0.001207
! Fit after  self-cal, rms=0.220773Jy  sigma=0.001207
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.88% of the data.
!  The x-axis pixel size should ideally be below 0.1663 milli-arcsec
! Estimated beam: bmin=2.252 mas, bmaj=3.075 mas, bpa=0.3152 degrees
! Estimated noise=1107.26 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00364443 Jy
! Component: 100  -  total flux cleaned = 0.00594529 Jy
! Component: 150  -  total flux cleaned = 0.00694558 Jy
! Component: 200  -  total flux cleaned = 0.00734026 Jy
! Total flux subtracted in 200 components = 0.00734026 Jy
! Clean residual min=-0.002955 max=0.004665 Jy/beam
! Clean residual mean=0.000869 rms=0.001342 Jy/beam
! Combined flux in latest and established models = 0.814844 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 153 components and 0.814844 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.220772Jy  sigma=0.001207
! Fit after  self-cal, rms=0.220767Jy  sigma=0.001207
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.88% of the data.
!  The x-axis pixel size should ideally be below 0.1663 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.000950861 Jy
! Component: 100  -  total flux cleaned = 0.00120218 Jy
! Component: 150  -  total flux cleaned = 0.00134223 Jy
! Component: 200  -  total flux cleaned = 0.00147231 Jy
! Total flux subtracted in 200 components = 0.00147231 Jy
! Clean residual min=-0.002758 max=0.004501 Jy/beam
! Clean residual mean=0.000792 rms=0.001294 Jy/beam
! Combined flux in latest and established models = 0.816317 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 157 components and 0.816317 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.220771Jy  sigma=0.001207
! Fit after  self-cal, rms=0.220771Jy  sigma=0.001207
! Inverting map 
! Your choice of large map pixels excluded 4.88% of the data.
!  The x-axis pixel size should ideally be below 0.1663 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.88% of the data.
!  The x-axis pixel size should ideally be below 0.1663 milli-arcsec
! Estimated beam: bmin=0.614 mas, bmaj=1.735 mas, bpa=-4.415 degrees
! Estimated noise=805.676 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.614 x 1.735 at -4.415 degrees (North through East)
! Clean map  min=-0.0025895  max=0.62193 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.220771Jy  sigma=0.001207
! Fit after  self-cal, rms=0.345805Jy  sigma=0.001123
! Inverting map and beam 
! Your choice of large map pixels excluded 4.88% of the data.
!  The x-axis pixel size should ideally be below 0.1663 milli-arcsec
! Estimated beam: bmin=0.6135 mas, bmaj=1.735 mas, bpa=-4.386 degrees
! Estimated noise=805.453 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000234609 Jy
! Component: 100  -  total flux cleaned = 0.00016172 Jy
! Component: 150  -  total flux cleaned = 9.93205e-05 Jy
! Component: 200  -  total flux cleaned = 0.000160592 Jy
! Total flux subtracted in 200 components = 0.000160592 Jy
! Clean residual min=-0.002901 max=0.003741 Jy/beam
! Clean residual mean=0.000373 rms=0.000892 Jy/beam
! Combined flux in latest and established models = 0.816477 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 165 components and 0.816477 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.345768Jy  sigma=0.001123
! Fit after  self-cal, rms=0.345797Jy  sigma=0.001123
! Inverting map 
! Your choice of large map pixels excluded 4.88% of the data.
!  The x-axis pixel size should ideally be below 0.1663 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000204684 Jy
! Component: 100  -  total flux cleaned = 0.000318656 Jy
! Component: 150  -  total flux cleaned = 0.000371551 Jy
! Component: 200  -  total flux cleaned = 0.000423906 Jy
! Total flux subtracted in 200 components = 0.000423906 Jy
! Clean residual min=-0.002791 max=0.003643 Jy/beam
! Clean residual mean=0.000365 rms=0.000879 Jy/beam
! Combined flux in latest and established models = 0.816901 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 171 components and 0.816901 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.345776Jy  sigma=0.001123
! Fit after  self-cal, rms=0.345787Jy  sigma=0.001123
! Inverting map 
! Your choice of large map pixels excluded 4.88% of the data.
!  The x-axis pixel size should ideally be below 0.1663 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.345787Jy  sigma=0.001123
! Fit after  self-cal, rms=0.345090Jy  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.88% of the data.
!  The x-axis pixel size should ideally be below 0.1663 milli-arcsec
! Estimated beam: bmin=0.54 mas, bmaj=1.385 mas, bpa=-2.195 degrees
! Estimated noise=1199.65 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.480052 Jy
! Component: 100  -  total flux cleaned = 0.584912 Jy
! Component: 150  -  total flux cleaned = 0.616933 Jy
! Component: 200  -  total flux cleaned = 0.639372 Jy
! Total flux subtracted in 200 components = 0.639372 Jy
! Clean residual min=-0.008312 max=0.013372 Jy/beam
! Clean residual mean=0.001013 rms=0.003106 Jy/beam
! Combined flux in latest and established models = 0.639372 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 22 model components to the UV plane model.
! The established model now contains 22 components and 0.639372 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 4.88% of the data.
!  The x-axis pixel size should ideally be below 0.1663 milli-arcsec
! Estimated beam: bmin=0.6135 mas, bmaj=1.735 mas, bpa=-4.382 degrees
! Estimated noise=805.669 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.036772 Jy
! Component: 100  -  total flux cleaned = 0.0635118 Jy
! Component: 150  -  total flux cleaned = 0.0838128 Jy
! Component: 200  -  total flux cleaned = 0.0995756 Jy
! Total flux subtracted in 200 components = 0.0995756 Jy
! Clean residual min=-0.004424 max=0.011296 Jy/beam
! Clean residual mean=0.001932 rms=0.002823 Jy/beam
! Combined flux in latest and established models = 0.738947 Jy
! Adding 69 model components to the UV plane model.
! The established model now contains 79 components and 0.738947 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.88% of the data.
!  The x-axis pixel size should ideally be below 0.1663 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.88% of the data.
!  The x-axis pixel size should ideally be below 0.1663 milli-arcsec
! Estimated beam: bmin=2.251 mas, bmaj=3.071 mas, bpa=0.3734 degrees
! Estimated noise=1108.83 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0254119 Jy
! Component: 100  -  total flux cleaned = 0.0409136 Jy
! Component: 150  -  total flux cleaned = 0.0516531 Jy
! Component: 200  -  total flux cleaned = 0.0594233 Jy
! Total flux subtracted in 200 components = 0.0594233 Jy
! Clean residual min=-0.003286 max=0.006120 Jy/beam
! Clean residual mean=0.001972 rms=0.001935 Jy/beam
! Combined flux in latest and established models = 0.79837 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.00569366 Jy
! Component: 100  -  total flux cleaned = 0.00989871 Jy
! Component: 150  -  total flux cleaned = 0.0130229 Jy
! Component: 200  -  total flux cleaned = 0.0153522 Jy
! Total flux subtracted in 200 components = 0.0153522 Jy
! Clean residual min=-0.002724 max=0.004612 Jy/beam
! Clean residual mean=0.001160 rms=0.001335 Jy/beam
! Combined flux in latest and established models = 0.813722 Jy
! Adding 102 model components to the UV plane model.
! The established model now contains 169 components and 0.813722 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.88% of the data.
!  The x-axis pixel size should ideally be below 0.1663 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 4.88% of the data.
!  The x-axis pixel size should ideally be below 0.1663 milli-arcsec
! Estimated beam: bmin=0.6135 mas, bmaj=1.735 mas, bpa=-4.382 degrees
! Estimated noise=805.669 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000331727 Jy
! Component: 100  -  total flux cleaned = -0.000342911 Jy
! Component: 150  -  total flux cleaned = 1.54186e-05 Jy
! Component: 200  -  total flux cleaned = 0.000126163 Jy
! Total flux subtracted in 200 components = 0.000126163 Jy
! Clean residual min=-0.003082 max=0.003674 Jy/beam
! Clean residual mean=0.000436 rms=0.000975 Jy/beam
! Combined flux in latest and established models = 0.813848 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 179 components and 0.813848 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.345118Jy  sigma=0.001125
! Fit after  self-cal, rms=0.345000Jy  sigma=0.001124
wmodel J0501-0159_X_2001_07_05_pus_map.mod
! Writing 179 model components to file: J0501-0159_X_2001_07_05_pus_map.mod
wobs J0501-0159_X_2001_07_05_pus_uvs.fits
! Writing UV FITS file: J0501-0159_X_2001_07_05_pus_uvs.fits
wwins J0501-0159_X_2001_07_05_pus_map.win
! wwins: Wrote 4 windows to J0501-0159_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 4.88% of the data.
!  The x-axis pixel size should ideally be below 0.1663 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00171665 Jy
! Component: 100  -  total flux cleaned = 0.00323134 Jy
! Component: 150  -  total flux cleaned = 0.00448273 Jy
! Component: 200  -  total flux cleaned = 0.00545422 Jy
! Component: 250  -  total flux cleaned = 0.00628085 Jy
! Component: 300  -  total flux cleaned = 0.00687768 Jy
! Component: 350  -  total flux cleaned = 0.00755139 Jy
! Component: 400  -  total flux cleaned = 0.00815757 Jy
! Component: 450  -  total flux cleaned = 0.00879236 Jy
! Component: 500  -  total flux cleaned = 0.00932318 Jy
! Component: 550  -  total flux cleaned = 0.00997136 Jy
! Component: 600  -  total flux cleaned = 0.0105623 Jy
! Component: 650  -  total flux cleaned = 0.0110998 Jy
! Component: 700  -  total flux cleaned = 0.0116255 Jy
! Component: 750  -  total flux cleaned = 0.0120614 Jy
! Component: 800  -  total flux cleaned = 0.0125287 Jy
! Component: 850  -  total flux cleaned = 0.0128737 Jy
! Component: 900  -  total flux cleaned = 0.0133259 Jy
! Component: 950  -  total flux cleaned = 0.0136963 Jy
! Component: 1000  -  total flux cleaned = 0.0140604 Jy
! Total flux subtracted in 1024 components = 0.0142043 Jy
! Clean residual min=-0.001994 max=0.002064 Jy/beam
! Clean residual mean=0.000182 rms=0.000683 Jy/beam
! Combined flux in latest and established models = 0.828052 Jy
keep
! Adding 72 model components to the UV plane model.
! The established model now contains 251 components and 0.828053 Jy
wmap "J0501-0159_X_2001_07_05_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 4.88% of the data.
!  The x-axis pixel size should ideally be below 0.1663 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6135 x 1.735 at -4.382 degrees (North through East)
! Clean map  min=-0.0025667  max=0.61797 Jy/beam
! Writing clean map to FITS file: J0501-0159_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.617968 
invert
! Inverting map 
! Your choice of large map pixels excluded 4.88% of the data.
!  The x-axis pixel size should ideally be below 0.1663 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000682276 
device "J0501-0159_X_2001_07_05_pus\_map.eps/VPS"
! Attempting to open device: 'J0501-0159_X_2001_07_05_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.331219 0.331219 0.662438 1.32488 2.64975 5.2995 10.599 21.198 42.396 84.792
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.002 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.617 
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.6135 x 1.735 at -4.382 degrees (North through East)
! Clean map  min=-0.0025667  max=0.61797 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0501-0159_X_2001_07_05_pus\_map.gif/vgif"
! Attempting to open device: 'J0501-0159_X_2001_07_05_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0501-0159_X_2001_07_05_pus_uvs.log closed on Wed Jul  4 20:00:32 2007