! Started logfile: J0921-2618_X_2001_10_29_pus_uvs.log on Mon Feb 25 16:10:48 2008
obs J0921-2618_X_2001_10_29_pus_uva.fits
! Reading UV FITS file: J0921-2618_X_2001_10_29_pus_uva.fits
! AN table 1: 64 integrations on 153 of 153 possible baselines.
! AN table 2: 84 integrations on 153 of 153 possible baselines.
! AN table 3: 33 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.0549958 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0921-2618
! 
! 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 6092 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 J0921-2618_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 1019 telescope corrections were flagged in sub-array 1.
!  A total of 1347 telescope corrections were flagged in sub-array 2.
!  A total of 383 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1019 telescope corrections were flagged in sub-array 1.
!  A total of 1347 telescope corrections were flagged in sub-array 2.
!  A total of 383 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1019 telescope corrections were flagged in sub-array 1.
!  A total of 1347 telescope corrections were flagged in sub-array 2.
!  A total of 383 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1019 telescope corrections were flagged in sub-array 1.
!  A total of 1347 telescope corrections were flagged in sub-array 2.
!  A total of 383 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.350364Jy  sigma=0.010547
! Fit after  self-cal, rms=0.562310Jy  sigma=0.004719
! 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 0.593% of the data.
!  The x-axis pixel size should ideally be below 0.191 milli-arcsec
! Estimated beam: bmin=0.6964 mas, bmaj=1.358 mas, bpa=0.8697 degrees
! Estimated noise=2056.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 = 1.00293 Jy
! Component: 100  -  total flux cleaned = 1.325 Jy
! Total flux subtracted in 100 components = 1.325 Jy
! Clean residual min=-0.049816 max=0.149029 Jy/beam
! Clean residual mean=0.003383 rms=0.021027 Jy/beam
! Combined flux in latest and established models = 1.325 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 1.325 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.341191Jy  sigma=0.002771
! Fit after  self-cal, rms=0.341161Jy  sigma=0.002770
! Inverting map 
! Your choice of large map pixels excluded 0.593% of the data.
!  The x-axis pixel size should ideally be below 0.191 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.16195 Jy
! Component: 100  -  total flux cleaned = 0.243631 Jy
! Total flux subtracted in 100 components = 0.243631 Jy
! Clean residual min=-0.025704 max=0.051292 Jy/beam
! Clean residual mean=0.001292 rms=0.009180 Jy/beam
! Combined flux in latest and established models = 1.56863 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 7 components and 1.56863 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.228453Jy  sigma=0.001649
! Fit after  self-cal, rms=0.228515Jy  sigma=0.001649
! Inverting map 
! Your choice of large map pixels excluded 0.593% of the data.
!  The x-axis pixel size should ideally be below 0.191 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 0.593% of the data.
!  The x-axis pixel size should ideally be below 0.191 milli-arcsec
! Estimated beam: bmin=0.9692 mas, bmaj=2.109 mas, bpa=-5.12 degrees
! Estimated noise=1201.5 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.0673007 Jy
! Component: 100  -  total flux cleaned = 0.0999948 Jy
! Component: 150  -  total flux cleaned = 0.116661 Jy
! Component: 200  -  total flux cleaned = 0.12337 Jy
! Total flux subtracted in 200 components = 0.12337 Jy
! Clean residual min=-0.021027 max=0.033768 Jy/beam
! Clean residual mean=0.001009 rms=0.008034 Jy/beam
! Combined flux in latest and established models = 1.692 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 19 components and 1.692 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.213455Jy  sigma=0.001429
! Fit after  self-cal, rms=0.213382Jy  sigma=0.001429
! Inverting map 
! Your choice of large map pixels excluded 0.593% of the data.
!  The x-axis pixel size should ideally be below 0.191 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 93 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.97     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.99     MC        1.03     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00     
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.04     KK        1.00*    KP        1.00     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.08     
!   OV        1.03     PT        1.00     SC        0.94     TS        1.00*    
!   WF        0.97     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        0.97     KP        0.96     LA        0.96     
!   MA        1.00*    MC        1.00*    MK        0.95     NL        1.01     
!   OV        0.97     PT        0.96     SC        1.00     TS        1.00*    
!   WF        1.08     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 93 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.95     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.02     MC        1.01     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00     
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.02     KK        1.00*    KP        1.01     LA        0.99     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.03     
!   OV        1.04     PT        0.97     SC        0.92     TS        1.00*    
!   WF        0.96     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.05     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.03     KP        0.98     LA        0.94     
!   MA        1.00*    MC        1.00*    MK        0.94     NL        0.98     
!   OV        0.97     PT        0.94     SC        0.98     TS        1.00*    
!   WF        1.08     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 93 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.95     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.05     MC        1.00     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.01     
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.04     KK        1.00*    KP        1.03     LA        1.02     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.07     
!   OV        1.03     PT        1.02     SC        0.96     TS        1.00*    
!   WF        1.00     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        0.99     KP        0.98     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        0.98     NL        1.02     
!   OV        0.96     PT        0.98     SC        1.04     TS        1.00*    
!   WF        1.16     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 93 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.92     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.98     MC        1.04     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        0.98     
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.07     KK        1.00*    KP        1.03     LA        1.01     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.12     
!   OV        1.00     PT        1.02     SC        1.00     TS        1.00*    
!   WF        1.03     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.06     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00     KP        1.00     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        1.03     NL        1.05     
!   OV        0.95     PT        0.98     SC        1.07     TS        1.00*    
!   WF        1.14     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.213382Jy  sigma=0.001429
! Fit after  self-cal, rms=0.191625Jy  sigma=0.001237
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.641% of the data.
!  The x-axis pixel size should ideally be below 0.191 milli-arcsec
! Estimated beam: bmin=0.9454 mas, bmaj=2.283 mas, bpa=-5.58 degrees
! Estimated noise=1222.74 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.000731759 Jy
! Component: 100  -  total flux cleaned = -0.00085424 Jy
! Component: 150  -  total flux cleaned = -0.000954625 Jy
! Component: 200  -  total flux cleaned = -0.000958194 Jy
! Total flux subtracted in 200 components = -0.000958194 Jy
! Clean residual min=-0.009557 max=0.020289 Jy/beam
! Clean residual mean=0.000592 rms=0.004155 Jy/beam
! Combined flux in latest and established models = 1.69104 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 25 components and 1.69104 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.191459Jy  sigma=0.001236
! Fit after  self-cal, rms=0.191546Jy  sigma=0.001236
! Inverting map 
! Your choice of large map pixels excluded 0.641% of the data.
!  The x-axis pixel size should ideally be below 0.191 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.191546Jy  sigma=0.001236
! Fit after  self-cal, rms=0.191700Jy  sigma=0.001236
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.641% of the data.
!  The x-axis pixel size should ideally be below 0.191 milli-arcsec
! Estimated beam: bmin=0.9456 mas, bmaj=2.283 mas, bpa=-5.563 degrees
! Estimated noise=1223.23 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000129729 Jy
! Component: 100  -  total flux cleaned = -0.000234271 Jy
! Component: 150  -  total flux cleaned = -0.000331216 Jy
! Component: 200  -  total flux cleaned = -0.000333483 Jy
! Total flux subtracted in 200 components = -0.000333483 Jy
! Clean residual min=-0.009030 max=0.020061 Jy/beam
! Clean residual mean=0.000641 rms=0.004108 Jy/beam
! Combined flux in latest and established models = 1.69071 Jy
selfcal
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 25 components and 1.69071 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.191557Jy  sigma=0.001235
! Fit after  self-cal, rms=0.191551Jy  sigma=0.001235
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.641% of the data.
!  The x-axis pixel size should ideally be below 0.191 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.8, 1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0172705 Jy
! Component: 100  -  total flux cleaned = 0.0190145 Jy
! Component: 150  -  total flux cleaned = 0.0198065 Jy
! Component: 200  -  total flux cleaned = 0.020462 Jy
! Total flux subtracted in 200 components = 0.020462 Jy
! Clean residual min=-0.008183 max=0.012011 Jy/beam
! Clean residual mean=-0.000056 rms=0.002927 Jy/beam
! Combined flux in latest and established models = 1.71117 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 46 components and 1.71117 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.189847Jy  sigma=0.001217
! Fit after  self-cal, rms=0.189520Jy  sigma=0.001215
! Inverting map 
! Your choice of large map pixels excluded 0.641% of the data.
!  The x-axis pixel size should ideally be below 0.191 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.189520Jy  sigma=0.001215
! Fit after  self-cal, rms=0.189109Jy  sigma=0.001212
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.641% of the data.
!  The x-axis pixel size should ideally be below 0.191 milli-arcsec
! Estimated beam: bmin=0.946 mas, bmaj=2.278 mas, bpa=-5.523 degrees
! Estimated noise=1225.16 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00997533 Jy
! Component: 100  -  total flux cleaned = 0.0108866 Jy
! Component: 150  -  total flux cleaned = 0.0110661 Jy
! Component: 200  -  total flux cleaned = 0.0112132 Jy
! Total flux subtracted in 200 components = 0.0112132 Jy
! Clean residual min=-0.006401 max=0.008862 Jy/beam
! Clean residual mean=-0.000143 rms=0.002225 Jy/beam
! Combined flux in latest and established models = 1.72238 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 54 components and 1.72238 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188397Jy  sigma=0.001205
! Fit after  self-cal, rms=0.188264Jy  sigma=0.001204
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.641% of the data.
!  The x-axis pixel size should ideally be below 0.191 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.00231975 Jy
! Component: 100  -  total flux cleaned = 0.00232753 Jy
! Component: 150  -  total flux cleaned = 0.00221495 Jy
! Component: 200  -  total flux cleaned = 0.00211189 Jy
! Total flux subtracted in 200 components = 0.00211189 Jy
! Clean residual min=-0.007420 max=0.007684 Jy/beam
! Clean residual mean=-0.000224 rms=0.002155 Jy/beam
! Combined flux in latest and established models = 1.7245 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 59 components and 1.7245 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188017Jy  sigma=0.001202
! Fit after  self-cal, rms=0.187995Jy  sigma=0.001202
! Inverting map 
! Your choice of large map pixels excluded 0.641% of the data.
!  The x-axis pixel size should ideally be below 0.191 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.187995Jy  sigma=0.001202
! Fit after  self-cal, rms=0.187540Jy  sigma=0.001200
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.641% of the data.
!  The x-axis pixel size should ideally be below 0.191 milli-arcsec
! Estimated beam: bmin=2.201 mas, bmaj=5.101 mas, bpa=-0.8566 degrees
! Estimated noise=1447.63 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00318953 Jy
! Component: 100  -  total flux cleaned = 0.00362806 Jy
! Component: 150  -  total flux cleaned = 0.00396946 Jy
! Component: 200  -  total flux cleaned = 0.00408564 Jy
! Total flux subtracted in 200 components = 0.00408564 Jy
! Clean residual min=-0.005906 max=0.007296 Jy/beam
! Clean residual mean=-0.000219 rms=0.002207 Jy/beam
! Combined flux in latest and established models = 1.72858 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 77 components and 1.72858 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.187431Jy  sigma=0.001198
! Fit after  self-cal, rms=0.187330Jy  sigma=0.001198
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.641% of the data.
!  The x-axis pixel size should ideally be below 0.191 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.000761121 Jy
! Component: 100  -  total flux cleaned = 0.00100529 Jy
! Component: 150  -  total flux cleaned = 0.000952058 Jy
! Component: 200  -  total flux cleaned = 0.000902734 Jy
! Total flux subtracted in 200 components = 0.000902734 Jy
! Clean residual min=-0.006468 max=0.007205 Jy/beam
! Clean residual mean=-0.000282 rms=0.002256 Jy/beam
! Combined flux in latest and established models = 1.72949 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 83 components and 1.72948 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.187314Jy  sigma=0.001197
! Fit after  self-cal, rms=0.187262Jy  sigma=0.001197
! Inverting map 
! Your choice of large map pixels excluded 0.641% of the data.
!  The x-axis pixel size should ideally be below 0.191 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.641% of the data.
!  The x-axis pixel size should ideally be below 0.191 milli-arcsec
! Estimated beam: bmin=0.9462 mas, bmaj=2.275 mas, bpa=-5.463 degrees
! Estimated noise=1225.6 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9462 x 2.275 at -5.463 degrees (North through East)
! Clean map  min=-0.008506  max=1.3999 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.187262Jy  sigma=0.001197
! Fit after  self-cal, rms=0.173329Jy  sigma=0.001077
! Inverting map and beam 
! Your choice of large map pixels excluded 0.641% of the data.
!  The x-axis pixel size should ideally be below 0.191 milli-arcsec
! Estimated beam: bmin=0.9465 mas, bmaj=2.272 mas, bpa=-5.451 degrees
! Estimated noise=1224.5 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0028942 Jy
! Component: 100  -  total flux cleaned = 0.00321922 Jy
! Component: 150  -  total flux cleaned = 0.00321914 Jy
! Component: 200  -  total flux cleaned = 0.00321923 Jy
! Total flux subtracted in 200 components = 0.00321923 Jy
! Clean residual min=-0.005351 max=0.005212 Jy/beam
! Clean residual mean=-0.000071 rms=0.001496 Jy/beam
! Combined flux in latest and established models = 1.7327 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 86 components and 1.7327 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.173104Jy  sigma=0.001075
! Fit after  self-cal, rms=0.173099Jy  sigma=0.001075
! Inverting map 
! Your choice of large map pixels excluded 0.641% of the data.
!  The x-axis pixel size should ideally be below 0.191 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000466134 Jy
! Component: 100  -  total flux cleaned = 0.000542099 Jy
! Component: 150  -  total flux cleaned = 0.000477851 Jy
! Component: 200  -  total flux cleaned = 0.000413456 Jy
! Total flux subtracted in 200 components = 0.000413456 Jy
! Clean residual min=-0.005463 max=0.005228 Jy/beam
! Clean residual mean=-0.000084 rms=0.001492 Jy/beam
! Combined flux in latest and established models = 1.73312 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 90 components and 1.73312 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.172978Jy  sigma=0.001075
! Fit after  self-cal, rms=0.172983Jy  sigma=0.001075
! Inverting map 
! Your choice of large map pixels excluded 0.641% of the data.
!  The x-axis pixel size should ideally be below 0.191 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.172983Jy  sigma=0.001075
! Fit after  self-cal, rms=0.172745Jy  sigma=0.001074
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.641% of the data.
!  The x-axis pixel size should ideally be below 0.191 milli-arcsec
! Estimated beam: bmin=0.6939 mas, bmaj=1.383 mas, bpa=0.8216 degrees
! Estimated noise=2067.74 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.00665 Jy
! Component: 100  -  total flux cleaned = 1.33261 Jy
! Component: 150  -  total flux cleaned = 1.49658 Jy
! Component: 200  -  total flux cleaned = 1.57945 Jy
! Total flux subtracted in 200 components = 1.57945 Jy
! Clean residual min=-0.016836 max=0.038177 Jy/beam
! Clean residual mean=0.001572 rms=0.007102 Jy/beam
! Combined flux in latest and established models = 1.57945 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 7 model components to the UV plane model.
! The established model now contains 7 components and 1.57945 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 0.641% of the data.
!  The x-axis pixel size should ideally be below 0.191 milli-arcsec
! Estimated beam: bmin=0.9465 mas, bmaj=2.27 mas, bpa=-5.416 degrees
! Estimated noise=1224.32 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.0637422 Jy
! Component: 100  -  total flux cleaned = 0.0980732 Jy
! Component: 150  -  total flux cleaned = 0.118348 Jy
! Component: 200  -  total flux cleaned = 0.13157 Jy
! Total flux subtracted in 200 components = 0.13157 Jy
! Clean residual min=-0.006156 max=0.007874 Jy/beam
! Clean residual mean=0.000688 rms=0.002456 Jy/beam
! Combined flux in latest and established models = 1.71102 Jy
! Adding 34 model components to the UV plane model.
! The established model now contains 37 components and 1.71102 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.641% of the data.
!  The x-axis pixel size should ideally be below 0.191 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.641% of the data.
!  The x-axis pixel size should ideally be below 0.191 milli-arcsec
! Estimated beam: bmin=2.198 mas, bmaj=5.099 mas, bpa=-0.8214 degrees
! Estimated noise=1446.85 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0125044 Jy
! Component: 100  -  total flux cleaned = 0.018831 Jy
! Component: 150  -  total flux cleaned = 0.0212032 Jy
! Component: 200  -  total flux cleaned = 0.0217311 Jy
! Total flux subtracted in 200 components = 0.0217311 Jy
! Clean residual min=-0.004727 max=0.006233 Jy/beam
! Clean residual mean=-0.000010 rms=0.001938 Jy/beam
! Combined flux in latest and established models = 1.73275 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.000513348 Jy
! Component: 100  -  total flux cleaned = 0.00079318 Jy
! Component: 150  -  total flux cleaned = 0.00097131 Jy
! Component: 200  -  total flux cleaned = 0.00112794 Jy
! Total flux subtracted in 200 components = 0.00112794 Jy
! Clean residual min=-0.004415 max=0.005980 Jy/beam
! Clean residual mean=-0.000073 rms=0.001782 Jy/beam
! Combined flux in latest and established models = 1.73388 Jy
! Adding 47 model components to the UV plane model.
! The established model now contains 79 components and 1.73388 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.641% of the data.
!  The x-axis pixel size should ideally be below 0.191 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 0.641% of the data.
!  The x-axis pixel size should ideally be below 0.191 milli-arcsec
! Estimated beam: bmin=0.9465 mas, bmaj=2.27 mas, bpa=-5.416 degrees
! Estimated noise=1224.32 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000131183 Jy
! Component: 100  -  total flux cleaned = 2.54015e-05 Jy
! Component: 150  -  total flux cleaned = 0.00011801 Jy
! Component: 200  -  total flux cleaned = 0.000119063 Jy
! Total flux subtracted in 200 components = 0.000119063 Jy
! Clean residual min=-0.005226 max=0.005059 Jy/beam
! Clean residual mean=-0.000033 rms=0.001426 Jy/beam
! Combined flux in latest and established models = 1.734 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 92 components and 1.734 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.173067Jy  sigma=0.001077
! Fit after  self-cal, rms=0.173045Jy  sigma=0.001076
wmodel J0921-2618_X_2001_10_29_pus_map.mod
! Writing 92 model components to file: J0921-2618_X_2001_10_29_pus_map.mod
wobs J0921-2618_X_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J0921-2618_X_2001_10_29_pus_uvs.fits
wwins J0921-2618_X_2001_10_29_pus_map.win
! wwins: Wrote 2 windows to J0921-2618_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 0.641% of the data.
!  The x-axis pixel size should ideally be below 0.191 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000125788 Jy
! Component: 100  -  total flux cleaned = -0.000374247 Jy
! Component: 150  -  total flux cleaned = -0.000160133 Jy
! Component: 200  -  total flux cleaned = 4.7036e-05 Jy
! Component: 250  -  total flux cleaned = 0.000174305 Jy
! Component: 300  -  total flux cleaned = 0.000112548 Jy
! Component: 350  -  total flux cleaned = -3.51469e-06 Jy
! Component: 400  -  total flux cleaned = -0.000227253 Jy
! Component: 450  -  total flux cleaned = -0.000551028 Jy
! Component: 500  -  total flux cleaned = -0.000916907 Jy
! Component: 550  -  total flux cleaned = -0.00127339 Jy
! Component: 600  -  total flux cleaned = -0.00167036 Jy
! Component: 650  -  total flux cleaned = -0.0020086 Jy
! Component: 700  -  total flux cleaned = -0.00219762 Jy
! Component: 750  -  total flux cleaned = -0.00238305 Jy
! Component: 800  -  total flux cleaned = -0.00256547 Jy
! Component: 850  -  total flux cleaned = -0.00274373 Jy
! Component: 900  -  total flux cleaned = -0.00291961 Jy
! Component: 950  -  total flux cleaned = -0.00304965 Jy
! Component: 1000  -  total flux cleaned = -0.00326311 Jy
! Total flux subtracted in 1024 components = -0.00330533 Jy
! Clean residual min=-0.002228 max=0.002775 Jy/beam
! Clean residual mean=-0.000042 rms=0.000839 Jy/beam
! Combined flux in latest and established models = 1.7307 Jy
keep
! Adding 63 model components to the UV plane model.
! The established model now contains 154 components and 1.7307 Jy
![Exited script file: muppet]
wmap "J0921-2618_X_2001_10_29_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 0.641% of the data.
!  The x-axis pixel size should ideally be below 0.191 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9465 x 2.27 at -5.416 degrees (North through East)
! Clean map  min=-0.003634  max=1.4079 Jy/beam
! Writing clean map to FITS file: J0921-2618_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 1.40787 
invert
! Inverting map 
! Your choice of large map pixels excluded 0.641% of the data.
!  The x-axis pixel size should ideally be below 0.191 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000832232 
device "J0921-2618_X_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J0921-2618_X_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.177339 0.177339 0.354678 0.709355 1.41871 2.83742 5.67484 11.3497 22.6994 45.3987 90.7975
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0024 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.407 
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.9465 x 2.27 at -5.416 degrees (North through East)
! Clean map  min=-0.003634  max=1.4079 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0921-2618_X_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J0921-2618_X_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0921-2618_X_2001_10_29_pus_uvs.log closed on Mon Feb 25 16:10:52 2008