! Started logfile: J1517-2422_X_2000_12_04_pus_uvs.log on Fri Oct 12 17:31:51 2007
obs J1517-2422_X_2000_12_04_pus_uva.fits
! Reading UV FITS file: J1517-2422_X_2000_12_04_pus_uva.fits
! AN table 1: 173 integrations on 190 of 190 possible baselines.
! AN table 2: 91 integrations on 190 of 190 possible baselines.
! AN table 3: 14 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0503218 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1517-2422
! 
! 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 2126 lines of history.
! 
! Reading 10632 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.2 
print "taper_size =",taper_size
! taper_size = 70 
![@muppet J1517-2422_X_2000_12_04_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 = 512x512 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 3371 telescope corrections were flagged in sub-array 1.
!  A total of 1295 telescope corrections were flagged in sub-array 2.
!  A total of 165 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 3371 telescope corrections were flagged in sub-array 1.
!  A total of 1295 telescope corrections were flagged in sub-array 2.
!  A total of 165 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 3371 telescope corrections were flagged in sub-array 1.
!  A total of 1295 telescope corrections were flagged in sub-array 2.
!  A total of 165 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 3371 telescope corrections were flagged in sub-array 1.
!  A total of 1295 telescope corrections were flagged in sub-array 2.
!  A total of 165 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.962115Jy  sigma=0.008057
! Fit after  self-cal, rms=0.404517Jy  sigma=0.003891
! 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=0.7169 mas, bmaj=1.758 mas, bpa=4.724 degrees
! Estimated noise=1149.71 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.700961 Jy
! Component: 100  -  total flux cleaned = 0.938016 Jy
! Total flux subtracted in 100 components = 0.938016 Jy
! Clean residual min=-0.045975 max=0.125095 Jy/beam
! Clean residual mean=0.000298 rms=0.015069 Jy/beam
! Combined flux in latest and established models = 0.938016 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 11 components and 0.938016 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.351097Jy  sigma=0.003582
! Fit after  self-cal, rms=0.350752Jy  sigma=0.003580
! Inverting map 
! Added new window around map position (0.6, -2.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.130758 Jy
! Component: 100  -  total flux cleaned = 0.211436 Jy
! Total flux subtracted in 100 components = 0.211436 Jy
! Clean residual min=-0.038445 max=0.058318 Jy/beam
! Clean residual mean=0.000217 rms=0.010294 Jy/beam
! Combined flux in latest and established models = 1.14945 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 26 components and 1.14945 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.273845Jy  sigma=0.002696
! Fit after  self-cal, rms=0.272510Jy  sigma=0.002686
! 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=0.9069 mas, bmaj=2.19 mas, bpa=3.245 degrees
! Estimated noise=736.991 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.0996374 Jy
! Component: 100  -  total flux cleaned = 0.161137 Jy
! Component: 150  -  total flux cleaned = 0.200171 Jy
! Component: 200  -  total flux cleaned = 0.225177 Jy
! Total flux subtracted in 200 components = 0.225177 Jy
! Clean residual min=-0.035643 max=0.081214 Jy/beam
! Clean residual mean=0.002315 rms=0.015893 Jy/beam
! Combined flux in latest and established models = 1.37463 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 47 components and 1.37463 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.234976Jy  sigma=0.002225
! Fit after  self-cal, rms=0.233384Jy  sigma=0.002209
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 57 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.12     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        0.94     MC        0.97     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        0.89     
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.10     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.18     KK        1.00*    KP        0.91     
!   LA        0.94     MA        1.00*    MC        1.00*    MK        0.97     
!   NL        1.07     NY        1.00*    OV        1.09     PT        0.92     
!   SC        1.03     TS        1.00*    WF        0.92     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.03     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.12     KK        1.00*    KP        0.99     
!   LA        0.97     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        0.98     NY        1.00*    OV        1.03     PT        0.93     
!   SC        1.11     TS        1.00*    WF        1.38     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 57 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.13     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        0.97     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        0.95     
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.10     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.20     KK        1.00*    KP        0.90     
!   LA        0.93     MA        1.00*    MC        1.00*    MK        0.98     
!   NL        1.03     NY        1.00*    OV        1.09     PT        0.91     
!   SC        1.02     TS        1.00*    WF        0.95     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.04     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.13     KK        1.00*    KP        0.99     
!   LA        0.95     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        0.97     NY        1.00*    OV        1.02     PT        0.93     
!   SC        1.11     TS        1.00*    WF        1.08     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 57 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.94     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        0.96     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        0.95     
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.15     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.16     KK        1.00*    KP        0.91     
!   LA        0.93     MA        1.00*    MC        1.00*    MK        0.99     
!   NL        1.03     NY        1.00*    OV        1.03     PT        0.89     
!   SC        1.04     TS        1.00*    WF        0.93     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.08     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.13     KK        1.00*    KP        1.00     
!   LA        0.95     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        0.95     NY        1.00*    OV        1.01     PT        0.91     
!   SC        1.11     TS        1.00*    WF        1.20     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 57 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.21     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.01     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        0.95     
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        1.15     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.13     KK        1.00*    KP        0.92     
!   LA        0.94     MA        1.00*    MC        1.00*    MK        0.97     
!   NL        1.04     NY        1.00*    OV        1.05     PT        0.88     
!   SC        1.03     TS        1.00*    WF        0.90     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.10     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.07     KK        1.00*    KP        0.99     
!   LA        0.95     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        0.99     NY        1.00*    OV        1.02     PT        0.89     
!   SC        1.08     TS        1.00*    WF        1.04     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.233384Jy  sigma=0.002209
! Fit after  self-cal, rms=0.220101Jy  sigma=0.001935
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.9183 mas, bmaj=2.345 mas, bpa=1.406 degrees
! Estimated noise=748.346 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 (2.8, -6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.063391 Jy
! Component: 100  -  total flux cleaned = 0.0968372 Jy
! Component: 150  -  total flux cleaned = 0.101335 Jy
! Component: 200  -  total flux cleaned = 0.104704 Jy
! Total flux subtracted in 200 components = 0.104704 Jy
! Clean residual min=-0.028183 max=0.034176 Jy/beam
! Clean residual mean=0.001087 rms=0.007407 Jy/beam
! Combined flux in latest and established models = 1.47933 Jy
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 83 components and 1.47933 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.201175Jy  sigma=0.001712
! Fit after  self-cal, rms=0.198201Jy  sigma=0.001683
! 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.198201Jy  sigma=0.001683
! Fit after  self-cal, rms=0.180911Jy  sigma=0.001558
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=0.9197 mas, bmaj=2.333 mas, bpa=1.589 degrees
! Estimated noise=743.171 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0319133 Jy
! Component: 100  -  total flux cleaned = 0.0428363 Jy
! Component: 150  -  total flux cleaned = 0.045016 Jy
! Component: 200  -  total flux cleaned = 0.0475114 Jy
! Total flux subtracted in 200 components = 0.0475114 Jy
! Clean residual min=-0.018577 max=0.020373 Jy/beam
! Clean residual mean=0.000931 rms=0.004479 Jy/beam
! Combined flux in latest and established models = 1.52684 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 104 components and 1.52684 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.174850Jy  sigma=0.001480
! Fit after  self-cal, rms=0.173556Jy  sigma=0.001469
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.00941445 Jy
! Component: 100  -  total flux cleaned = 0.0123856 Jy
! Component: 150  -  total flux cleaned = 0.0130021 Jy
! Component: 200  -  total flux cleaned = 0.0138445 Jy
! Total flux subtracted in 200 components = 0.0138445 Jy
! Clean residual min=-0.018491 max=0.015787 Jy/beam
! Clean residual mean=0.000807 rms=0.004030 Jy/beam
! Combined flux in latest and established models = 1.54069 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 113 components and 1.54069 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.172173Jy  sigma=0.001453
! Fit after  self-cal, rms=0.171836Jy  sigma=0.001451
! 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.171836Jy  sigma=0.001451
! Fit after  self-cal, rms=0.168053Jy  sigma=0.001422
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=0.9209 mas, bmaj=2.335 mas, bpa=1.604 degrees
! Estimated noise=739.596 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0148642 Jy
! Component: 100  -  total flux cleaned = 0.0194309 Jy
! Component: 150  -  total flux cleaned = 0.0214518 Jy
! Component: 200  -  total flux cleaned = 0.0224169 Jy
! Total flux subtracted in 200 components = 0.0224169 Jy
! Clean residual min=-0.014856 max=0.013987 Jy/beam
! Clean residual mean=0.000682 rms=0.003140 Jy/beam
! Combined flux in latest and established models = 1.56311 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 121 components and 1.56311 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.166471Jy  sigma=0.001400
! Fit after  self-cal, rms=0.166027Jy  sigma=0.001397
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.00342334 Jy
! Component: 100  -  total flux cleaned = 0.00550352 Jy
! Component: 150  -  total flux cleaned = 0.00611255 Jy
! Component: 200  -  total flux cleaned = 0.00649182 Jy
! Total flux subtracted in 200 components = 0.00649182 Jy
! Clean residual min=-0.014978 max=0.012341 Jy/beam
! Clean residual mean=0.000626 rms=0.002938 Jy/beam
! Combined flux in latest and established models = 1.5696 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 125 components and 1.5696 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.165489Jy  sigma=0.001390
! Fit after  self-cal, rms=0.165310Jy  sigma=0.001390
! Inverting map 
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.165310Jy  sigma=0.001390
! Fit after  self-cal, rms=0.164441Jy  sigma=0.001384
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.292 mas, bmaj=5.329 mas, bpa=8.409 degrees
! Estimated noise=881.595 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.01077 Jy
! Component: 100  -  total flux cleaned = 0.0127592 Jy
! Component: 150  -  total flux cleaned = 0.0144816 Jy
! Component: 200  -  total flux cleaned = 0.015336 Jy
! Total flux subtracted in 200 components = 0.015336 Jy
! Clean residual min=-0.008493 max=0.013627 Jy/beam
! Clean residual mean=0.000939 rms=0.003392 Jy/beam
! Combined flux in latest and established models = 1.58493 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 140 components and 1.58493 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.164134Jy  sigma=0.001378
! Fit after  self-cal, rms=0.163810Jy  sigma=0.001377
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.00106212 Jy
! Component: 100  -  total flux cleaned = 0.00247664 Jy
! Component: 150  -  total flux cleaned = 0.00318999 Jy
! Component: 200  -  total flux cleaned = 0.00319369 Jy
! Total flux subtracted in 200 components = 0.00319369 Jy
! Clean residual min=-0.008158 max=0.012909 Jy/beam
! Clean residual mean=0.000887 rms=0.003239 Jy/beam
! Combined flux in latest and established models = 1.58813 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 145 components and 1.58813 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.163748Jy  sigma=0.001376
! Fit after  self-cal, rms=0.163566Jy  sigma=0.001375
! 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=0.9218 mas, bmaj=2.334 mas, bpa=1.594 degrees
! Estimated noise=737.906 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9218 x 2.334 at 1.594 degrees (North through East)
! Clean map  min=-0.011336  max=0.85104 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.163566Jy  sigma=0.001375
! Fit after  self-cal, rms=0.155261Jy  sigma=0.001259
! Inverting map and beam 
! Estimated beam: bmin=0.9211 mas, bmaj=2.331 mas, bpa=1.512 degrees
! Estimated noise=735.436 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00362039 Jy
! Component: 100  -  total flux cleaned = 0.00402012 Jy
! Component: 150  -  total flux cleaned = 0.00401632 Jy
! Component: 200  -  total flux cleaned = 0.00368611 Jy
! Total flux subtracted in 200 components = 0.00368611 Jy
! Clean residual min=-0.011275 max=0.010089 Jy/beam
! Clean residual mean=0.000423 rms=0.002392 Jy/beam
! Combined flux in latest and established models = 1.59181 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 161 components and 1.59181 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.154824Jy  sigma=0.001253
! Fit after  self-cal, rms=0.154705Jy  sigma=0.001253
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00082223 Jy
! Component: 100  -  total flux cleaned = 0.000977676 Jy
! Component: 150  -  total flux cleaned = 0.00068871 Jy
! Component: 200  -  total flux cleaned = 0.000550726 Jy
! Total flux subtracted in 200 components = 0.000550726 Jy
! Clean residual min=-0.011226 max=0.009716 Jy/beam
! Clean residual mean=0.000418 rms=0.002332 Jy/beam
! Combined flux in latest and established models = 1.59236 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 164 components and 1.59236 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.154443Jy  sigma=0.001250
! Fit after  self-cal, rms=0.154357Jy  sigma=0.001250
! 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.154357Jy  sigma=0.001250
! Fit after  self-cal, rms=0.153762Jy  sigma=0.001249
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=0.7422 mas, bmaj=1.792 mas, bpa=1.501 degrees
! Estimated noise=1159.16 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.707044 Jy
! Component: 100  -  total flux cleaned = 0.938731 Jy
! Component: 150  -  total flux cleaned = 1.06095 Jy
! Component: 200  -  total flux cleaned = 1.14642 Jy
! Total flux subtracted in 200 components = 1.14642 Jy
! Clean residual min=-0.020596 max=0.051466 Jy/beam
! Clean residual mean=0.000275 rms=0.009180 Jy/beam
! Combined flux in latest and established models = 1.14642 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 39 model components to the UV plane model.
! The established model now contains 39 components and 1.14642 Jy
! Inverting map and beam 
! Estimated beam: bmin=0.9206 mas, bmaj=2.326 mas, bpa=1.586 degrees
! Estimated noise=734.053 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.114505 Jy
! Component: 100  -  total flux cleaned = 0.196798 Jy
! Component: 150  -  total flux cleaned = 0.257725 Jy
! Component: 200  -  total flux cleaned = 0.303139 Jy
! Total flux subtracted in 200 components = 0.303139 Jy
! Clean residual min=-0.012192 max=0.031356 Jy/beam
! Clean residual mean=0.001687 rms=0.006431 Jy/beam
! Combined flux in latest and established models = 1.44956 Jy
! Adding 70 model components to the UV plane model.
! The established model now contains 96 components and 1.44956 Jy
! Inverting map 
! Added new window around map position (-0.4, 2.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0357114 Jy
! Component: 100  -  total flux cleaned = 0.0623209 Jy
! Component: 150  -  total flux cleaned = 0.082513 Jy
! Component: 200  -  total flux cleaned = 0.0978972 Jy
! Total flux subtracted in 200 components = 0.0978972 Jy
! Clean residual min=-0.007799 max=0.015541 Jy/beam
! Clean residual mean=0.000822 rms=0.002986 Jy/beam
! Combined flux in latest and established models = 1.54745 Jy
! Adding 43 model components to the UV plane model.
! The established model now contains 125 components and 1.54745 Jy
! Inverting map 
! Added new window around map position (4.6, -8.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0143786 Jy
! Component: 100  -  total flux cleaned = 0.020088 Jy
! Component: 150  -  total flux cleaned = 0.0245705 Jy
! Component: 200  -  total flux cleaned = 0.0284055 Jy
! Total flux subtracted in 200 components = 0.0284055 Jy
! Clean residual min=-0.006289 max=0.010073 Jy/beam
! Clean residual mean=0.000563 rms=0.002181 Jy/beam
! Combined flux in latest and established models = 1.57586 Jy
! Adding 34 model components to the UV plane model.
! The established model now contains 144 components and 1.57586 Jy
! Inverting map 
! Added new window around map position (10.4, -21.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00960413 Jy
! Component: 100  -  total flux cleaned = 0.0126472 Jy
! Component: 150  -  total flux cleaned = 0.0151425 Jy
! Component: 200  -  total flux cleaned = 0.0177375 Jy
! Total flux subtracted in 200 components = 0.0177375 Jy
! Clean residual min=-0.005321 max=0.007311 Jy/beam
! Clean residual mean=0.000423 rms=0.001760 Jy/beam
! Combined flux in latest and established models = 1.59359 Jy
! Adding 25 model components to the UV plane model.
! The established model now contains 163 components and 1.5936 Jy
! Inverting map 
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 
! Estimated beam: bmin=2.29 mas, bmaj=5.324 mas, bpa=8.463 degrees
! Estimated noise=878.231 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00656481 Jy
! Component: 100  -  total flux cleaned = 0.0107498 Jy
! Component: 150  -  total flux cleaned = 0.0120505 Jy
! Component: 200  -  total flux cleaned = 0.0130699 Jy
! Total flux subtracted in 200 components = 0.0130699 Jy
! Clean residual min=-0.005927 max=0.009274 Jy/beam
! Clean residual mean=0.000583 rms=0.002254 Jy/beam
! Combined flux in latest and established models = 1.60667 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.000707217 Jy
! Component: 100  -  total flux cleaned = 0.00107636 Jy
! Component: 150  -  total flux cleaned = 0.00150345 Jy
! Component: 200  -  total flux cleaned = 0.00181971 Jy
! Total flux subtracted in 200 components = 0.00181971 Jy
! Clean residual min=-0.005831 max=0.009083 Jy/beam
! Clean residual mean=0.000550 rms=0.002231 Jy/beam
! Combined flux in latest and established models = 1.60848 Jy
! Adding 40 model components to the UV plane model.
! The established model now contains 195 components and 1.60848 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=0.9206 mas, bmaj=2.326 mas, bpa=1.586 degrees
! Estimated noise=734.053 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000543631 Jy
! Component: 100  -  total flux cleaned = -0.000313293 Jy
! Component: 150  -  total flux cleaned = -0.000315609 Jy
! Component: 200  -  total flux cleaned = -0.000116016 Jy
! Total flux subtracted in 200 components = -0.000116016 Jy
! Clean residual min=-0.005072 max=0.007021 Jy/beam
! Clean residual mean=0.000280 rms=0.001614 Jy/beam
! Combined flux in latest and established models = 1.60837 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 214 components and 1.60837 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.150719Jy  sigma=0.001217
! Fit after  self-cal, rms=0.150430Jy  sigma=0.001214
wmodel J1517-2422_X_2000_12_04_pus_map.mod
! Writing 214 model components to file: J1517-2422_X_2000_12_04_pus_map.mod
wobs J1517-2422_X_2000_12_04_pus_uvs.fits
! Writing UV FITS file: J1517-2422_X_2000_12_04_pus_uvs.fits
wwins J1517-2422_X_2000_12_04_pus_map.win
! wwins: Wrote 6 windows to J1517-2422_X_2000_12_04_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.00289014 Jy
! Component: 100  -  total flux cleaned = 0.00475981 Jy
! Component: 150  -  total flux cleaned = 0.0058504 Jy
! Component: 200  -  total flux cleaned = 0.00654291 Jy
! Component: 250  -  total flux cleaned = 0.00745953 Jy
! Component: 300  -  total flux cleaned = 0.00818292 Jy
! Component: 350  -  total flux cleaned = 0.00896246 Jy
! Component: 400  -  total flux cleaned = 0.00986811 Jy
! Component: 450  -  total flux cleaned = 0.0105291 Jy
! Component: 500  -  total flux cleaned = 0.0113173 Jy
! Component: 550  -  total flux cleaned = 0.0120157 Jy
! Component: 600  -  total flux cleaned = 0.0126297 Jy
! Component: 650  -  total flux cleaned = 0.0130977 Jy
! Component: 700  -  total flux cleaned = 0.0136859 Jy
! Component: 750  -  total flux cleaned = 0.0140701 Jy
! Component: 800  -  total flux cleaned = 0.014509 Jy
! Component: 850  -  total flux cleaned = 0.0146326 Jy
! Component: 900  -  total flux cleaned = 0.0149366 Jy
! Component: 950  -  total flux cleaned = 0.0152944 Jy
! Component: 1000  -  total flux cleaned = 0.015587 Jy
! Component: 1050  -  total flux cleaned = 0.0157598 Jy
! Component: 1100  -  total flux cleaned = 0.0161002 Jy
! Component: 1150  -  total flux cleaned = 0.0163782 Jy
! Component: 1200  -  total flux cleaned = 0.0165981 Jy
! Component: 1250  -  total flux cleaned = 0.016868 Jy
! Component: 1300  -  total flux cleaned = 0.0171337 Jy
! Component: 1350  -  total flux cleaned = 0.0174491 Jy
! Component: 1400  -  total flux cleaned = 0.0178627 Jy
! Component: 1450  -  total flux cleaned = 0.0180669 Jy
! Component: 1500  -  total flux cleaned = 0.0184207 Jy
! Component: 1550  -  total flux cleaned = 0.0187199 Jy
! Component: 1600  -  total flux cleaned = 0.0189667 Jy
! Component: 1650  -  total flux cleaned = 0.0192104 Jy
! Component: 1700  -  total flux cleaned = 0.0193556 Jy
! Component: 1750  -  total flux cleaned = 0.0196415 Jy
! Component: 1800  -  total flux cleaned = 0.0198772 Jy
! Component: 1850  -  total flux cleaned = 0.0200643 Jy
! Component: 1900  -  total flux cleaned = 0.0203876 Jy
! Component: 1950  -  total flux cleaned = 0.0204791 Jy
! Component: 2000  -  total flux cleaned = 0.0208868 Jy
! Total flux subtracted in 2048 components = 0.021066 Jy
! Clean residual min=-0.002479 max=0.002479 Jy/beam
! Clean residual mean=0.000131 rms=0.000900 Jy/beam
! Combined flux in latest and established models = 1.62943 Jy
keep
! Adding 156 model components to the UV plane model.
! The established model now contains 369 components and 1.62943 Jy
![Exited script file: muppet]
wmap "J1517-2422_X_2000_12_04_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9206 x 2.326 at 1.586 degrees (North through East)
! Clean map  min=-0.01276  max=0.84893 Jy/beam
! Writing clean map to FITS file: J1517-2422_X_2000_12_04_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.848929 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000894813 
device "J1517-2422_X_2000_12_04_pus\_map.eps/VPS"
! Attempting to open device: 'J1517-2422_X_2000_12_04_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.316215 0.316215 0.632429 1.26486 2.52972 5.05943 10.1189 20.2377 40.4755 80.9509
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0026 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.848 
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.9206 x 2.326 at 1.586 degrees (North through East)
! Clean map  min=-0.01276  max=0.84893 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1517-2422_X_2000_12_04_pus\_map.gif/vgif"
! Attempting to open device: 'J1517-2422_X_2000_12_04_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1517-2422_X_2000_12_04_pus_uvs.log closed on Fri Oct 12 17:32:03 2007