! Started logfile: J0501-0159_X_2001_04_09_pus_uvs.log on Mon Oct  1 14:34:01 2007
obs J0501-0159_X_2001_04_09_pus_uva.fits
! Reading UV FITS file: J0501-0159_X_2001_04_09_pus_uva.fits
! AN table 1: 79 integrations on 190 of 190 possible baselines.
! AN table 2: 94 integrations on 190 of 190 possible baselines.
! AN table 3: 63 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0419492 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0501-0159
! 
! 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 1926 lines of history.
! 
! Reading 7524 visibilities.
select I
! Polarization I is unavailable.
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
print "field_size =",field_size
! field_size = 256 
print "field_cell =",field_cell
! field_cell = 0.2 
print "taper_size =",taper_size
! taper_size = 70 
![@muppet J0501-0159_X_2001_04_09_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 256x256 pixels with 0.200x0.200 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 1300 telescope corrections were flagged in sub-array 1.
!  A total of 1795 telescope corrections were flagged in sub-array 2.
!  A total of 971 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1300 telescope corrections were flagged in sub-array 1.
!  A total of 1795 telescope corrections were flagged in sub-array 2.
!  A total of 971 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1300 telescope corrections were flagged in sub-array 1.
!  A total of 1793 telescope corrections were flagged in sub-array 2.
!  A total of 971 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1300 telescope corrections were flagged in sub-array 1.
!  A total of 1794 telescope corrections were flagged in sub-array 2.
!  A total of 971 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.926194Jy  sigma=0.007487
! Fit after  self-cal, rms=0.560612Jy  sigma=0.003819
! 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 1.41% of the data.
!  The y-axis pixel size should ideally be below 0.19 milli-arcsec
! Estimated beam: bmin=0.6595 mas, bmaj=1.225 mas, bpa=-2.165 degrees
! Estimated noise=2160.25 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.429408 Jy
! Component: 100  -  total flux cleaned = 0.527086 Jy
! Total flux subtracted in 100 components = 0.527086 Jy
! Clean residual min=-0.015523 max=0.032531 Jy/beam
! Clean residual mean=0.001256 rms=0.006178 Jy/beam
! Combined flux in latest and established models = 0.527086 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.527086 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.317490Jy  sigma=0.001378
! Fit after  self-cal, rms=0.317547Jy  sigma=0.001378
! Inverting map 
! Your choice of large map pixels excluded 1.41% of the data.
!  The y-axis pixel size should ideally be below 0.19 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 1.41% of the data.
!  The y-axis pixel size should ideally be below 0.19 milli-arcsec
! Estimated beam: bmin=0.694 mas, bmaj=1.085 mas, bpa=-7.521 degrees
! Estimated noise=1106.78 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.0360947 Jy
! Component: 100  -  total flux cleaned = 0.0545447 Jy
! Component: 150  -  total flux cleaned = 0.0654398 Jy
! Component: 200  -  total flux cleaned = 0.0720699 Jy
! Total flux subtracted in 200 components = 0.07207 Jy
! Clean residual min=-0.012868 max=0.029531 Jy/beam
! Clean residual mean=0.002660 rms=0.004662 Jy/beam
! Combined flux in latest and established models = 0.599156 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 17 components and 0.599156 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.313480Jy  sigma=0.001314
! Fit after  self-cal, rms=0.313463Jy  sigma=0.001314
! Inverting map 
! Your choice of large map pixels excluded 1.41% of the data.
!  The y-axis pixel size should ideally be below 0.19 milli-arcsec
! Added new window around map position (-4, 3.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0277791 Jy
! Component: 100  -  total flux cleaned = 0.0422383 Jy
! Component: 150  -  total flux cleaned = 0.0511613 Jy
! Component: 200  -  total flux cleaned = 0.0559375 Jy
! Total flux subtracted in 200 components = 0.0559375 Jy
! Clean residual min=-0.008625 max=0.015921 Jy/beam
! Clean residual mean=0.001522 rms=0.003270 Jy/beam
! Combined flux in latest and established models = 0.655093 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 40 components and 0.655093 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.310769Jy  sigma=0.001276
! Fit after  self-cal, rms=0.310340Jy  sigma=0.001273
! Inverting map 
! Your choice of large map pixels excluded 1.41% of the data.
!  The y-axis pixel size should ideally be below 0.19 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 42 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.04     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        0.99     MC        1.09     MK        1.00*    
!   NL        1.00*    NY        1.10     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        0.98     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.17     
!   LA        1.07     MA        1.00*    MC        1.00*    MK        0.93     
!   NL        1.00*    NY        1.00*    OV        1.03     PT        1.01     
!   SC        1.00*    TS        0.87     WF        1.00*    WZ        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.06     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        1.04     KP        0.92     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        0.94     
!   NL        1.05     NY        1.00*    OV        1.00     PT        0.99     
!   SC        1.00     TS        1.00*    WF        0.94     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 42 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        0.97     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        0.97     MC        1.03     MK        1.00*    
!   NL        1.00*    NY        1.14     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        0.96     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.14     
!   LA        1.05     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        1.00*    NY        1.00*    OV        1.02     PT        1.00     
!   SC        1.00*    TS        0.91     WF        1.00*    WZ        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.95     GC        1.07     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        1.08     KP        0.94     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        1.01     
!   NL        0.98     NY        1.00*    OV        0.99     PT        0.97     
!   SC        1.01     TS        1.00*    WF        0.95     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 42 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        0.92     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.04     MC        1.07     MK        1.00*    
!   NL        1.00*    NY        1.06     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        0.99     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        0.96     
!   LA        1.05     MA        1.00*    MC        1.00*    MK        0.96     
!   NL        1.00*    NY        1.00*    OV        1.01     PT        0.97     
!   SC        1.00*    TS        0.92     WF        1.00*    WZ        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.08     GC        1.18     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        1.03     KP        0.82     
!   LA        1.00     MA        1.00*    MC        1.00*    MK        0.97     
!   NL        0.99     NY        1.00*    OV        0.96     PT        0.94     
!   SC        1.01     TS        1.00*    WF        1.01     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 42 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.06     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.00     MC        1.04     MK        1.00*    
!   NL        1.00*    NY        1.04     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        0.99     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.22     
!   LA        1.05     MA        1.00*    MC        1.00*    MK        0.96     
!   NL        1.00*    NY        1.00*    OV        0.96     PT        1.00     
!   SC        1.00*    TS        0.97     WF        1.00*    WZ        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.92     GC        1.25     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.06     KP        1.03     
!   LA        0.96     MA        1.00*    MC        1.00*    MK        1.01     
!   NL        1.00     NY        1.00*    OV        0.95     PT        0.98     
!   SC        1.01     TS        1.00*    WF        1.01     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.310340Jy  sigma=0.001273
! Fit after  self-cal, rms=0.316486Jy  sigma=0.001234
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.839% of the data.
!  The y-axis pixel size should ideally be below 0.19 milli-arcsec
! Estimated beam: bmin=0.6901 mas, bmaj=1.117 mas, bpa=-6.746 degrees
! Estimated noise=1116.12 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (-1.4, 1.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.015414 Jy
! Component: 100  -  total flux cleaned = 0.0213885 Jy
! Component: 150  -  total flux cleaned = 0.0245215 Jy
! Component: 200  -  total flux cleaned = 0.026059 Jy
! Total flux subtracted in 200 components = 0.026059 Jy
! Clean residual min=-0.004730 max=0.007941 Jy/beam
! Clean residual mean=0.001026 rms=0.001800 Jy/beam
! Combined flux in latest and established models = 0.681152 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 60 components and 0.681152 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.315949Jy  sigma=0.001220
! Fit after  self-cal, rms=0.316154Jy  sigma=0.001219
! Inverting map 
! Your choice of large map pixels excluded 0.839% of the data.
!  The y-axis pixel size should ideally be below 0.19 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.316154Jy  sigma=0.001219
! Fit after  self-cal, rms=0.313777Jy  sigma=0.001217
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.839% of the data.
!  The y-axis pixel size should ideally be below 0.19 milli-arcsec
! Estimated beam: bmin=0.6887 mas, bmaj=1.114 mas, bpa=-6.719 degrees
! Estimated noise=1118.14 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00768387 Jy
! Component: 100  -  total flux cleaned = 0.0105921 Jy
! Component: 150  -  total flux cleaned = 0.0123776 Jy
! Component: 200  -  total flux cleaned = 0.0137107 Jy
! Total flux subtracted in 200 components = 0.0137107 Jy
! Clean residual min=-0.004571 max=0.006639 Jy/beam
! Clean residual mean=0.000802 rms=0.001521 Jy/beam
! Combined flux in latest and established models = 0.694863 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 70 components and 0.694863 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.313622Jy  sigma=0.001213
! Fit after  self-cal, rms=0.313677Jy  sigma=0.001213
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.839% of the data.
!  The y-axis pixel size should ideally be below 0.19 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.00152774 Jy
! Component: 100  -  total flux cleaned = 0.00235177 Jy
! Component: 150  -  total flux cleaned = 0.00286078 Jy
! Component: 200  -  total flux cleaned = 0.00330847 Jy
! Total flux subtracted in 200 components = 0.00330847 Jy
! Clean residual min=-0.004689 max=0.006011 Jy/beam
! Clean residual mean=0.000735 rms=0.001488 Jy/beam
! Combined flux in latest and established models = 0.698171 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 77 components and 0.698171 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.313639Jy  sigma=0.001212
! Fit after  self-cal, rms=0.313670Jy  sigma=0.001212
! Inverting map 
! Your choice of large map pixels excluded 0.839% of the data.
!  The y-axis pixel size should ideally be below 0.19 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.313670Jy  sigma=0.001212
! Fit after  self-cal, rms=0.312185Jy  sigma=0.001211
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.839% of the data.
!  The y-axis pixel size should ideally be below 0.19 milli-arcsec
! Estimated beam: bmin=0.6885 mas, bmaj=1.113 mas, bpa=-6.715 degrees
! Estimated noise=1119.22 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00362413 Jy
! Component: 100  -  total flux cleaned = 0.00508755 Jy
! Component: 150  -  total flux cleaned = 0.00618371 Jy
! Component: 200  -  total flux cleaned = 0.00701781 Jy
! Total flux subtracted in 200 components = 0.00701781 Jy
! Clean residual min=-0.004811 max=0.005377 Jy/beam
! Clean residual mean=0.000583 rms=0.001365 Jy/beam
! Combined flux in latest and established models = 0.705189 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 85 components and 0.705189 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.312132Jy  sigma=0.001210
! Fit after  self-cal, rms=0.312145Jy  sigma=0.001210
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.839% of the data.
!  The y-axis pixel size should ideally be below 0.19 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.000720375 Jy
! Component: 100  -  total flux cleaned = 0.00129671 Jy
! Component: 150  -  total flux cleaned = 0.00165927 Jy
! Component: 200  -  total flux cleaned = 0.00176581 Jy
! Total flux subtracted in 200 components = 0.00176581 Jy
! Clean residual min=-0.004804 max=0.005138 Jy/beam
! Clean residual mean=0.000547 rms=0.001360 Jy/beam
! Combined flux in latest and established models = 0.706955 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 88 components and 0.706955 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.312121Jy  sigma=0.001210
! Fit after  self-cal, rms=0.312130Jy  sigma=0.001210
! Inverting map 
! Your choice of large map pixels excluded 0.839% of the data.
!  The y-axis pixel size should ideally be below 0.19 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.312130Jy  sigma=0.001210
! Fit after  self-cal, rms=0.311220Jy  sigma=0.001209
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.839% of the data.
!  The y-axis pixel size should ideally be below 0.19 milli-arcsec
! Estimated beam: bmin=2.17 mas, bmaj=3.105 mas, bpa=-16.15 degrees
! Estimated noise=1683.4 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00409129 Jy
! Component: 100  -  total flux cleaned = 0.00558433 Jy
! Component: 150  -  total flux cleaned = 0.00593454 Jy
! Component: 200  -  total flux cleaned = 0.0061292 Jy
! Total flux subtracted in 200 components = 0.0061292 Jy
! Clean residual min=-0.005160 max=0.007590 Jy/beam
! Clean residual mean=0.001271 rms=0.002215 Jy/beam
! Combined flux in latest and established models = 0.713084 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 104 components and 0.713084 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.311241Jy  sigma=0.001209
! Fit after  self-cal, rms=0.311216Jy  sigma=0.001209
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.839% of the data.
!  The y-axis pixel size should ideally be below 0.19 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.000338758 Jy
! Component: 100  -  total flux cleaned = 0.000594398 Jy
! Component: 150  -  total flux cleaned = 0.000632564 Jy
! Component: 200  -  total flux cleaned = 0.000632606 Jy
! Total flux subtracted in 200 components = 0.000632606 Jy
! Clean residual min=-0.005542 max=0.007515 Jy/beam
! Clean residual mean=0.001237 rms=0.002312 Jy/beam
! Combined flux in latest and established models = 0.713717 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 108 components and 0.713717 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.311231Jy  sigma=0.001210
! Fit after  self-cal, rms=0.311210Jy  sigma=0.001210
! Inverting map 
! Your choice of large map pixels excluded 0.839% of the data.
!  The y-axis pixel size should ideally be below 0.19 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 0.839% of the data.
!  The y-axis pixel size should ideally be below 0.19 milli-arcsec
! Estimated beam: bmin=0.6886 mas, bmaj=1.112 mas, bpa=-6.698 degrees
! Estimated noise=1119.92 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6886 x 1.112 at -6.698 degrees (North through East)
! Clean map  min=-0.004232  max=0.53294 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.311210Jy  sigma=0.001210
! Fit after  self-cal, rms=0.530960Jy  sigma=0.001077
! Inverting map and beam 
! Your choice of large map pixels excluded 0.839% of the data.
!  The y-axis pixel size should ideally be below 0.19 milli-arcsec
! Estimated beam: bmin=0.6881 mas, bmaj=1.113 mas, bpa=-6.73 degrees
! Estimated noise=1119.63 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00117098 Jy
! Component: 100  -  total flux cleaned = 0.00124329 Jy
! Component: 150  -  total flux cleaned = 0.00137056 Jy
! Component: 200  -  total flux cleaned = 0.00142899 Jy
! Total flux subtracted in 200 components = 0.00142899 Jy
! Clean residual min=-0.004533 max=0.004545 Jy/beam
! Clean residual mean=0.000362 rms=0.001262 Jy/beam
! Combined flux in latest and established models = 0.715146 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 118 components and 0.715146 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.530952Jy  sigma=0.001077
! Fit after  self-cal, rms=0.530911Jy  sigma=0.001077
! Inverting map 
! Your choice of large map pixels excluded 0.839% of the data.
!  The y-axis pixel size should ideally be below 0.19 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000357333 Jy
! Component: 100  -  total flux cleaned = 0.0003575 Jy
! Component: 150  -  total flux cleaned = 0.000356818 Jy
! Component: 200  -  total flux cleaned = 0.000355394 Jy
! Total flux subtracted in 200 components = 0.000355394 Jy
! Clean residual min=-0.004594 max=0.004559 Jy/beam
! Clean residual mean=0.000353 rms=0.001257 Jy/beam
! Combined flux in latest and established models = 0.715501 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 123 components and 0.715501 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.530899Jy  sigma=0.001077
! Fit after  self-cal, rms=0.530897Jy  sigma=0.001077
! Inverting map 
! Your choice of large map pixels excluded 0.839% of the data.
!  The y-axis pixel size should ideally be below 0.19 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.530897Jy  sigma=0.001077
! Fit after  self-cal, rms=0.530788Jy  sigma=0.001077
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 0.839% of the data.
!  The y-axis pixel size should ideally be below 0.19 milli-arcsec
! Estimated beam: bmin=0.6556 mas, bmaj=1.247 mas, bpa=-2.154 degrees
! Estimated noise=2147.24 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.425749 Jy
! Component: 100  -  total flux cleaned = 0.520552 Jy
! Component: 150  -  total flux cleaned = 0.554212 Jy
! Component: 200  -  total flux cleaned = 0.577942 Jy
! Total flux subtracted in 200 components = 0.577942 Jy
! Clean residual min=-0.010550 max=0.013912 Jy/beam
! Clean residual mean=0.000818 rms=0.003627 Jy/beam
! Combined flux in latest and established models = 0.577942 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 16 model components to the UV plane model.
! The established model now contains 16 components and 0.577942 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 0.839% of the data.
!  The y-axis pixel size should ideally be below 0.19 milli-arcsec
! Estimated beam: bmin=0.6883 mas, bmaj=1.111 mas, bpa=-6.708 degrees
! Estimated noise=1120.24 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.0348291 Jy
! Component: 100  -  total flux cleaned = 0.0588412 Jy
! Component: 150  -  total flux cleaned = 0.0768113 Jy
! Component: 200  -  total flux cleaned = 0.0905911 Jy
! Total flux subtracted in 200 components = 0.0905911 Jy
! Clean residual min=-0.006067 max=0.009065 Jy/beam
! Clean residual mean=0.001292 rms=0.002457 Jy/beam
! Combined flux in latest and established models = 0.668533 Jy
! Adding 60 model components to the UV plane model.
! The established model now contains 66 components and 0.668533 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.839% of the data.
!  The y-axis pixel size should ideally be below 0.19 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 0.839% of the data.
!  The y-axis pixel size should ideally be below 0.19 milli-arcsec
! Estimated beam: bmin=2.169 mas, bmaj=3.1 mas, bpa=-15.98 degrees
! Estimated noise=1685.41 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0238083 Jy
! Component: 100  -  total flux cleaned = 0.0354771 Jy
! Component: 150  -  total flux cleaned = 0.0417752 Jy
! Component: 200  -  total flux cleaned = 0.0453834 Jy
! Total flux subtracted in 200 components = 0.0453834 Jy
! Clean residual min=-0.003848 max=0.007020 Jy/beam
! Clean residual mean=0.001182 rms=0.001989 Jy/beam
! Combined flux in latest and established models = 0.713917 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.00208539 Jy
! Component: 100  -  total flux cleaned = 0.00279404 Jy
! Component: 150  -  total flux cleaned = 0.00297476 Jy
! Component: 200  -  total flux cleaned = 0.00317684 Jy
! Total flux subtracted in 200 components = 0.00317684 Jy
! Clean residual min=-0.003812 max=0.006330 Jy/beam
! Clean residual mean=0.000992 rms=0.001942 Jy/beam
! Combined flux in latest and established models = 0.717094 Jy
! Adding 64 model components to the UV plane model.
! The established model now contains 112 components and 0.717093 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.839% of the data.
!  The y-axis pixel size should ideally be below 0.19 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 0.839% of the data.
!  The y-axis pixel size should ideally be below 0.19 milli-arcsec
! Estimated beam: bmin=0.6883 mas, bmaj=1.111 mas, bpa=-6.708 degrees
! Estimated noise=1120.24 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0012036 Jy
! Component: 100  -  total flux cleaned = -0.00135809 Jy
! Component: 150  -  total flux cleaned = -0.00136609 Jy
! Component: 200  -  total flux cleaned = -0.001467 Jy
! Total flux subtracted in 200 components = -0.001467 Jy
! Clean residual min=-0.004302 max=0.005299 Jy/beam
! Clean residual mean=0.000357 rms=0.001308 Jy/beam
! Combined flux in latest and established models = 0.715626 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 125 components and 0.715627 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.530711Jy  sigma=0.001077
! Fit after  self-cal, rms=0.530874Jy  sigma=0.001077
wmodel J0501-0159_X_2001_04_09_pus_map.mod
! Writing 125 model components to file: J0501-0159_X_2001_04_09_pus_map.mod
wobs J0501-0159_X_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J0501-0159_X_2001_04_09_pus_uvs.fits
wwins J0501-0159_X_2001_04_09_pus_map.win
! wwins: Wrote 3 windows to J0501-0159_X_2001_04_09_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 0.839% of the data.
!  The y-axis pixel size should ideally be below 0.19 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00134675 Jy
! Component: 100  -  total flux cleaned = 0.00241159 Jy
! Component: 150  -  total flux cleaned = 0.00347558 Jy
! Component: 200  -  total flux cleaned = 0.00426147 Jy
! Component: 250  -  total flux cleaned = 0.00508054 Jy
! Component: 300  -  total flux cleaned = 0.00593764 Jy
! Component: 350  -  total flux cleaned = 0.00651208 Jy
! Component: 400  -  total flux cleaned = 0.00713205 Jy
! Component: 450  -  total flux cleaned = 0.00773298 Jy
! Component: 500  -  total flux cleaned = 0.00831702 Jy
! Component: 550  -  total flux cleaned = 0.00888625 Jy
! Component: 600  -  total flux cleaned = 0.0094429 Jy
! Component: 650  -  total flux cleaned = 0.0099869 Jy
! Component: 700  -  total flux cleaned = 0.0104134 Jy
! Component: 750  -  total flux cleaned = 0.0109348 Jy
! Component: 800  -  total flux cleaned = 0.0113434 Jy
! Component: 850  -  total flux cleaned = 0.0116953 Jy
! Component: 900  -  total flux cleaned = 0.0120897 Jy
! Component: 950  -  total flux cleaned = 0.0124764 Jy
! Component: 1000  -  total flux cleaned = 0.0127139 Jy
! Total flux subtracted in 1024 components = 0.0129482 Jy
! Clean residual min=-0.002574 max=0.002858 Jy/beam
! Clean residual mean=0.000179 rms=0.000861 Jy/beam
! Combined flux in latest and established models = 0.728575 Jy
keep
! Adding 64 model components to the UV plane model.
! The established model now contains 189 components and 0.728575 Jy
![Exited script file: muppet]
wmap "J0501-0159_X_2001_04_09_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 0.839% of the data.
!  The y-axis pixel size should ideally be below 0.19 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6883 x 1.111 at -6.708 degrees (North through East)
! Clean map  min=-0.0035509  max=0.53848 Jy/beam
! Writing clean map to FITS file: J0501-0159_X_2001_04_09_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.538484 
invert
! Inverting map 
! Your choice of large map pixels excluded 0.839% of the data.
!  The y-axis pixel size should ideally be below 0.19 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000849193 
device "J0501-0159_X_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J0501-0159_X_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.473103 0.473103 0.946205 1.89241 3.78482 7.56964 15.1393 30.2786 60.5571
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0025 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.538 
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.6883 x 1.111 at -6.708 degrees (North through East)
! Clean map  min=-0.0035509  max=0.53848 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0501-0159_X_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J0501-0159_X_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0501-0159_X_2001_04_09_pus_uvs.log closed on Mon Oct  1 14:34:07 2007