! Started logfile: J0501-0159_X_2001_10_29_pus_uvs.log on Mon Feb 25 16:08:08 2008
obs J0501-0159_X_2001_10_29_pus_uva.fits
! Reading UV FITS file: J0501-0159_X_2001_10_29_pus_uva.fits
! AN table 1: 126 integrations on 153 of 153 possible baselines.
! AN table 2: 126 integrations on 153 of 153 possible baselines.
! AN table 3: 27 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.106543 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 1970 lines of history.
! 
! Reading 18192 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_10_29_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 1582 telescope corrections were flagged in sub-array 1.
!  A total of 1989 telescope corrections were flagged in sub-array 2.
!  A total of 432 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1582 telescope corrections were flagged in sub-array 1.
!  A total of 1989 telescope corrections were flagged in sub-array 2.
!  A total of 432 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1582 telescope corrections were flagged in sub-array 1.
!  A total of 1989 telescope corrections were flagged in sub-array 2.
!  A total of 432 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1582 telescope corrections were flagged in sub-array 1.
!  A total of 1989 telescope corrections were flagged in sub-array 2.
!  A total of 432 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.681454Jy  sigma=0.005276
! Fit after  self-cal, rms=0.353652Jy  sigma=0.002560
! 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 10.9% of the data.
!  The x-axis pixel size should ideally be below 0.1622 milli-arcsec
! Estimated beam: bmin=0.523 mas, bmaj=1.219 mas, bpa=0.2124 degrees
! Estimated noise=1095.26 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.565324 Jy
! Component: 100  -  total flux cleaned = 0.68877 Jy
! Total flux subtracted in 100 components = 0.68877 Jy
! Clean residual min=-0.013114 max=0.035932 Jy/beam
! Clean residual mean=0.000931 rms=0.005271 Jy/beam
! Combined flux in latest and established models = 0.68877 Jy
! Performing phase self-cal
! Adding 2 model components to the UV plane model.
! The established model now contains 2 components and 0.68877 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.232273Jy  sigma=0.001480
! Fit after  self-cal, rms=0.232275Jy  sigma=0.001480
! Inverting map 
! Your choice of large map pixels excluded 10.9% of the data.
!  The x-axis pixel size should ideally be below 0.1622 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.036831 Jy
! Component: 100  -  total flux cleaned = 0.0554411 Jy
! Total flux subtracted in 100 components = 0.0554411 Jy
! Clean residual min=-0.011222 max=0.019781 Jy/beam
! Clean residual mean=0.000887 rms=0.003867 Jy/beam
! Combined flux in latest and established models = 0.744211 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 9 components and 0.744211 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.226144Jy  sigma=0.001387
! Fit after  self-cal, rms=0.226084Jy  sigma=0.001387
! Inverting map 
! Your choice of large map pixels excluded 10.9% of the data.
!  The x-axis pixel size should ideally be below 0.1622 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 10.9% of the data.
!  The x-axis pixel size should ideally be below 0.1622 milli-arcsec
! Estimated beam: bmin=0.6493 mas, bmaj=1.453 mas, bpa=1.627 degrees
! Estimated noise=694.878 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.0177612 Jy
! Component: 100  -  total flux cleaned = 0.0268934 Jy
! Component: 150  -  total flux cleaned = 0.031894 Jy
! Component: 200  -  total flux cleaned = 0.0346888 Jy
! Total flux subtracted in 200 components = 0.0346888 Jy
! Clean residual min=-0.010439 max=0.034312 Jy/beam
! Clean residual mean=0.003698 rms=0.006697 Jy/beam
! Combined flux in latest and established models = 0.7789 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 17 components and 0.7789 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.225159Jy  sigma=0.001368
! Fit after  self-cal, rms=0.225103Jy  sigma=0.001368
! Inverting map 
! Your choice of large map pixels excluded 10.9% of the data.
!  The x-axis pixel size should ideally be below 0.1622 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 51 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.00*    GG        1.00*    HH        1.03     
!   HN        1.04     KK        1.00*    KP        1.00     LA        0.99     
!   MA        1.03     MC        1.07     MK        1.00*    NL        1.07     
!   OV        1.05     PT        0.98     SC        1.02     TS        1.00*    
!   WF        0.99     WZ        1.01     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.08     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.07     KK        0.99     KP        0.93     LA        0.90     
!   MA        1.00*    MC        1.00*    MK        0.99     NL        0.95     
!   OV        1.07     PT        0.94     SC        1.03     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 54 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 51 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.00*    GG        1.00*    HH        1.00     
!   HN        1.02     KK        1.00*    KP        1.00     LA        0.96     
!   MA        1.02     MC        1.08     MK        1.00*    NL        1.02     
!   OV        1.06     PT        0.95     SC        0.97     TS        1.00*    
!   WF        0.98     WZ        0.98     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.10     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.07     KK        1.05     KP        0.93     LA        0.89     
!   MA        1.00*    MC        1.00*    MK        0.99     NL        0.91     
!   OV        1.08     PT        0.91     SC        1.00     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 54 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 51 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        0.98     
!   HN        1.03     KK        1.00*    KP        1.00     LA        1.00     
!   MA        0.99     MC        1.01     MK        1.00*    NL        1.04     
!   OV        1.03     PT        0.98     SC        0.97     TS        1.00*    
!   WF        1.02     WZ        0.97     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.08     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.07     KK        0.99     KP        0.92     LA        0.92     
!   MA        1.00*    MC        1.00*    MK        1.01     NL        0.96     
!   OV        1.04     PT        0.93     SC        1.00     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 54 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 51 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        1.00*    GG        1.00*    HH        1.02     
!   HN        1.04     KK        1.00*    KP        1.01     LA        0.96     
!   MA        1.02     MC        1.08     MK        1.00*    NL        1.07     
!   OV        1.02     PT        0.98     SC        1.03     TS        1.00*    
!   WF        1.00     WZ        0.93     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.12     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.08     KK        1.01     KP        0.95     LA        0.88     
!   MA        1.00*    MC        1.00*    MK        1.03     NL        0.97     
!   OV        1.02     PT        0.93     SC        1.06     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 54 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Fit before self-cal, rms=0.225103Jy  sigma=0.001368
! Fit after  self-cal, rms=0.221056Jy  sigma=0.001302
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 11.2% of the data.
!  The x-axis pixel size should ideally be below 0.1622 milli-arcsec
! Estimated beam: bmin=0.6533 mas, bmaj=1.49 mas, bpa=0.6727 degrees
! Estimated noise=700.15 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 (-4.4, 3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.025356 Jy
! Component: 100  -  total flux cleaned = 0.0369843 Jy
! Component: 150  -  total flux cleaned = 0.0431521 Jy
! Component: 200  -  total flux cleaned = 0.0443068 Jy
! Total flux subtracted in 200 components = 0.0443068 Jy
! Clean residual min=-0.006462 max=0.016338 Jy/beam
! Clean residual mean=0.001585 rms=0.002925 Jy/beam
! Combined flux in latest and established models = 0.823206 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 45 components and 0.823206 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.218831Jy  sigma=0.001270
! Fit after  self-cal, rms=0.218686Jy  sigma=0.001267
! Inverting map 
! Your choice of large map pixels excluded 11.2% of the data.
!  The x-axis pixel size should ideally be below 0.1622 milli-arcsec
! Added new window around map position (-2, 2.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0153028 Jy
! Component: 100  -  total flux cleaned = 0.0214254 Jy
! Component: 150  -  total flux cleaned = 0.022691 Jy
! Component: 200  -  total flux cleaned = 0.0237021 Jy
! Total flux subtracted in 200 components = 0.0237021 Jy
! Clean residual min=-0.006455 max=0.009764 Jy/beam
! Clean residual mean=0.001140 rms=0.002221 Jy/beam
! Combined flux in latest and established models = 0.846909 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 62 components and 0.846909 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.217511Jy  sigma=0.001255
! Fit after  self-cal, rms=0.217346Jy  sigma=0.001254
! Inverting map 
! Your choice of large map pixels excluded 11.2% of the data.
!  The x-axis pixel size should ideally be below 0.1622 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.217346Jy  sigma=0.001254
! Fit after  self-cal, rms=0.215132Jy  sigma=0.001246
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 11.2% of the data.
!  The x-axis pixel size should ideally be below 0.1622 milli-arcsec
! Estimated beam: bmin=0.6525 mas, bmaj=1.484 mas, bpa=0.7805 degrees
! Estimated noise=696.906 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00938206 Jy
! Component: 100  -  total flux cleaned = 0.0151414 Jy
! Component: 150  -  total flux cleaned = 0.0174706 Jy
! Component: 200  -  total flux cleaned = 0.0189304 Jy
! Total flux subtracted in 200 components = 0.0189304 Jy
! Clean residual min=-0.003802 max=0.006329 Jy/beam
! Clean residual mean=0.001003 rms=0.001527 Jy/beam
! Combined flux in latest and established models = 0.865839 Jy
selfcal
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 81 components and 0.865839 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.214652Jy  sigma=0.001240
! Fit after  self-cal, rms=0.214575Jy  sigma=0.001240
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 11.2% of the data.
!  The x-axis pixel size should ideally be below 0.1622 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.00195929 Jy
! Component: 100  -  total flux cleaned = 0.00277879 Jy
! Component: 150  -  total flux cleaned = 0.00347422 Jy
! Component: 200  -  total flux cleaned = 0.00399182 Jy
! Total flux subtracted in 200 components = 0.00399182 Jy
! Clean residual min=-0.003470 max=0.005961 Jy/beam
! Clean residual mean=0.000921 rms=0.001420 Jy/beam
! Combined flux in latest and established models = 0.869831 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 86 components and 0.869831 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.214468Jy  sigma=0.001239
! Fit after  self-cal, rms=0.214453Jy  sigma=0.001239
! Inverting map 
! Your choice of large map pixels excluded 11.2% of the data.
!  The x-axis pixel size should ideally be below 0.1622 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.214453Jy  sigma=0.001239
! Fit after  self-cal, rms=0.214018Jy  sigma=0.001237
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 11.2% of the data.
!  The x-axis pixel size should ideally be below 0.1622 milli-arcsec
! Estimated beam: bmin=0.6526 mas, bmaj=1.482 mas, bpa=0.8316 degrees
! Estimated noise=695.924 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00478076 Jy
! Component: 100  -  total flux cleaned = 0.00742537 Jy
! Component: 150  -  total flux cleaned = 0.00834577 Jy
! Component: 200  -  total flux cleaned = 0.00912511 Jy
! Total flux subtracted in 200 components = 0.00912511 Jy
! Clean residual min=-0.003181 max=0.005598 Jy/beam
! Clean residual mean=0.000765 rms=0.001216 Jy/beam
! Combined flux in latest and established models = 0.878956 Jy
selfcal
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 101 components and 0.878956 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.213896Jy  sigma=0.001236
! Fit after  self-cal, rms=0.213877Jy  sigma=0.001236
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 11.2% of the data.
!  The x-axis pixel size should ideally be below 0.1622 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 (-9.6, 7).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00529521 Jy
! Component: 100  -  total flux cleaned = 0.0081244 Jy
! Component: 150  -  total flux cleaned = 0.0096098 Jy
! Component: 200  -  total flux cleaned = 0.010276 Jy
! Total flux subtracted in 200 components = 0.010276 Jy
! Clean residual min=-0.002733 max=0.004015 Jy/beam
! Clean residual mean=0.000540 rms=0.001001 Jy/beam
! Combined flux in latest and established models = 0.889232 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 117 components and 0.889232 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.213736Jy  sigma=0.001234
! Fit after  self-cal, rms=0.213719Jy  sigma=0.001234
! Inverting map 
! Your choice of large map pixels excluded 11.2% of the data.
!  The x-axis pixel size should ideally be below 0.1622 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.213719Jy  sigma=0.001234
! Fit after  self-cal, rms=0.213604Jy  sigma=0.001234
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 11.2% of the data.
!  The x-axis pixel size should ideally be below 0.1622 milli-arcsec
! Estimated beam: bmin=2.075 mas, bmaj=3.486 mas, bpa=-5.445 degrees
! Estimated noise=893.163 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00483828 Jy
! Component: 100  -  total flux cleaned = 0.00757456 Jy
! Component: 150  -  total flux cleaned = 0.00943812 Jy
! Component: 200  -  total flux cleaned = 0.0102734 Jy
! Total flux subtracted in 200 components = 0.0102734 Jy
! Clean residual min=-0.002703 max=0.005072 Jy/beam
! Clean residual mean=0.001074 rms=0.001285 Jy/beam
! Combined flux in latest and established models = 0.899506 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 129 components and 0.899505 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.213563Jy  sigma=0.001233
! Fit after  self-cal, rms=0.213552Jy  sigma=0.001233
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 11.2% of the data.
!  The x-axis pixel size should ideally be below 0.1622 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.000854361 Jy
! Component: 100  -  total flux cleaned = 0.00117347 Jy
! Component: 150  -  total flux cleaned = 0.00144561 Jy
! Component: 200  -  total flux cleaned = 0.00167957 Jy
! Total flux subtracted in 200 components = 0.00167957 Jy
! Clean residual min=-0.002526 max=0.005135 Jy/beam
! Clean residual mean=0.001002 rms=0.001266 Jy/beam
! Combined flux in latest and established models = 0.901185 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 129 components and 0.901185 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.213546Jy  sigma=0.001233
! Fit after  self-cal, rms=0.213545Jy  sigma=0.001233
! Inverting map 
! Your choice of large map pixels excluded 11.2% of the data.
!  The x-axis pixel size should ideally be below 0.1622 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 11.2% of the data.
!  The x-axis pixel size should ideally be below 0.1622 milli-arcsec
! Estimated beam: bmin=0.6528 mas, bmaj=1.481 mas, bpa=0.8631 degrees
! Estimated noise=696.032 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6528 x 1.481 at 0.8631 degrees (North through East)
! Clean map  min=-0.0026846  max=0.7276 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.213545Jy  sigma=0.001233
! Fit after  self-cal, rms=0.208257Jy  sigma=0.001155
! Inverting map and beam 
! Your choice of large map pixels excluded 11.2% of the data.
!  The x-axis pixel size should ideally be below 0.1622 milli-arcsec
! Estimated beam: bmin=0.6524 mas, bmaj=1.481 mas, bpa=0.8805 degrees
! Estimated noise=696.262 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00085115 Jy
! Component: 100  -  total flux cleaned = 0.00125904 Jy
! Component: 150  -  total flux cleaned = 0.00166234 Jy
! Component: 200  -  total flux cleaned = 0.00186326 Jy
! Total flux subtracted in 200 components = 0.00186326 Jy
! Clean residual min=-0.002780 max=0.003277 Jy/beam
! Clean residual mean=0.000381 rms=0.000804 Jy/beam
! Combined flux in latest and established models = 0.903048 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 142 components and 0.903048 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.208206Jy  sigma=0.001154
! Fit after  self-cal, rms=0.208209Jy  sigma=0.001154
! Inverting map 
! Your choice of large map pixels excluded 11.2% of the data.
!  The x-axis pixel size should ideally be below 0.1622 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000283528 Jy
! Component: 100  -  total flux cleaned = 0.000328233 Jy
! Component: 150  -  total flux cleaned = 0.000328877 Jy
! Component: 200  -  total flux cleaned = 0.000291408 Jy
! Total flux subtracted in 200 components = 0.000291408 Jy
! Clean residual min=-0.002766 max=0.003202 Jy/beam
! Clean residual mean=0.000376 rms=0.000794 Jy/beam
! Combined flux in latest and established models = 0.90334 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 150 components and 0.90334 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.208184Jy  sigma=0.001154
! Fit after  self-cal, rms=0.208185Jy  sigma=0.001154
! Inverting map 
! Your choice of large map pixels excluded 11.2% of the data.
!  The x-axis pixel size should ideally be below 0.1622 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.208185Jy  sigma=0.001154
! Fit after  self-cal, rms=0.208197Jy  sigma=0.001154
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 11.2% of the data.
!  The x-axis pixel size should ideally be below 0.1622 milli-arcsec
! Estimated beam: bmin=0.5294 mas, bmaj=1.213 mas, bpa=-0.5389 degrees
! Estimated noise=1125.23 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.564421 Jy
! Component: 100  -  total flux cleaned = 0.687723 Jy
! Component: 150  -  total flux cleaned = 0.724208 Jy
! Component: 200  -  total flux cleaned = 0.748306 Jy
! Total flux subtracted in 200 components = 0.748306 Jy
! Clean residual min=-0.007187 max=0.015289 Jy/beam
! Clean residual mean=0.000702 rms=0.003095 Jy/beam
! Combined flux in latest and established models = 0.748306 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.748306 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 11.2% of the data.
!  The x-axis pixel size should ideally be below 0.1622 milli-arcsec
! Estimated beam: bmin=0.6524 mas, bmaj=1.481 mas, bpa=0.8865 degrees
! Estimated noise=696.446 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.0332962 Jy
! Component: 100  -  total flux cleaned = 0.0576748 Jy
! Component: 150  -  total flux cleaned = 0.0760705 Jy
! Component: 200  -  total flux cleaned = 0.0901168 Jy
! Total flux subtracted in 200 components = 0.0901168 Jy
! Clean residual min=-0.004151 max=0.010011 Jy/beam
! Clean residual mean=0.001627 rms=0.002751 Jy/beam
! Combined flux in latest and established models = 0.838423 Jy
! Adding 48 model components to the UV plane model.
! The established model now contains 59 components and 0.838423 Jy
! Inverting map 
! Your choice of large map pixels excluded 11.2% of the data.
!  The x-axis pixel size should ideally be below 0.1622 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 11.2% of the data.
!  The x-axis pixel size should ideally be below 0.1622 milli-arcsec
! Estimated beam: bmin=2.072 mas, bmaj=3.482 mas, bpa=-5.421 degrees
! Estimated noise=895.12 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0224394 Jy
! Component: 100  -  total flux cleaned = 0.0362289 Jy
! Component: 150  -  total flux cleaned = 0.0455686 Jy
! Component: 200  -  total flux cleaned = 0.052035 Jy
! Total flux subtracted in 200 components = 0.052035 Jy
! Clean residual min=-0.003348 max=0.005715 Jy/beam
! Clean residual mean=0.001620 rms=0.001689 Jy/beam
! Combined flux in latest and established models = 0.890458 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.00457861 Jy
! Component: 100  -  total flux cleaned = 0.00788942 Jy
! Component: 150  -  total flux cleaned = 0.0103116 Jy
! Component: 200  -  total flux cleaned = 0.012095 Jy
! Total flux subtracted in 200 components = 0.012095 Jy
! Clean residual min=-0.003141 max=0.004080 Jy/beam
! Clean residual mean=0.000996 rms=0.001094 Jy/beam
! Combined flux in latest and established models = 0.902553 Jy
! Adding 94 model components to the UV plane model.
! The established model now contains 136 components and 0.902553 Jy
! Inverting map 
! Your choice of large map pixels excluded 11.2% of the data.
!  The x-axis pixel size should ideally be below 0.1622 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 11.2% of the data.
!  The x-axis pixel size should ideally be below 0.1622 milli-arcsec
! Estimated beam: bmin=0.6524 mas, bmaj=1.481 mas, bpa=0.8865 degrees
! Estimated noise=696.446 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 6.08735e-05 Jy
! Component: 100  -  total flux cleaned = -3.66325e-05 Jy
! Component: 150  -  total flux cleaned = -3.74461e-05 Jy
! Component: 200  -  total flux cleaned = 3.58878e-05 Jy
! Total flux subtracted in 200 components = 3.58878e-05 Jy
! Clean residual min=-0.002630 max=0.003385 Jy/beam
! Clean residual mean=0.000389 rms=0.000874 Jy/beam
! Combined flux in latest and established models = 0.902589 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 153 components and 0.902589 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.208307Jy  sigma=0.001155
! Fit after  self-cal, rms=0.208303Jy  sigma=0.001155
wmodel J0501-0159_X_2001_10_29_pus_map.mod
! Writing 153 model components to file: J0501-0159_X_2001_10_29_pus_map.mod
wobs J0501-0159_X_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J0501-0159_X_2001_10_29_pus_uvs.fits
wwins J0501-0159_X_2001_10_29_pus_map.win
! wwins: Wrote 4 windows to J0501-0159_X_2001_10_29_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 11.2% of the data.
!  The x-axis pixel size should ideally be below 0.1622 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00149432 Jy
! Component: 100  -  total flux cleaned = 0.00285231 Jy
! Component: 150  -  total flux cleaned = 0.00412682 Jy
! Component: 200  -  total flux cleaned = 0.00523725 Jy
! Component: 250  -  total flux cleaned = 0.00615939 Jy
! Component: 300  -  total flux cleaned = 0.00700454 Jy
! Component: 350  -  total flux cleaned = 0.00769303 Jy
! Component: 400  -  total flux cleaned = 0.00840232 Jy
! Component: 450  -  total flux cleaned = 0.00905073 Jy
! Component: 500  -  total flux cleaned = 0.00960331 Jy
! Component: 550  -  total flux cleaned = 0.00995035 Jy
! Component: 600  -  total flux cleaned = 0.0103651 Jy
! Component: 650  -  total flux cleaned = 0.010734 Jy
! Component: 700  -  total flux cleaned = 0.011131 Jy
! Component: 750  -  total flux cleaned = 0.0115205 Jy
! Component: 800  -  total flux cleaned = 0.0118682 Jy
! Component: 850  -  total flux cleaned = 0.0123122 Jy
! Component: 900  -  total flux cleaned = 0.0126479 Jy
! Component: 950  -  total flux cleaned = 0.0130769 Jy
! Component: 1000  -  total flux cleaned = 0.0133366 Jy
! Total flux subtracted in 1024 components = 0.0134973 Jy
! Clean residual min=-0.001987 max=0.002155 Jy/beam
! Clean residual mean=0.000219 rms=0.000618 Jy/beam
! Combined flux in latest and established models = 0.916086 Jy
keep
! Adding 72 model components to the UV plane model.
! The established model now contains 225 components and 0.916086 Jy
![Exited script file: muppet]
wmap "J0501-0159_X_2001_10_29_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 11.2% of the data.
!  The x-axis pixel size should ideally be below 0.1622 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6524 x 1.481 at 0.8865 degrees (North through East)
! Clean map  min=-0.0020695  max=0.72809 Jy/beam
! Writing clean map to FITS file: J0501-0159_X_2001_10_29_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.728087 
invert
! Inverting map 
! Your choice of large map pixels excluded 11.2% of the data.
!  The x-axis pixel size should ideally be below 0.1622 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00061726 
device "J0501-0159_X_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J0501-0159_X_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.254335 0.254335 0.50867 1.01734 2.03468 4.06936 8.13872 16.2774 32.5549 65.1098
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0018 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.728 
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.6524 x 1.481 at 0.8865 degrees (North through East)
! Clean map  min=-0.0020695  max=0.72809 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0501-0159_X_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J0501-0159_X_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0501-0159_X_2001_10_29_pus_uvs.log closed on Mon Feb 25 16:08:17 2008