! Started logfile: J1517-2422_S_2001_10_29_pus_uvs.log on Wed Feb 27 15:25:43 2008
obs J1517-2422_S_2001_10_29_pus_uva.fits
! Reading UV FITS file: J1517-2422_S_2001_10_29_pus_uva.fits
! AN table 1: 78 integrations on 153 of 153 possible baselines.
! AN table 2: 117 integrations on 153 of 153 possible baselines.
! AN table 3: 10 integrations on 153 of 153 possible baselines.
! AN table 4: 555 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.0412711 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  2.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2604 lines of history.
! 
! Reading 19196 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 
![@muppet J1517-2422_S_2001_10_29_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 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 1251 telescope corrections were flagged in sub-array 1.
!  A total of 1454 telescope corrections were flagged in sub-array 2.
!  A total of 180 telescope corrections were flagged in sub-array 3.
!  A total of 8173 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1251 telescope corrections were flagged in sub-array 1.
!  A total of 1454 telescope corrections were flagged in sub-array 2.
!  A total of 180 telescope corrections were flagged in sub-array 3.
!  A total of 8173 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1251 telescope corrections were flagged in sub-array 1.
!  A total of 1454 telescope corrections were flagged in sub-array 2.
!  A total of 180 telescope corrections were flagged in sub-array 3.
!  A total of 8173 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1404 telescope corrections were flagged in sub-array 1.
!  A total of 1454 telescope corrections were flagged in sub-array 2.
!  A total of 180 telescope corrections were flagged in sub-array 3.
!  A total of 8173 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.447943Jy  sigma=0.009675
! Fit after  self-cal, rms=0.800272Jy  sigma=0.005279
! 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=1.934 mas, bmaj=3.95 mas, bpa=12.79 degrees
! Estimated noise=1787.06 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.961327 Jy
! Component: 100  -  total flux cleaned = 1.2655 Jy
! Total flux subtracted in 100 components = 1.2655 Jy
! Clean residual min=-0.054693 max=0.184027 Jy/beam
! Clean residual mean=0.003006 rms=0.020455 Jy/beam
! Combined flux in latest and established models = 1.2655 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 12 components and 1.2655 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.600641Jy  sigma=0.003954
! Fit after  self-cal, rms=0.600400Jy  sigma=0.003953
! Inverting map 
! Added new window around map position (4, -8.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.182103 Jy
! Component: 100  -  total flux cleaned = 0.286203 Jy
! Total flux subtracted in 100 components = 0.286203 Jy
! Clean residual min=-0.032944 max=0.102494 Jy/beam
! Clean residual mean=0.002137 rms=0.011870 Jy/beam
! Combined flux in latest and established models = 1.55171 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 32 components and 1.55171 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.417302Jy  sigma=0.002697
! Fit after  self-cal, rms=0.411770Jy  sigma=0.002664
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0821093 Jy
! Component: 100  -  total flux cleaned = 0.129896 Jy
! Total flux subtracted in 100 components = 0.129896 Jy
! Clean residual min=-0.022342 max=0.055440 Jy/beam
! Clean residual mean=0.001740 rms=0.007860 Jy/beam
! Combined flux in latest and established models = 1.6816 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 41 components and 1.6816 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.343686Jy  sigma=0.002184
! Fit after  self-cal, rms=0.342335Jy  sigma=0.002176
! 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=3.489 mas, bmaj=7.146 mas, bpa=-1.641 degrees
! Estimated noise=791.044 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.158738 Jy
! Component: 100  -  total flux cleaned = 0.229217 Jy
! Component: 150  -  total flux cleaned = 0.268053 Jy
! Component: 200  -  total flux cleaned = 0.289758 Jy
! Total flux subtracted in 200 components = 0.289758 Jy
! Clean residual min=-0.025678 max=0.051165 Jy/beam
! Clean residual mean=0.007565 rms=0.013934 Jy/beam
! Combined flux in latest and established models = 1.97136 Jy
! Performing phase self-cal
! Adding 43 model components to the UV plane model.
! The established model now contains 73 components and 1.97136 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.271148Jy  sigma=0.001656
! Fit after  self-cal, rms=0.269543Jy  sigma=0.001645
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 117 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.97     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.31     MC        0.90     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.09     
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.14     KK        0.96     KP        0.98     LA        0.97     
!   MA        1.00*    MC        1.00*    MK        0.97     NL        1.03     
!   OV        1.06     PT        0.97     SC        0.99     TS        0.98     
!   WF        1.03     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 1017 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.01     
!   HN        0.95     KK        1.00*    KP        0.97     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.03     
!   OV        1.00*    PT        0.96     SC        1.05     TS        1.00*    
!   WF        0.99     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 117 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.86     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.32     MC        0.94     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        0.92     
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.09     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.10     KK        0.99     KP        0.95     LA        0.95     
!   MA        1.00*    MC        1.00*    MK        0.98     NL        1.05     
!   OV        1.10     PT        0.96     SC        1.00     TS        1.00     
!   WF        0.97     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 1017 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.93     
!   HN        1.13     KK        1.00*    KP        0.96     LA        0.96     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.03     
!   OV        1.00*    PT        0.95     SC        1.10     TS        1.00*    
!   WF        1.07     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 117 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.73     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.14     MC        0.94     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.01     
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.08     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.03     KK        0.99     KP        0.97     LA        0.97     
!   MA        1.00*    MC        1.00*    MK        0.95     NL        1.14     
!   OV        1.07     PT        0.98     SC        0.99     TS        1.02     
!   WF        0.87     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 1017 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.02     
!   HN        1.10     KK        1.00*    KP        1.01     LA        0.96     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.02     
!   OV        1.00*    PT        0.97     SC        1.09     TS        1.00*    
!   WF        1.06     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.06     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.07     KK        0.97     KP        0.97     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        0.98     NL        1.09     
!   OV        1.06     PT        0.97     SC        1.00     TS        1.05     
!   WF        1.00     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 1017 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.88     
!   HN        1.04     KK        1.00*    KP        1.00     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.06     
!   OV        1.00*    PT        0.98     SC        1.08     TS        1.00*    
!   WF        1.02     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.269543Jy  sigma=0.001645
! Fit after  self-cal, rms=0.255035Jy  sigma=0.001540
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.135 mas, bmaj=7.109 mas, bpa=0.7463 degrees
! Estimated noise=899.063 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.0062461 Jy
! Component: 100  -  total flux cleaned = -0.00678062 Jy
! Component: 150  -  total flux cleaned = -0.00698235 Jy
! Component: 200  -  total flux cleaned = -0.0069747 Jy
! Total flux subtracted in 200 components = -0.0069747 Jy
! Clean residual min=-0.013240 max=0.029190 Jy/beam
! Clean residual mean=0.005567 rms=0.005912 Jy/beam
! Combined flux in latest and established models = 1.96439 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 79 components and 1.96439 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.254693Jy  sigma=0.001536
! Fit after  self-cal, rms=0.254839Jy  sigma=0.001535
! 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.254839Jy  sigma=0.001535
! Fit after  self-cal, rms=0.253930Jy  sigma=0.001524
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.13 mas, bmaj=7.11 mas, bpa=0.6944 degrees
! Estimated noise=899.471 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00174377 Jy
! Component: 100  -  total flux cleaned = -0.0017506 Jy
! Component: 150  -  total flux cleaned = -0.00160943 Jy
! Component: 200  -  total flux cleaned = -0.00148654 Jy
! Total flux subtracted in 200 components = -0.00148654 Jy
! Clean residual min=-0.011828 max=0.026768 Jy/beam
! Clean residual mean=0.004819 rms=0.005423 Jy/beam
! Combined flux in latest and established models = 1.9629 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 81 components and 1.9629 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.253763Jy  sigma=0.001522
! Fit after  self-cal, rms=0.253771Jy  sigma=0.001522
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 (11.5, -17.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0223645 Jy
! Component: 100  -  total flux cleaned = 0.0273246 Jy
! Component: 150  -  total flux cleaned = 0.0312277 Jy
! Component: 200  -  total flux cleaned = 0.0319606 Jy
! Total flux subtracted in 200 components = 0.0319606 Jy
! Clean residual min=-0.010981 max=0.017513 Jy/beam
! Clean residual mean=0.003184 rms=0.004321 Jy/beam
! Combined flux in latest and established models = 1.99486 Jy
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 114 components and 1.99486 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.250312Jy  sigma=0.001507
! Fit after  self-cal, rms=0.250201Jy  sigma=0.001506
! 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.250201Jy  sigma=0.001506
! Fit after  self-cal, rms=0.244870Jy  sigma=0.001478
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.128 mas, bmaj=7.102 mas, bpa=0.6444 degrees
! Estimated noise=903.81 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0211234 Jy
! Component: 100  -  total flux cleaned = 0.0317191 Jy
! Component: 150  -  total flux cleaned = 0.0345968 Jy
! Component: 200  -  total flux cleaned = 0.0348376 Jy
! Total flux subtracted in 200 components = 0.0348376 Jy
! Clean residual min=-0.010668 max=0.016322 Jy/beam
! Clean residual mean=0.001778 rms=0.003882 Jy/beam
! Combined flux in latest and established models = 2.0297 Jy
selfcal
! Performing phase self-cal
! Adding 45 model components to the UV plane model.
! The established model now contains 145 components and 2.0297 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.242459Jy  sigma=0.001467
! Fit after  self-cal, rms=0.242342Jy  sigma=0.001466
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.002248 Jy
! Component: 100  -  total flux cleaned = 0.00225122 Jy
! Component: 150  -  total flux cleaned = 0.00225098 Jy
! Component: 200  -  total flux cleaned = 0.00206972 Jy
! Total flux subtracted in 200 components = 0.00206972 Jy
! Clean residual min=-0.009308 max=0.014524 Jy/beam
! Clean residual mean=0.001676 rms=0.003610 Jy/beam
! Combined flux in latest and established models = 2.03177 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 150 components and 2.03177 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.241880Jy  sigma=0.001464
! Fit after  self-cal, rms=0.241870Jy  sigma=0.001464
! 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.241870Jy  sigma=0.001464
! Fit after  self-cal, rms=0.237987Jy  sigma=0.001443
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.829 mas, bmaj=15.79 mas, bpa=-9.19 degrees
! Estimated noise=1099.38 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0160836 Jy
! Component: 100  -  total flux cleaned = 0.0216426 Jy
! Component: 150  -  total flux cleaned = 0.021638 Jy
! Component: 200  -  total flux cleaned = 0.0214825 Jy
! Total flux subtracted in 200 components = 0.0214825 Jy
! Clean residual min=-0.010403 max=0.016239 Jy/beam
! Clean residual mean=0.002373 rms=0.004840 Jy/beam
! Combined flux in latest and established models = 2.05325 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 169 components and 2.05325 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.237174Jy  sigma=0.001441
! Fit after  self-cal, rms=0.237100Jy  sigma=0.001440
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.00137029 Jy
! Component: 100  -  total flux cleaned = 0.00123107 Jy
! Component: 150  -  total flux cleaned = 0.00123125 Jy
! Component: 200  -  total flux cleaned = 0.0011093 Jy
! Total flux subtracted in 200 components = 0.0011093 Jy
! Clean residual min=-0.008622 max=0.014742 Jy/beam
! Clean residual mean=0.002264 rms=0.004592 Jy/beam
! Combined flux in latest and established models = 2.05436 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 182 components and 2.05436 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.236946Jy  sigma=0.001440
! Fit after  self-cal, rms=0.236937Jy  sigma=0.001440
! 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=3.13 mas, bmaj=7.095 mas, bpa=0.6404 degrees
! Estimated noise=906.207 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.13 x 7.095 at 0.6404 degrees (North through East)
! Clean map  min=-0.0085684  max=1.2887 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.236937Jy  sigma=0.001440
! Fit after  self-cal, rms=0.199138Jy  sigma=0.001118
! Inverting map and beam 
! Estimated beam: bmin=3.133 mas, bmaj=7.097 mas, bpa=0.5369 degrees
! Estimated noise=906.289 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00270014 Jy
! Component: 100  -  total flux cleaned = 0.00287517 Jy
! Component: 150  -  total flux cleaned = 0.00272782 Jy
! Component: 200  -  total flux cleaned = 0.00244934 Jy
! Total flux subtracted in 200 components = 0.00244934 Jy
! Clean residual min=-0.007603 max=0.011030 Jy/beam
! Clean residual mean=0.001355 rms=0.002897 Jy/beam
! Combined flux in latest and established models = 2.05681 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 195 components and 2.05681 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.198837Jy  sigma=0.001116
! Fit after  self-cal, rms=0.198811Jy  sigma=0.001116
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000588386 Jy
! Component: 100  -  total flux cleaned = 0.000462791 Jy
! Component: 150  -  total flux cleaned = 0.00034314 Jy
! Component: 200  -  total flux cleaned = 0.000117038 Jy
! Total flux subtracted in 200 components = 0.000117038 Jy
! Clean residual min=-0.007781 max=0.010786 Jy/beam
! Clean residual mean=0.001351 rms=0.002854 Jy/beam
! Combined flux in latest and established models = 2.05692 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 198 components and 2.05692 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.198652Jy  sigma=0.001115
! Fit after  self-cal, rms=0.198638Jy  sigma=0.001115
! 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.198638Jy  sigma=0.001115
! Fit after  self-cal, rms=0.198626Jy  sigma=0.001114
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=1.922 mas, bmaj=3.865 mas, bpa=13.22 degrees
! Estimated noise=1860.76 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.965867 Jy
! Component: 100  -  total flux cleaned = 1.30131 Jy
! Component: 150  -  total flux cleaned = 1.49238 Jy
! Component: 200  -  total flux cleaned = 1.60739 Jy
! Total flux subtracted in 200 components = 1.60739 Jy
! Clean residual min=-0.029084 max=0.060076 Jy/beam
! Clean residual mean=0.001622 rms=0.009399 Jy/beam
! Combined flux in latest and established models = 1.60739 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 33 model components to the UV plane model.
! The established model now contains 33 components and 1.60739 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.136 mas, bmaj=7.106 mas, bpa=0.5039 degrees
! Estimated noise=905.948 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.197174 Jy
! Component: 100  -  total flux cleaned = 0.295507 Jy
! Component: 150  -  total flux cleaned = 0.350593 Jy
! Component: 200  -  total flux cleaned = 0.38436 Jy
! Total flux subtracted in 200 components = 0.38436 Jy
! Clean residual min=-0.009614 max=0.023750 Jy/beam
! Clean residual mean=0.004844 rms=0.006198 Jy/beam
! Combined flux in latest and established models = 1.99175 Jy
! Adding 95 model components to the UV plane model.
! The established model now contains 120 components and 1.99175 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.835 mas, bmaj=15.76 mas, bpa=-9.188 degrees
! Estimated noise=1098.44 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0335436 Jy
! Component: 100  -  total flux cleaned = 0.0501529 Jy
! Component: 150  -  total flux cleaned = 0.0588781 Jy
! Component: 200  -  total flux cleaned = 0.0635108 Jy
! Total flux subtracted in 200 components = 0.0635108 Jy
! Clean residual min=-0.006172 max=0.014150 Jy/beam
! Clean residual mean=0.002978 rms=0.004041 Jy/beam
! Combined flux in latest and established models = 2.05526 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.00240268 Jy
! Component: 100  -  total flux cleaned = 0.00267335 Jy
! Component: 150  -  total flux cleaned = 0.00273476 Jy
! Component: 200  -  total flux cleaned = 0.00279452 Jy
! Total flux subtracted in 200 components = 0.00279452 Jy
! Clean residual min=-0.006340 max=0.013487 Jy/beam
! Clean residual mean=0.002706 rms=0.003989 Jy/beam
! Combined flux in latest and established models = 2.05806 Jy
! Adding 50 model components to the UV plane model.
! The established model now contains 157 components and 2.05806 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.136 mas, bmaj=7.106 mas, bpa=0.5039 degrees
! Estimated noise=905.948 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00277902 Jy
! Component: 100  -  total flux cleaned = -0.00224351 Jy
! Component: 150  -  total flux cleaned = -0.0019374 Jy
! Component: 200  -  total flux cleaned = -0.00194275 Jy
! Total flux subtracted in 200 components = -0.00194275 Jy
! Clean residual min=-0.007791 max=0.012468 Jy/beam
! Clean residual mean=0.001526 rms=0.002948 Jy/beam
! Combined flux in latest and established models = 2.05611 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 172 components and 2.05611 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.198972Jy  sigma=0.001118
! Fit after  self-cal, rms=0.198724Jy  sigma=0.001116
wmodel J1517-2422_S_2001_10_29_pus_map.mod
! Writing 172 model components to file: J1517-2422_S_2001_10_29_pus_map.mod
wobs J1517-2422_S_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J1517-2422_S_2001_10_29_pus_uvs.fits
wwins J1517-2422_S_2001_10_29_pus_map.win
! wwins: Wrote 3 windows to J1517-2422_S_2001_10_29_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00504906 Jy
! Component: 100  -  total flux cleaned = 0.0094071 Jy
! Component: 150  -  total flux cleaned = 0.0133032 Jy
! Component: 200  -  total flux cleaned = 0.0168918 Jy
! Component: 250  -  total flux cleaned = 0.0187808 Jy
! Component: 300  -  total flux cleaned = 0.0205763 Jy
! Component: 350  -  total flux cleaned = 0.0222842 Jy
! Component: 400  -  total flux cleaned = 0.0238034 Jy
! Component: 450  -  total flux cleaned = 0.0250398 Jy
! Component: 500  -  total flux cleaned = 0.0262322 Jy
! Component: 550  -  total flux cleaned = 0.0269671 Jy
! Component: 600  -  total flux cleaned = 0.0276792 Jy
! Component: 650  -  total flux cleaned = 0.0282732 Jy
! Component: 700  -  total flux cleaned = 0.0290449 Jy
! Component: 750  -  total flux cleaned = 0.0297011 Jy
! Component: 800  -  total flux cleaned = 0.0303417 Jy
! Component: 850  -  total flux cleaned = 0.0308777 Jy
! Component: 900  -  total flux cleaned = 0.0313141 Jy
! Component: 950  -  total flux cleaned = 0.031742 Jy
! Component: 1000  -  total flux cleaned = 0.0320769 Jy
! Component: 1050  -  total flux cleaned = 0.0324891 Jy
! Component: 1100  -  total flux cleaned = 0.0329736 Jy
! Component: 1150  -  total flux cleaned = 0.0333692 Jy
! Component: 1200  -  total flux cleaned = 0.0337574 Jy
! Component: 1250  -  total flux cleaned = 0.0342161 Jy
! Component: 1300  -  total flux cleaned = 0.0345916 Jy
! Component: 1350  -  total flux cleaned = 0.0348136 Jy
! Component: 1400  -  total flux cleaned = 0.0353243 Jy
! Component: 1450  -  total flux cleaned = 0.0357538 Jy
! Component: 1500  -  total flux cleaned = 0.0361059 Jy
! Component: 1550  -  total flux cleaned = 0.0363847 Jy
! Component: 1600  -  total flux cleaned = 0.0367964 Jy
! Component: 1650  -  total flux cleaned = 0.0371343 Jy
! Component: 1700  -  total flux cleaned = 0.0375336 Jy
! Component: 1750  -  total flux cleaned = 0.0378617 Jy
! Component: 1800  -  total flux cleaned = 0.0382493 Jy
! Component: 1850  -  total flux cleaned = 0.0385047 Jy
! Component: 1900  -  total flux cleaned = 0.0388816 Jy
! Component: 1950  -  total flux cleaned = 0.0391294 Jy
! Component: 2000  -  total flux cleaned = 0.0394966 Jy
! Total flux subtracted in 2048 components = 0.0396776 Jy
! Clean residual min=-0.002999 max=0.003217 Jy/beam
! Clean residual mean=0.000285 rms=0.001148 Jy/beam
! Combined flux in latest and established models = 2.09579 Jy
keep
! Adding 124 model components to the UV plane model.
! The established model now contains 295 components and 2.09579 Jy
![Exited script file: muppet]
wmap "J1517-2422_S_2001_10_29_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.136 x 7.106 at 0.5039 degrees (North through East)
! Clean map  min=-0.0071088  max=1.2987 Jy/beam
! Writing clean map to FITS file: J1517-2422_S_2001_10_29_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.29874 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00115263 
device "J1517-2422_S_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J1517-2422_S_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.266251 0.266251 0.532501 1.065 2.13001 4.26001 8.52002 17.04 34.0801 68.1602
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0034 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.298 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.136 x 7.106 at 0.5039 degrees (North through East)
! Clean map  min=-0.0071088  max=1.2987 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1517-2422_S_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J1517-2422_S_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1517-2422_S_2001_10_29_pus_uvs.log closed on Wed Feb 27 15:26:03 2008