! Started logfile: J0921-2618_X_2000_05_22_pus_uvs.log on Mon Nov 12 16:21:46 2007
obs J0921-2618_X_2000_05_22_pus_uva.fits
! Reading UV FITS file: J0921-2618_X_2000_05_22_pus_uva.fits
! AN table 1: 55 integrations on 190 of 190 possible baselines.
! AN table 2: 50 integrations on 190 of 190 possible baselines.
! AN table 3: 88 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.067003 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 1884 lines of history.
! 
! Reading 9828 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_2000_05_22_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 949 telescope corrections were flagged in sub-array 1.
!  A total of 771 telescope corrections were flagged in sub-array 2.
!  A total of 1354 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 949 telescope corrections were flagged in sub-array 1.
!  A total of 771 telescope corrections were flagged in sub-array 2.
!  A total of 1354 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 949 telescope corrections were flagged in sub-array 1.
!  A total of 770 telescope corrections were flagged in sub-array 2.
!  A total of 1354 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 949 telescope corrections were flagged in sub-array 1.
!  A total of 770 telescope corrections were flagged in sub-array 2.
!  A total of 1354 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.861641Jy  sigma=0.008476
! Fit after  self-cal, rms=0.417063Jy  sigma=0.004010
! 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.46% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
! Estimated beam: bmin=0.6481 mas, bmaj=1.873 mas, bpa=-1.139 degrees
! Estimated noise=1227.29 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.731355 Jy
! Component: 100  -  total flux cleaned = 0.956858 Jy
! Total flux subtracted in 100 components = 0.956858 Jy
! Clean residual min=-0.046825 max=0.105683 Jy/beam
! Clean residual mean=0.000808 rms=0.017551 Jy/beam
! Combined flux in latest and established models = 0.956858 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.956858 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.386187Jy  sigma=0.003829
! Fit after  self-cal, rms=0.386027Jy  sigma=0.003829
! Inverting map 
! Your choice of large map pixels excluded 1.46% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.120803 Jy
! Component: 100  -  total flux cleaned = 0.194789 Jy
! Total flux subtracted in 100 components = 0.194789 Jy
! Clean residual min=-0.041182 max=0.063902 Jy/beam
! Clean residual mean=-0.000126 rms=0.012632 Jy/beam
! Combined flux in latest and established models = 1.15165 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 16 components and 1.15165 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.344597Jy  sigma=0.003028
! Fit after  self-cal, rms=0.344306Jy  sigma=0.003027
! Inverting map 
! Your choice of large map pixels excluded 1.46% of the data.
!  The x-axis pixel size should ideally be below 0.1863 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.46% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
! Estimated beam: bmin=0.8352 mas, bmaj=2.423 mas, bpa=-2.951 degrees
! Estimated noise=732.404 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.0664438 Jy
! Component: 100  -  total flux cleaned = 0.0990189 Jy
! Component: 150  -  total flux cleaned = 0.107127 Jy
! Component: 200  -  total flux cleaned = 0.109147 Jy
! Total flux subtracted in 200 components = 0.109147 Jy
! Clean residual min=-0.048847 max=0.058616 Jy/beam
! Clean residual mean=-0.006552 rms=0.016115 Jy/beam
! Combined flux in latest and established models = 1.26079 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 22 components and 1.26079 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.336999Jy  sigma=0.002811
! Fit after  self-cal, rms=0.336723Jy  sigma=0.002810
! Inverting map 
! Your choice of large map pixels excluded 1.46% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 111 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.96     HN        1.00*    KK        1.00*    KP        1.00*    
!   MA        0.87     MC        1.01     MK        1.00*    NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.19     LA        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.94     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.01     KK        1.00*    KP        0.99     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        0.95     
!   NY        1.00*    OV        0.98     PT        0.99     SC        1.06     
!   TS        1.00*    WF       12.94     WZ        1.00*    LA        1.00     
! 
!  A total of 129 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.91     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.21     KK        0.96     KP        0.93     
!   MA        1.00*    MC        1.00*    MK        0.92     NL        0.93     
!   NY        1.00*    OV        0.96     PT        0.91     SC        1.01     
!   TS        1.03     WF        1.04     WZ        1.00*    LA        0.95     
! 
! 
! Correcting IF 2.
!  A total of 111 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.01     HN        1.00*    KK        1.00*    KP        1.00*    
!   MA        0.97     MC        1.09     MK        1.00*    NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.16     LA        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.01     KK        1.00*    KP        0.94     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        0.99     
!   NY        1.00*    OV        1.01     PT        0.95     SC        1.07     
!   TS        1.00*    WF       15.30     WZ        1.00*    LA        0.96     
! 
!  A total of 129 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.96     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.23     KK        0.97     KP        0.89     
!   MA        1.00*    MC        1.00*    MK        0.91     NL        0.96     
!   NY        1.00*    OV        0.98     PT        0.87     SC        1.01     
!   TS        1.04     WF        1.09     WZ        1.00*    LA        0.91     
! 
! 
! Correcting IF 3.
!  A total of 111 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.90     HN        1.00*    KK        1.00*    KP        1.00*    
!   MA        1.00     MC        0.99     MK        1.00*    NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.23     LA        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.97     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.00*    KP        1.00     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        0.98     
!   NY        1.00*    OV        0.98     PT        0.97     SC        1.06     
!   TS        1.00*    WF       12.07     WZ        1.00*    LA        1.01     
! 
!  A total of 129 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.95     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.22     KK        0.97     KP        0.93     
!   MA        1.00*    MC        1.00*    MK        0.94     NL        0.94     
!   NY        1.00*    OV        0.96     PT        0.90     SC        1.01     
!   TS        1.02     WF        1.10     WZ        1.00*    LA        0.96     
! 
! 
! Correcting IF 4.
!  A total of 111 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.88     HN        1.00*    KK        1.00*    KP        1.00*    
!   MA        0.99     MC        0.96     MK        1.00*    NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.31     LA        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.96     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.01     KK        1.00*    KP        0.98     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        0.98     
!   NY        1.00*    OV        0.97     PT        0.99     SC        1.06     
!   TS        1.00*    WF       10.27     WZ        1.00*    LA        0.98     
! 
!  A total of 129 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.94     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.23     KK        0.98     KP        0.92     
!   MA        1.00*    MC        1.00*    MK        0.97     NL        0.94     
!   NY        1.00*    OV        0.96     PT        0.91     SC        1.01     
!   TS        1.04     WF        1.06     WZ        1.00*    LA        0.92     
! 
! 
! Fit before self-cal, rms=0.336723Jy  sigma=0.002810
! Fit after  self-cal, rms=0.852311Jy  sigma=0.001662
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 1.63% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
! Estimated beam: bmin=0.8484 mas, bmaj=2.621 mas, bpa=-3.769 degrees
! Estimated noise=762.861 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.0146364 Jy
! Component: 100  -  total flux cleaned = -0.0156758 Jy
! Component: 150  -  total flux cleaned = -0.0165219 Jy
! Component: 200  -  total flux cleaned = -0.0168653 Jy
! Total flux subtracted in 200 components = -0.0168653 Jy
! Clean residual min=-0.021585 max=0.022852 Jy/beam
! Clean residual mean=-0.001837 rms=0.005091 Jy/beam
! Combined flux in latest and established models = 1.24393 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 26 components and 1.24393 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.851650Jy  sigma=0.001632
! Fit after  self-cal, rms=0.854233Jy  sigma=0.001630
! Inverting map 
! Your choice of large map pixels excluded 1.63% of the data.
!  The x-axis pixel size should ideally be below 0.1863 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.854233Jy  sigma=0.001630
! Fit after  self-cal, rms=0.876113Jy  sigma=0.001532
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.63% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
! Estimated beam: bmin=0.8503 mas, bmaj=2.612 mas, bpa=-3.83 degrees
! Estimated noise=760.647 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00736605 Jy
! Component: 100  -  total flux cleaned = -0.00765872 Jy
! Component: 150  -  total flux cleaned = -0.00765191 Jy
! Component: 200  -  total flux cleaned = -0.00788374 Jy
! Total flux subtracted in 200 components = -0.00788374 Jy
! Clean residual min=-0.012736 max=0.019793 Jy/beam
! Clean residual mean=0.000854 rms=0.003840 Jy/beam
! Combined flux in latest and established models = 1.23604 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 28 components and 1.23604 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.875868Jy  sigma=0.001522
! Fit after  self-cal, rms=0.876292Jy  sigma=0.001522
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.63% of the data.
!  The x-axis pixel size should ideally be below 0.1863 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.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0153599 Jy
! Component: 100  -  total flux cleaned = 0.0184377 Jy
! Component: 150  -  total flux cleaned = 0.0194414 Jy
! Component: 200  -  total flux cleaned = 0.0197076 Jy
! Total flux subtracted in 200 components = 0.0197076 Jy
! Clean residual min=-0.010146 max=0.011336 Jy/beam
! Clean residual mean=0.000272 rms=0.002992 Jy/beam
! Combined flux in latest and established models = 1.25575 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 50 components and 1.25575 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.875683Jy  sigma=0.001493
! Fit after  self-cal, rms=0.875217Jy  sigma=0.001488
! Inverting map 
! Your choice of large map pixels excluded 1.63% of the data.
!  The x-axis pixel size should ideally be below 0.1863 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.875217Jy  sigma=0.001488
! Fit after  self-cal, rms=0.891169Jy  sigma=0.001483
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.63% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
! Estimated beam: bmin=0.8523 mas, bmaj=2.607 mas, bpa=-3.701 degrees
! Estimated noise=759.555 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00427268 Jy
! Component: 100  -  total flux cleaned = 0.0045859 Jy
! Component: 150  -  total flux cleaned = 0.00515665 Jy
! Component: 200  -  total flux cleaned = 0.0056271 Jy
! Total flux subtracted in 200 components = 0.0056271 Jy
! Clean residual min=-0.008346 max=0.009166 Jy/beam
! Clean residual mean=0.000314 rms=0.002474 Jy/beam
! Combined flux in latest and established models = 1.26138 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 68 components and 1.26138 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.890888Jy  sigma=0.001469
! Fit after  self-cal, rms=0.890782Jy  sigma=0.001467
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.63% of the data.
!  The x-axis pixel size should ideally be below 0.1863 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.00305754 Jy
! Component: 100  -  total flux cleaned = 0.00347182 Jy
! Component: 150  -  total flux cleaned = 0.00403027 Jy
! Component: 200  -  total flux cleaned = 0.00436813 Jy
! Total flux subtracted in 200 components = 0.00436813 Jy
! Clean residual min=-0.007859 max=0.008614 Jy/beam
! Clean residual mean=0.000187 rms=0.002343 Jy/beam
! Combined flux in latest and established models = 1.26575 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 82 components and 1.26575 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.890677Jy  sigma=0.001462
! Fit after  self-cal, rms=0.890653Jy  sigma=0.001462
! Inverting map 
! Your choice of large map pixels excluded 1.63% of the data.
!  The x-axis pixel size should ideally be below 0.1863 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.890653Jy  sigma=0.001462
! Fit after  self-cal, rms=0.894781Jy  sigma=0.001458
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.63% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
! Estimated beam: bmin=2.245 mas, bmaj=5.388 mas, bpa=-1.396 degrees
! Estimated noise=882.594 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0058821 Jy
! Component: 100  -  total flux cleaned = 0.0055076 Jy
! Component: 150  -  total flux cleaned = 0.00517535 Jy
! Component: 200  -  total flux cleaned = 0.00475128 Jy
! Total flux subtracted in 200 components = 0.00475128 Jy
! Clean residual min=-0.007069 max=0.010788 Jy/beam
! Clean residual mean=0.000406 rms=0.002784 Jy/beam
! Combined flux in latest and established models = 1.2705 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 90 components and 1.2705 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.894706Jy  sigma=0.001453
! Fit after  self-cal, rms=0.894734Jy  sigma=0.001452
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.63% of the data.
!  The x-axis pixel size should ideally be below 0.1863 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.00161458 Jy
! Component: 100  -  total flux cleaned = 0.00133037 Jy
! Component: 150  -  total flux cleaned = 0.00108625 Jy
! Component: 200  -  total flux cleaned = 0.000869532 Jy
! Total flux subtracted in 200 components = 0.000869532 Jy
! Clean residual min=-0.006347 max=0.010383 Jy/beam
! Clean residual mean=0.000348 rms=0.002717 Jy/beam
! Combined flux in latest and established models = 1.27137 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 92 components and 1.27137 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.894716Jy  sigma=0.001450
! Fit after  self-cal, rms=0.894701Jy  sigma=0.001449
! Inverting map 
! Your choice of large map pixels excluded 1.63% of the data.
!  The x-axis pixel size should ideally be below 0.1863 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 1.63% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
! Estimated beam: bmin=0.8548 mas, bmaj=2.607 mas, bpa=-3.649 degrees
! Estimated noise=758.605 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8548 x 2.607 at -3.649 degrees (North through East)
! Clean map  min=-0.0063282  max=0.98794 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.894701Jy  sigma=0.001449
! Fit after  self-cal, rms=3.628162Jy  sigma=0.001344
! Inverting map and beam 
! Your choice of large map pixels excluded 1.63% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
! Estimated beam: bmin=0.8557 mas, bmaj=2.606 mas, bpa=-3.663 degrees
! Estimated noise=757.233 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000805749 Jy
! Component: 100  -  total flux cleaned = -0.00112184 Jy
! Component: 150  -  total flux cleaned = -0.000881584 Jy
! Component: 200  -  total flux cleaned = -0.000668151 Jy
! Total flux subtracted in 200 components = -0.000668151 Jy
! Clean residual min=-0.006207 max=0.007362 Jy/beam
! Clean residual mean=0.000222 rms=0.001791 Jy/beam
! Combined flux in latest and established models = 1.2707 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 101 components and 1.2707 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=3.628163Jy  sigma=0.001342
! Fit after  self-cal, rms=3.627753Jy  sigma=0.001342
! Inverting map 
! Your choice of large map pixels excluded 1.63% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00108283 Jy
! Component: 100  -  total flux cleaned = 0.00137968 Jy
! Component: 150  -  total flux cleaned = 0.00165689 Jy
! Component: 200  -  total flux cleaned = 0.00182867 Jy
! Total flux subtracted in 200 components = 0.00182867 Jy
! Clean residual min=-0.006089 max=0.007150 Jy/beam
! Clean residual mean=0.000173 rms=0.001752 Jy/beam
! Combined flux in latest and established models = 1.27253 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 107 components and 1.27253 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=3.627744Jy  sigma=0.001341
! Fit after  self-cal, rms=3.627343Jy  sigma=0.001341
! Inverting map 
! Your choice of large map pixels excluded 1.63% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=3.627343Jy  sigma=0.001341
! Fit after  self-cal, rms=4.318852Jy  sigma=0.001340
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 1.63% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
! Estimated beam: bmin=0.665 mas, bmaj=1.871 mas, bpa=-1.771 degrees
! Estimated noise=1262.15 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.729596 Jy
! Component: 100  -  total flux cleaned = 0.945814 Jy
! Component: 150  -  total flux cleaned = 1.05484 Jy
! Component: 200  -  total flux cleaned = 1.116 Jy
! Total flux subtracted in 200 components = 1.116 Jy
! Clean residual min=-0.012062 max=0.031948 Jy/beam
! Clean residual mean=0.000763 rms=0.005532 Jy/beam
! Combined flux in latest and established models = 1.116 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 19 model components to the UV plane model.
! The established model now contains 19 components and 1.116 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 1.63% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
! Estimated beam: bmin=0.8573 mas, bmaj=2.605 mas, bpa=-3.622 degrees
! Estimated noise=756.967 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.0631767 Jy
! Component: 100  -  total flux cleaned = 0.0980399 Jy
! Component: 150  -  total flux cleaned = 0.118622 Jy
! Component: 200  -  total flux cleaned = 0.131708 Jy
! Total flux subtracted in 200 components = 0.131708 Jy
! Clean residual min=-0.005490 max=0.009261 Jy/beam
! Clean residual mean=0.000845 rms=0.002278 Jy/beam
! Combined flux in latest and established models = 1.24771 Jy
! Adding 56 model components to the UV plane model.
! The established model now contains 64 components and 1.24771 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.63% of the data.
!  The x-axis pixel size should ideally be below 0.1863 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 1.63% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
! Estimated beam: bmin=2.24 mas, bmaj=5.378 mas, bpa=-1.351 degrees
! Estimated noise=880.415 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0125738 Jy
! Component: 100  -  total flux cleaned = 0.0187784 Jy
! Component: 150  -  total flux cleaned = 0.0221523 Jy
! Component: 200  -  total flux cleaned = 0.0236634 Jy
! Total flux subtracted in 200 components = 0.0236634 Jy
! Clean residual min=-0.003979 max=0.009666 Jy/beam
! Clean residual mean=0.000432 rms=0.002346 Jy/beam
! Combined flux in latest and established models = 1.27138 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.000385411 Jy
! Component: 100  -  total flux cleaned = 0.000647676 Jy
! Component: 150  -  total flux cleaned = 0.000831672 Jy
! Component: 200  -  total flux cleaned = 0.000897659 Jy
! Total flux subtracted in 200 components = 0.000897659 Jy
! Clean residual min=-0.004004 max=0.009594 Jy/beam
! Clean residual mean=0.000384 rms=0.002320 Jy/beam
! Combined flux in latest and established models = 1.27227 Jy
! Adding 49 model components to the UV plane model.
! The established model now contains 108 components and 1.27227 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.63% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 1.63% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
! Estimated beam: bmin=0.8573 mas, bmaj=2.605 mas, bpa=-3.622 degrees
! Estimated noise=756.967 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00182278 Jy
! Component: 100  -  total flux cleaned = -0.00170139 Jy
! Component: 150  -  total flux cleaned = -0.00170237 Jy
! Component: 200  -  total flux cleaned = -0.0016034 Jy
! Total flux subtracted in 200 components = -0.0016034 Jy
! Clean residual min=-0.004613 max=0.007293 Jy/beam
! Clean residual mean=0.000226 rms=0.001658 Jy/beam
! Combined flux in latest and established models = 1.27067 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 119 components and 1.27067 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=4.318974Jy  sigma=0.001342
! Fit after  self-cal, rms=4.319150Jy  sigma=0.001340
wmodel J0921-2618_X_2000_05_22_pus_map.mod
! Writing 119 model components to file: J0921-2618_X_2000_05_22_pus_map.mod
wobs J0921-2618_X_2000_05_22_pus_uvs.fits
! Writing UV FITS file: J0921-2618_X_2000_05_22_pus_uvs.fits
wwins J0921-2618_X_2000_05_22_pus_map.win
! wwins: Wrote 2 windows to J0921-2618_X_2000_05_22_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 1.63% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00309335 Jy
! Component: 100  -  total flux cleaned = 0.0043375 Jy
! Component: 150  -  total flux cleaned = 0.00543542 Jy
! Component: 200  -  total flux cleaned = 0.00582171 Jy
! Component: 250  -  total flux cleaned = 0.00626185 Jy
! Component: 300  -  total flux cleaned = 0.00654098 Jy
! Component: 350  -  total flux cleaned = 0.00687158 Jy
! Component: 400  -  total flux cleaned = 0.00712549 Jy
! Component: 450  -  total flux cleaned = 0.00743088 Jy
! Component: 500  -  total flux cleaned = 0.00772608 Jy
! Component: 550  -  total flux cleaned = 0.00789878 Jy
! Component: 600  -  total flux cleaned = 0.00806509 Jy
! Component: 650  -  total flux cleaned = 0.00822657 Jy
! Component: 700  -  total flux cleaned = 0.00827937 Jy
! Component: 750  -  total flux cleaned = 0.00838295 Jy
! Component: 800  -  total flux cleaned = 0.0085342 Jy
! Component: 850  -  total flux cleaned = 0.00863207 Jy
! Component: 900  -  total flux cleaned = 0.00872782 Jy
! Component: 950  -  total flux cleaned = 0.0087272 Jy
! Component: 1000  -  total flux cleaned = 0.00877224 Jy
! Total flux subtracted in 1024 components = 0.00872646 Jy
! Clean residual min=-0.002942 max=0.002261 Jy/beam
! Clean residual mean=0.000024 rms=0.000975 Jy/beam
! Combined flux in latest and established models = 1.2794 Jy
keep
! Adding 60 model components to the UV plane model.
! The established model now contains 179 components and 1.2794 Jy
![Exited script file: muppet]
wmap "J0921-2618_X_2000_05_22_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 1.63% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8573 x 2.605 at -3.622 degrees (North through East)
! Clean map  min=-0.0045304  max=0.99783 Jy/beam
! Writing clean map to FITS file: J0921-2618_X_2000_05_22_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.99783 
invert
! Inverting map 
! Your choice of large map pixels excluded 1.63% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000975033 
device "J0921-2618_X_2000_05_22_pus\_map.eps/VPS"
! Attempting to open device: 'J0921-2618_X_2000_05_22_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.293146 0.293146 0.586292 1.17258 2.34517 4.69034 9.38067 18.7613 37.5227 75.0454
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0029 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.997 
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.8573 x 2.605 at -3.622 degrees (North through East)
! Clean map  min=-0.0045304  max=0.99783 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0921-2618_X_2000_05_22_pus\_map.gif/vgif"
! Attempting to open device: 'J0921-2618_X_2000_05_22_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0921-2618_X_2000_05_22_pus_uvs.log closed on Mon Nov 12 16:21:52 2007