! Started logfile: J1517-2422_S_2003_09_17_pus_uvs.log on Tue May 22 13:52:39 2007
obs J1517-2422_S_2003_09_17_pus_uva.fits
! Reading UV FITS file: J1517-2422_S_2003_09_17_pus_uva.fits
! AN table 1: 43 integrations on 120 of 120 possible baselines.
! AN table 2: 150 integrations on 120 of 120 possible baselines.
! AN table 3: 45 integrations on 120 of 120 possible baselines.
! AN table 4: 17 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.0730065 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1517-2422
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.23697e+09        8e+06          1        8e+06
!  02        2  2.26697e+09        8e+06          1        8e+06
!  03        3  2.35697e+09        8e+06          1        8e+06
!  04        4  2.37697e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1736 lines of history.
! 
! Reading 8936 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 = 512 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
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 = 512x512 pixels with 0.500x0.500 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 688 telescope corrections were flagged in sub-array 1.
!  A total of 1857 telescope corrections were flagged in sub-array 2.
!  A total of 720 telescope corrections were flagged in sub-array 3.
!  A total of 156 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 688 telescope corrections were flagged in sub-array 1.
!  A total of 1857 telescope corrections were flagged in sub-array 2.
!  A total of 720 telescope corrections were flagged in sub-array 3.
!  A total of 156 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 688 telescope corrections were flagged in sub-array 1.
!  A total of 1857 telescope corrections were flagged in sub-array 2.
!  A total of 720 telescope corrections were flagged in sub-array 3.
!  A total of 156 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 688 telescope corrections were flagged in sub-array 1.
!  A total of 1857 telescope corrections were flagged in sub-array 2.
!  A total of 720 telescope corrections were flagged in sub-array 3.
!  A total of 156 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.555338Jy  sigma=0.003622
! Fit after  self-cal, rms=0.541056Jy  sigma=0.003518
! 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 
! Estimated beam: bmin=2.042 mas, bmaj=13.94 mas, bpa=1.462 degrees
! Estimated noise=1899.33 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.942207 Jy
! Component: 100  -  total flux cleaned = 1.23621 Jy
! Total flux subtracted in 100 components = 1.23621 Jy
! Clean residual min=-0.050251 max=0.132971 Jy/beam
! Clean residual mean=0.003101 rms=0.020573 Jy/beam
! Combined flux in latest and established models = 1.23621 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 18 components and 1.23621 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.397515Jy  sigma=0.002569
! Fit after  self-cal, rms=0.395223Jy  sigma=0.002554
! Inverting map 
! Added new window around map position (2, -5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.156663 Jy
! Component: 100  -  total flux cleaned = 0.254411 Jy
! Total flux subtracted in 100 components = 0.254411 Jy
! Clean residual min=-0.030849 max=0.080714 Jy/beam
! Clean residual mean=0.002080 rms=0.012869 Jy/beam
! Combined flux in latest and established models = 1.49062 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 49 components and 1.49062 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.281910Jy  sigma=0.001792
! Fit after  self-cal, rms=0.279429Jy  sigma=0.001776
! Inverting map 
! Added new window around map position (5, -12).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.085239 Jy
! Component: 100  -  total flux cleaned = 0.141154 Jy
! Total flux subtracted in 100 components = 0.141154 Jy
! Clean residual min=-0.022253 max=0.043293 Jy/beam
! Clean residual mean=0.001440 rms=0.009131 Jy/beam
! Combined flux in latest and established models = 1.63178 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 73 components and 1.63178 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.231270Jy  sigma=0.001449
! Fit after  self-cal, rms=0.229112Jy  sigma=0.001436
! Inverting map 
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 
! Estimated beam: bmin=2.319 mas, bmaj=19.45 mas, bpa=0.7719 degrees
! Estimated noise=1227.55 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.0823388 Jy
! Component: 100  -  total flux cleaned = 0.133789 Jy
! Component: 150  -  total flux cleaned = 0.169608 Jy
! Component: 200  -  total flux cleaned = 0.195463 Jy
! Total flux subtracted in 200 components = 0.195463 Jy
! Clean residual min=-0.011683 max=0.039862 Jy/beam
! Clean residual mean=0.008302 rms=0.006857 Jy/beam
! Combined flux in latest and established models = 1.82724 Jy
! Performing phase self-cal
! Adding 92 model components to the UV plane model.
! The established model now contains 157 components and 1.82724 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.193127Jy  sigma=0.001190
! Fit after  self-cal, rms=0.190870Jy  sigma=0.001175
! Inverting map 
! Added new window around map position (8.5, -17.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0395773 Jy
! Component: 100  -  total flux cleaned = 0.0599091 Jy
! Component: 150  -  total flux cleaned = 0.0741117 Jy
! Component: 200  -  total flux cleaned = 0.0846059 Jy
! Total flux subtracted in 200 components = 0.0846059 Jy
! Clean residual min=-0.008395 max=0.017447 Jy/beam
! Clean residual mean=0.002998 rms=0.003955 Jy/beam
! Combined flux in latest and established models = 1.91184 Jy
! Performing phase self-cal
! Adding 56 model components to the UV plane model.
! The established model now contains 210 components and 1.91184 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.182274Jy  sigma=0.001116
! Fit after  self-cal, rms=0.181397Jy  sigma=0.001110
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.01     GC        1.00*    HN        1.00*    KP        0.99     
!   LA        0.99     MK        0.99     NL        1.00     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        0.99     SC        1.00*    
!   TS        1.02     KK        1.01     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00     GC        1.00*    HN        1.01     KP        1.00     
!   LA        1.00     MK        1.00*    NL        0.99     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        1.00     SC        0.98     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.01     GC        1.00*    HN        1.00*    KP        0.99     
!   LA        0.99     MK        0.99     NL        1.00     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        0.99     SC        1.00*    
!   TS        1.01     KK        1.01     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00     GC        1.00*    HN        1.01     KP        1.00     
!   LA        1.00     MK        1.00*    NL        0.99     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        1.00     SC        0.98     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.01     GC        1.00*    HN        1.00*    KP        0.99     
!   LA        0.99     MK        0.99     NL        1.01     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        0.99     SC        1.00*    
!   TS        1.01     KK        1.01     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00     GC        1.00*    HN        1.01     KP        1.00     
!   LA        1.00     MK        1.00*    NL        1.00     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        1.00     SC        0.99     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.01     GC        1.00*    HN        1.00*    KP        0.99     
!   LA        0.99     MK        0.99     NL        1.01     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.99     SC        1.00*    
!   TS        1.00     KK        1.01     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00     GC        1.00*    HN        1.01     KP        1.00     
!   LA        1.00     MK        1.00*    NL        1.00     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        1.00     SC        0.99     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Fit before self-cal, rms=0.181397Jy  sigma=0.001110
! Fit after  self-cal, rms=0.180623Jy  sigma=0.001106
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.325 mas, bmaj=19.39 mas, bpa=0.7846 degrees
! Estimated noise=1224.1 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.0070561 Jy
! Component: 100  -  total flux cleaned = 0.00785844 Jy
! Component: 150  -  total flux cleaned = 0.00878325 Jy
! Component: 200  -  total flux cleaned = 0.0097795 Jy
! Total flux subtracted in 200 components = 0.0097795 Jy
! Clean residual min=-0.008777 max=0.011518 Jy/beam
! Clean residual mean=0.000594 rms=0.002977 Jy/beam
! Combined flux in latest and established models = 1.92162 Jy
! Performing phase self-cal
! Adding 47 model components to the UV plane model.
! The established model now contains 248 components and 1.92162 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.179927Jy  sigma=0.001101
! Fit after  self-cal, rms=0.179860Jy  sigma=0.001100
! Inverting map 
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.179860Jy  sigma=0.001100
! Fit after  self-cal, rms=0.179560Jy  sigma=0.001100
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.328 mas, bmaj=19.38 mas, bpa=0.7821 degrees
! Estimated noise=1223.61 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00372273 Jy
! Component: 100  -  total flux cleaned = 0.00455395 Jy
! Component: 150  -  total flux cleaned = 0.00546631 Jy
! Component: 200  -  total flux cleaned = 0.00627294 Jy
! Total flux subtracted in 200 components = 0.00627294 Jy
! Clean residual min=-0.008459 max=0.011110 Jy/beam
! Clean residual mean=0.000506 rms=0.002782 Jy/beam
! Combined flux in latest and established models = 1.9279 Jy
selfcal
! Performing phase self-cal
! Adding 44 model components to the UV plane model.
! The established model now contains 270 components and 1.9279 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.179171Jy  sigma=0.001097
! Fit after  self-cal, rms=0.179128Jy  sigma=0.001097
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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 (14, -20).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00965656 Jy
! Component: 100  -  total flux cleaned = 0.0101206 Jy
! Component: 150  -  total flux cleaned = 0.0103283 Jy
! Component: 200  -  total flux cleaned = 0.0105159 Jy
! Total flux subtracted in 200 components = 0.0105159 Jy
! Clean residual min=-0.008892 max=0.008955 Jy/beam
! Clean residual mean=-0.000202 rms=0.002590 Jy/beam
! Combined flux in latest and established models = 1.93841 Jy
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 304 components and 1.93841 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.178462Jy  sigma=0.001092
! Fit after  self-cal, rms=0.178392Jy  sigma=0.001091
! Inverting map 
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.178392Jy  sigma=0.001091
! Fit after  self-cal, rms=0.177959Jy  sigma=0.001090
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.331 mas, bmaj=19.38 mas, bpa=0.783 degrees
! Estimated noise=1223.22 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00626064 Jy
! Component: 100  -  total flux cleaned = 0.00896654 Jy
! Component: 150  -  total flux cleaned = 0.00967049 Jy
! Component: 200  -  total flux cleaned = 0.0101365 Jy
! Total flux subtracted in 200 components = 0.0101365 Jy
! Clean residual min=-0.008057 max=0.008237 Jy/beam
! Clean residual mean=-0.000027 rms=0.002365 Jy/beam
! Combined flux in latest and established models = 1.94855 Jy
selfcal
! Performing phase self-cal
! Adding 47 model components to the UV plane model.
! The established model now contains 333 components and 1.94855 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177557Jy  sigma=0.001087
! Fit after  self-cal, rms=0.177526Jy  sigma=0.001087
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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.00129812 Jy
! Component: 100  -  total flux cleaned = 0.00158711 Jy
! Component: 150  -  total flux cleaned = 0.00144752 Jy
! Component: 200  -  total flux cleaned = 0.00144884 Jy
! Total flux subtracted in 200 components = 0.00144884 Jy
! Clean residual min=-0.008486 max=0.007548 Jy/beam
! Clean residual mean=-0.000142 rms=0.002252 Jy/beam
! Combined flux in latest and established models = 1.95 Jy
! Performing phase self-cal
! Adding 48 model components to the UV plane model.
! The established model now contains 357 components and 1.95 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177340Jy  sigma=0.001085
! Fit after  self-cal, rms=0.177331Jy  sigma=0.001085
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 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.177331Jy  sigma=0.001085
! Fit after  self-cal, rms=0.177125Jy  sigma=0.001085
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.98 mas, bmaj=24.32 mas, bpa=3.459 degrees
! Estimated noise=1693.95 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0080632 Jy
! Component: 100  -  total flux cleaned = 0.00826787 Jy
! Component: 150  -  total flux cleaned = 0.00826837 Jy
! Component: 200  -  total flux cleaned = 0.00827906 Jy
! Total flux subtracted in 200 components = 0.00827906 Jy
! Clean residual min=-0.010187 max=0.010878 Jy/beam
! Clean residual mean=-0.000163 rms=0.003341 Jy/beam
! Combined flux in latest and established models = 1.95828 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 379 components and 1.95828 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177116Jy  sigma=0.001084
! Fit after  self-cal, rms=0.177096Jy  sigma=0.001084
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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.000358333 Jy
! Component: 100  -  total flux cleaned = 0.000231823 Jy
! Component: 150  -  total flux cleaned = -8.42148e-06 Jy
! Component: 200  -  total flux cleaned = -0.000229084 Jy
! Total flux subtracted in 200 components = -0.000229084 Jy
! Clean residual min=-0.010149 max=0.010740 Jy/beam
! Clean residual mean=-0.000186 rms=0.003228 Jy/beam
! Combined flux in latest and established models = 1.95805 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 397 components and 1.95805 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177114Jy  sigma=0.001084
! Fit after  self-cal, rms=0.177110Jy  sigma=0.001084
! Inverting map 
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 
! Estimated beam: bmin=2.333 mas, bmaj=19.39 mas, bpa=0.7817 degrees
! Estimated noise=1223.22 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.333 x 19.39 at 0.7817 degrees (North through East)
! Clean map  min=-0.0083558  max=1.2467 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.177110Jy  sigma=0.001084
! Fit after  self-cal, rms=0.176844Jy  sigma=0.001083
! Inverting map and beam 
! Estimated beam: bmin=2.337 mas, bmaj=19.39 mas, bpa=0.7798 degrees
! Estimated noise=1223.87 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00234955 Jy
! Component: 100  -  total flux cleaned = 0.00374378 Jy
! Component: 150  -  total flux cleaned = 0.0038864 Jy
! Component: 200  -  total flux cleaned = 0.00377376 Jy
! Total flux subtracted in 200 components = 0.00377376 Jy
! Clean residual min=-0.006942 max=0.007618 Jy/beam
! Clean residual mean=0.000239 rms=0.002112 Jy/beam
! Combined flux in latest and established models = 1.96182 Jy
! Performing phase self-cal
! Adding 46 model components to the UV plane model.
! The established model now contains 426 components and 1.96182 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.176620Jy  sigma=0.001081
! Fit after  self-cal, rms=0.176601Jy  sigma=0.001081
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000649299 Jy
! Component: 100  -  total flux cleaned = 0.00109105 Jy
! Component: 150  -  total flux cleaned = 0.00109148 Jy
! Component: 200  -  total flux cleaned = 0.00108893 Jy
! Total flux subtracted in 200 components = 0.00108893 Jy
! Clean residual min=-0.007067 max=0.007139 Jy/beam
! Clean residual mean=0.000169 rms=0.002043 Jy/beam
! Combined flux in latest and established models = 1.96291 Jy
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 442 components and 1.96291 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.176494Jy  sigma=0.001080
! Fit after  self-cal, rms=0.176489Jy  sigma=0.001080
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.176489Jy  sigma=0.001080
! Fit after  self-cal, rms=0.176366Jy  sigma=0.001080
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 
! Estimated beam: bmin=2.055 mas, bmaj=13.92 mas, bpa=1.478 degrees
! Estimated noise=1890.95 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.935238 Jy
! Component: 100  -  total flux cleaned = 1.23963 Jy
! Component: 150  -  total flux cleaned = 1.40001 Jy
! Component: 200  -  total flux cleaned = 1.50787 Jy
! Total flux subtracted in 200 components = 1.50787 Jy
! Clean residual min=-0.026716 max=0.060940 Jy/beam
! Clean residual mean=0.002033 rms=0.011431 Jy/beam
! Combined flux in latest and established models = 1.50787 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 41 model components to the UV plane model.
! The established model now contains 41 components and 1.50787 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.338 mas, bmaj=19.39 mas, bpa=0.7805 degrees
! Estimated noise=1223.61 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.134373 Jy
! Component: 100  -  total flux cleaned = 0.21958 Jy
! Component: 150  -  total flux cleaned = 0.278392 Jy
! Component: 200  -  total flux cleaned = 0.321412 Jy
! Total flux subtracted in 200 components = 0.321412 Jy
! Clean residual min=-0.009453 max=0.024429 Jy/beam
! Clean residual mean=0.008777 rms=0.006376 Jy/beam
! Combined flux in latest and established models = 1.82928 Jy
! Adding 100 model components to the UV plane model.
! The established model now contains 127 components and 1.82928 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.972 mas, bmaj=24.29 mas, bpa=3.459 degrees
! Estimated noise=1693.35 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0586845 Jy
! Component: 100  -  total flux cleaned = 0.0910846 Jy
! Component: 150  -  total flux cleaned = 0.109956 Jy
! Component: 200  -  total flux cleaned = 0.12119 Jy
! Total flux subtracted in 200 components = 0.12119 Jy
! Clean residual min=-0.006354 max=0.013117 Jy/beam
! Clean residual mean=0.002700 rms=0.003838 Jy/beam
! Combined flux in latest and established models = 1.95047 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.00545157 Jy
! Component: 100  -  total flux cleaned = 0.00729097 Jy
! Component: 150  -  total flux cleaned = 0.00875256 Jy
! Component: 200  -  total flux cleaned = 0.00968657 Jy
! Total flux subtracted in 200 components = 0.00968657 Jy
! Clean residual min=-0.006415 max=0.012176 Jy/beam
! Clean residual mean=0.001269 rms=0.003396 Jy/beam
! Combined flux in latest and established models = 1.96016 Jy
! Adding 123 model components to the UV plane model.
! The established model now contains 235 components and 1.96016 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.338 mas, bmaj=19.39 mas, bpa=0.7805 degrees
! Estimated noise=1223.61 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000707162 Jy
! Component: 100  -  total flux cleaned = -9.4064e-05 Jy
! Component: 150  -  total flux cleaned = 0.000257725 Jy
! Component: 200  -  total flux cleaned = 0.000411421 Jy
! Total flux subtracted in 200 components = 0.000411421 Jy
! Clean residual min=-0.005901 max=0.007792 Jy/beam
! Clean residual mean=0.000526 rms=0.002136 Jy/beam
! Combined flux in latest and established models = 1.96057 Jy
selfcal
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 267 components and 1.96057 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.176506Jy  sigma=0.001081
! Fit after  self-cal, rms=0.176400Jy  sigma=0.001080
wmodel J1517-2422_S_2003_09_17_pus_map.mod
! Writing 267 model components to file: J1517-2422_S_2003_09_17_pus_map.mod
wobs J1517-2422_S_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J1517-2422_S_2003_09_17_pus_uvs.fits
wwins J1517-2422_S_2003_09_17_pus_map.win
! wwins: Wrote 5 windows to J1517-2422_S_2003_09_17_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00277453 Jy
! Component: 100  -  total flux cleaned = 0.00425451 Jy
! Component: 150  -  total flux cleaned = 0.00530937 Jy
! Component: 200  -  total flux cleaned = 0.00570488 Jy
! Component: 250  -  total flux cleaned = 0.00598822 Jy
! Component: 300  -  total flux cleaned = 0.00607927 Jy
! Component: 350  -  total flux cleaned = 0.00625377 Jy
! Component: 400  -  total flux cleaned = 0.00633751 Jy
! Component: 450  -  total flux cleaned = 0.00641908 Jy
! Component: 500  -  total flux cleaned = 0.00649603 Jy
! Component: 550  -  total flux cleaned = 0.00649508 Jy
! Component: 600  -  total flux cleaned = 0.00642141 Jy
! Component: 650  -  total flux cleaned = 0.00635019 Jy
! Component: 700  -  total flux cleaned = 0.00634953 Jy
! Component: 750  -  total flux cleaned = 0.00628076 Jy
! Component: 800  -  total flux cleaned = 0.00634657 Jy
! Component: 850  -  total flux cleaned = 0.00634579 Jy
! Component: 900  -  total flux cleaned = 0.00647328 Jy
! Component: 950  -  total flux cleaned = 0.00659769 Jy
! Component: 1000  -  total flux cleaned = 0.00665929 Jy
! Component: 1050  -  total flux cleaned = 0.00672009 Jy
! Component: 1100  -  total flux cleaned = 0.00689854 Jy
! Component: 1150  -  total flux cleaned = 0.0069567 Jy
! Component: 1200  -  total flux cleaned = 0.00701445 Jy
! Component: 1250  -  total flux cleaned = 0.00712848 Jy
! Component: 1300  -  total flux cleaned = 0.00718483 Jy
! Component: 1350  -  total flux cleaned = 0.00724042 Jy
! Component: 1400  -  total flux cleaned = 0.00729545 Jy
! Component: 1450  -  total flux cleaned = 0.00740381 Jy
! Component: 1500  -  total flux cleaned = 0.00745745 Jy
! Component: 1550  -  total flux cleaned = 0.00751044 Jy
! Component: 1600  -  total flux cleaned = 0.00761452 Jy
! Component: 1650  -  total flux cleaned = 0.00761439 Jy
! Component: 1700  -  total flux cleaned = 0.00766495 Jy
! Component: 1750  -  total flux cleaned = 0.00771511 Jy
! Component: 1800  -  total flux cleaned = 0.00771514 Jy
! Component: 1850  -  total flux cleaned = 0.00781308 Jy
! Component: 1900  -  total flux cleaned = 0.00781268 Jy
! Component: 1950  -  total flux cleaned = 0.00786024 Jy
! Component: 2000  -  total flux cleaned = 0.007907 Jy
! Total flux subtracted in 2048 components = 0.0079069 Jy
! Clean residual min=-0.002506 max=0.002778 Jy/beam
! Clean residual mean=0.000056 rms=0.001093 Jy/beam
! Combined flux in latest and established models = 1.96847 Jy
keep
! Adding 205 model components to the UV plane model.
! The established model now contains 472 components and 1.96847 Jy
wmap "J1517-2422_S_2003_09_17_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.338 x 19.39 at 0.7805 degrees (North through East)
! Clean map  min=-0.0058405  max=1.2502 Jy/beam
! Writing clean map to FITS file: J1517-2422_S_2003_09_17_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.25017 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00110615 
device "J1517-2422_S_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J1517-2422_S_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.265441 0.265441 0.530881 1.06176 2.12352 4.24705 8.4941 16.9882 33.9764 67.9528
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0033 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.25 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.338 x 19.39 at 0.7805 degrees (North through East)
! Clean map  min=-0.0058405  max=1.2502 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1517-2422_S_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J1517-2422_S_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1517-2422_S_2003_09_17_pus_uvs.log closed on Tue May 22 13:54:04 2007