! Started logfile: J1517-2422_S_2003_06_18_pus_uvs.log on Tue Jan 23 23:13:53 2007
obs J1517-2422_S_2003_06_18_pus_uva.fits
! Reading UV FITS file: J1517-2422_S_2003_06_18_pus_uva.fits
! AN table 1: 11 integrations on 153 of 153 possible baselines.
! AN table 2: 33 integrations on 153 of 153 possible baselines.
! AN table 3: 31 integrations on 153 of 153 possible baselines.
! AN table 4: 268 integrations on 153 of 153 possible baselines.
! AN table 5: 179 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.0738111 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.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 2425 lines of history.
! 
! Reading 23580 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
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 198 telescope corrections were flagged in sub-array 1.
!  A total of 389 telescope corrections were flagged in sub-array 2.
!  A total of 415 telescope corrections were flagged in sub-array 3.
!  A total of 4287 telescope corrections were flagged in sub-array 4.
!  A total of 2271 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 198 telescope corrections were flagged in sub-array 1.
!  A total of 389 telescope corrections were flagged in sub-array 2.
!  A total of 415 telescope corrections were flagged in sub-array 3.
!  A total of 4287 telescope corrections were flagged in sub-array 4.
!  A total of 2271 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 198 telescope corrections were flagged in sub-array 1.
!  A total of 389 telescope corrections were flagged in sub-array 2.
!  A total of 415 telescope corrections were flagged in sub-array 3.
!  A total of 4287 telescope corrections were flagged in sub-array 4.
!  A total of 2271 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 198 telescope corrections were flagged in sub-array 1.
!  A total of 389 telescope corrections were flagged in sub-array 2.
!  A total of 415 telescope corrections were flagged in sub-array 3.
!  A total of 4287 telescope corrections were flagged in sub-array 4.
!  A total of 2271 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=1.305804Jy  sigma=0.011138
! Fit after  self-cal, rms=0.854768Jy  sigma=0.006686
! 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.098 mas, bmaj=4.651 mas, bpa=2.068 degrees
! Estimated noise=1123.51 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.967372 Jy
! Component: 100  -  total flux cleaned = 1.30373 Jy
! Total flux subtracted in 100 components = 1.30373 Jy
! Clean residual min=-0.054860 max=0.143998 Jy/beam
! Clean residual mean=0.001320 rms=0.017339 Jy/beam
! Combined flux in latest and established models = 1.30373 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 1.30373 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.682544Jy  sigma=0.005176
! Fit after  self-cal, rms=0.681783Jy  sigma=0.005170
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.15379 Jy
! Component: 100  -  total flux cleaned = 0.229977 Jy
! Total flux subtracted in 100 components = 0.229977 Jy
! Clean residual min=-0.053070 max=0.078621 Jy/beam
! Clean residual mean=0.000908 rms=0.013851 Jy/beam
! Combined flux in latest and established models = 1.53371 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 24 components and 1.53371 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.620542Jy  sigma=0.004489
! Fit after  self-cal, rms=0.619855Jy  sigma=0.004486
! 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.67 mas, bmaj=5.337 mas, bpa=0.5923 degrees
! Estimated noise=561.762 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.123884 Jy
! Component: 100  -  total flux cleaned = 0.181962 Jy
! Component: 150  -  total flux cleaned = 0.211332 Jy
! Component: 200  -  total flux cleaned = 0.224162 Jy
! Total flux subtracted in 200 components = 0.224162 Jy
! Clean residual min=-0.073358 max=0.095564 Jy/beam
! Clean residual mean=0.009008 rms=0.024661 Jy/beam
! Combined flux in latest and established models = 1.75787 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 38 components and 1.75787 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.599992Jy  sigma=0.004241
! Fit after  self-cal, rms=0.599475Jy  sigma=0.004237
! 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:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.94     GG        1.00*    HN        0.92     
!   KK        1.00*    KP        0.95     LA        0.97     MA        1.00*    
!   MK        1.00*    NL        1.03     ON        1.00*    OV        1.00     
!   PT        1.00*    SC        0.98     TC        1.00*    TS        1.00*    
!   WF        1.10     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.26     FD        1.05     GG        1.00*    HN        1.00*    
!   KK        1.02     KP        0.90     LA        0.92     MA        1.00*    
!   MK        1.04     NL        1.00*    ON        1.00*    OV        1.10     
!   PT        0.92     SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 207 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.19     FD        0.99     GG        1.00*    HN        1.26     
!   KK        0.98     KP        0.93     LA        0.94     MA        1.00*    
!   MK        1.01     NL        1.05     ON        1.00*    OV        0.99     
!   PT        0.95     SC        0.97     TC        1.00*    TS        1.00*    
!   WF        1.04     WZ        1.00*    
! 
!  A total of 123 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.14     FD        1.09     GG        1.00*    HN        1.00*    
!   KK        1.02     KP        0.97     LA        0.99     MA        1.00*    
!   MK        1.03     NL        1.00*    ON        1.00*    OV        0.54     
!   PT        1.01     SC        1.00*    TC        1.13     TS        0.98     
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.95     GG        1.00*    HN        1.07     
!   KK        1.00*    KP        1.03     LA        0.98     MA        1.00*    
!   MK        1.00*    NL        0.97     ON        1.00*    OV        1.12     
!   PT        1.00*    SC        1.13     TC        1.00*    TS        1.00*    
!   WF        0.93     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.17     FD        1.06     GG        1.00*    HN        1.00*    
!   KK        1.06     KP        0.97     LA        0.92     MA        1.00*    
!   MK        1.06     NL        1.00*    ON        1.00*    OV        0.99     
!   PT        0.92     SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 207 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.14     FD        0.99     GG        1.00*    HN        1.28     
!   KK        0.98     KP        1.00     LA        0.94     MA        1.00*    
!   MK        1.04     NL        1.00     ON        1.00*    OV        0.95     
!   PT        0.95     SC        1.00     TC        1.00*    TS        1.00*    
!   WF        0.94     WZ        1.00*    
! 
!  A total of 123 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.10     FD        1.10     GG        1.00*    HN        1.00*    
!   KK        1.04     KP        1.05     LA        0.98     MA        1.00*    
!   MK        1.06     NL        1.00*    ON        1.00*    OV        0.56     
!   PT        1.01     SC        1.00*    TC        1.28     TS        0.96     
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.96     GG        1.00*    HN        1.09     
!   KK        1.00*    KP        1.00     LA        0.95     MA        1.00*    
!   MK        1.00*    NL        0.96     ON        1.00*    OV        1.18     
!   PT        1.00*    SC        1.37     TC        1.00*    TS        1.00*    
!   WF        0.97     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.18     FD        1.08     GG        1.00*    HN        1.00*    
!   KK        1.04     KP        0.97     LA        0.90     MA        1.00*    
!   MK        1.04     NL        1.00*    ON        1.00*    OV        0.82     
!   PT        0.94     SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 207 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.14     FD        1.00     GG        1.00*    HN        1.31     
!   KK        1.00     KP        1.00     LA        0.93     MA        1.00*    
!   MK        1.02     NL        1.00     ON        1.00*    OV        0.90     
!   PT        0.96     SC        1.10     TC        1.00*    TS        1.00*    
!   WF        0.94     WZ        1.00*    
! 
!  A total of 123 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.09     FD        1.13     GG        1.00*    HN        1.00*    
!   KK        1.03     KP        1.01     LA        0.94     MA        1.00*    
!   MK        1.05     NL        1.00*    ON        1.00*    OV        1.26     
!   PT        1.00     SC        1.00*    TC        1.30     TS        1.11     
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.97     GG        1.00*    HN        0.78     
!   KK        1.00*    KP        1.01     LA        0.99     MA        1.00*    
!   MK        1.00*    NL        1.03     ON        1.00*    OV        1.09     
!   PT        1.00*    SC        1.49     TC        1.00*    TS        1.00*    
!   WF        0.96     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.13     FD        1.08     GG        1.00*    HN        1.00*    
!   KK        1.05     KP        0.98     LA        0.93     MA        1.00*    
!   MK        0.98     NL        1.00*    ON        1.00*    OV        0.76     
!   PT        1.00     SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 207 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.10     FD        1.01     GG        1.00*    HN        1.42     
!   KK        1.02     KP        1.01     LA        0.95     MA        1.00*    
!   MK        0.97     NL        1.05     ON        1.00*    OV        0.81     
!   PT        1.01     SC        1.08     TC        1.00*    TS        1.00*    
!   WF        0.94     WZ        1.00*    
! 
!  A total of 123 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.05     FD        1.11     GG        1.00*    HN        1.00*    
!   KK        1.04     KP        1.01     LA        0.98     MA        1.00*    
!   MK        0.98     NL        1.00*    ON        1.00*    OV        1.17     
!   PT        1.05     SC        1.00*    TC        1.18     TS        1.09     
!   WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.599475Jy  sigma=0.004237
! Fit after  self-cal, rms=0.492189Jy  sigma=0.003357
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.711 mas, bmaj=5.692 mas, bpa=-1.098 degrees
! Estimated noise=586.045 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 (3.5, -9.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0799118 Jy
! Component: 100  -  total flux cleaned = 0.0988263 Jy
! Component: 150  -  total flux cleaned = 0.105434 Jy
! Component: 200  -  total flux cleaned = 0.109587 Jy
! Total flux subtracted in 200 components = 0.109587 Jy
! Clean residual min=-0.033031 max=0.041412 Jy/beam
! Clean residual mean=0.004182 rms=0.009941 Jy/beam
! Combined flux in latest and established models = 1.86746 Jy
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 75 components and 1.86746 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.480392Jy  sigma=0.003197
! Fit after  self-cal, rms=0.480644Jy  sigma=0.003174
! 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.480644Jy  sigma=0.003174
! Fit after  self-cal, rms=0.450152Jy  sigma=0.003090
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.714 mas, bmaj=5.543 mas, bpa=-0.8328 degrees
! Estimated noise=584.84 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0436358 Jy
! Component: 100  -  total flux cleaned = 0.053684 Jy
! Component: 150  -  total flux cleaned = 0.0566373 Jy
! Component: 200  -  total flux cleaned = 0.0572396 Jy
! Total flux subtracted in 200 components = 0.0572396 Jy
! Clean residual min=-0.023064 max=0.032831 Jy/beam
! Clean residual mean=0.003270 rms=0.007193 Jy/beam
! Combined flux in latest and established models = 1.9247 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 89 components and 1.9247 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.445602Jy  sigma=0.003035
! Fit after  self-cal, rms=0.445139Jy  sigma=0.003028
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, -21).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0298674 Jy
! Component: 100  -  total flux cleaned = 0.0370567 Jy
! Component: 150  -  total flux cleaned = 0.0381012 Jy
! Component: 200  -  total flux cleaned = 0.0380969 Jy
! Total flux subtracted in 200 components = 0.0380969 Jy
! Clean residual min=-0.024617 max=0.023917 Jy/beam
! Clean residual mean=0.001317 rms=0.006403 Jy/beam
! Combined flux in latest and established models = 1.96279 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 101 components and 1.96279 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.442885Jy  sigma=0.002998
! Fit after  self-cal, rms=0.443104Jy  sigma=0.002996
! 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.443104Jy  sigma=0.002996
! Fit after  self-cal, rms=0.428740Jy  sigma=0.002975
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.72 mas, bmaj=5.42 mas, bpa=-0.6064 degrees
! Estimated noise=583.053 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0264315 Jy
! Component: 100  -  total flux cleaned = 0.0356802 Jy
! Component: 150  -  total flux cleaned = 0.0410936 Jy
! Component: 200  -  total flux cleaned = 0.0430736 Jy
! Total flux subtracted in 200 components = 0.0430736 Jy
! Clean residual min=-0.016728 max=0.018293 Jy/beam
! Clean residual mean=0.001217 rms=0.004794 Jy/beam
! Combined flux in latest and established models = 2.00587 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 109 components and 2.00587 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.426700Jy  sigma=0.002952
! Fit after  self-cal, rms=0.426680Jy  sigma=0.002950
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.00691258 Jy
! Component: 100  -  total flux cleaned = 0.00883196 Jy
! Component: 150  -  total flux cleaned = 0.00947186 Jy
! Component: 200  -  total flux cleaned = 0.010053 Jy
! Total flux subtracted in 200 components = 0.010053 Jy
! Clean residual min=-0.017440 max=0.016525 Jy/beam
! Clean residual mean=0.000706 rms=0.004501 Jy/beam
! Combined flux in latest and established models = 2.01592 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 117 components and 2.01592 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.425969Jy  sigma=0.002943
! Fit after  self-cal, rms=0.425999Jy  sigma=0.002943
! 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.425999Jy  sigma=0.002943
! Fit after  self-cal, rms=0.419433Jy  sigma=0.002936
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.173 mas, bmaj=15.91 mas, bpa=1.878 degrees
! Estimated noise=719.911 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0183618 Jy
! Component: 100  -  total flux cleaned = 0.0221153 Jy
! Component: 150  -  total flux cleaned = 0.0236108 Jy
! Component: 200  -  total flux cleaned = 0.024704 Jy
! Total flux subtracted in 200 components = 0.024704 Jy
! Clean residual min=-0.008979 max=0.017720 Jy/beam
! Clean residual mean=0.001737 rms=0.004836 Jy/beam
! Combined flux in latest and established models = 2.04062 Jy
selfcal
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 154 components and 2.04062 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.418982Jy  sigma=0.002930
! Fit after  self-cal, rms=0.418896Jy  sigma=0.002929
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.0026328 Jy
! Component: 100  -  total flux cleaned = 0.00407438 Jy
! Component: 150  -  total flux cleaned = 0.00494997 Jy
! Component: 200  -  total flux cleaned = 0.00550548 Jy
! Total flux subtracted in 200 components = 0.00550548 Jy
! Clean residual min=-0.011404 max=0.015269 Jy/beam
! Clean residual mean=0.001163 rms=0.004467 Jy/beam
! Combined flux in latest and established models = 2.04613 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 169 components and 2.04613 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.418817Jy  sigma=0.002927
! Fit after  self-cal, rms=0.418746Jy  sigma=0.002927
! 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.723 mas, bmaj=5.347 mas, bpa=-0.4216 degrees
! Estimated noise=581.841 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.723 x 5.347 at -0.4216 degrees (North through East)
! Clean map  min=-0.014224  max=1.1839 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.418746Jy  sigma=0.002927
! Fit after  self-cal, rms=0.643365Jy  sigma=0.001769
! Inverting map and beam 
! Estimated beam: bmin=2.75 mas, bmaj=5.331 mas, bpa=-0.466 degrees
! Estimated noise=582.08 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00834241 Jy
! Component: 100  -  total flux cleaned = 0.0108825 Jy
! Component: 150  -  total flux cleaned = 0.0121466 Jy
! Component: 200  -  total flux cleaned = 0.0132225 Jy
! Total flux subtracted in 200 components = 0.0132225 Jy
! Clean residual min=-0.010039 max=0.011758 Jy/beam
! Clean residual mean=0.000618 rms=0.002859 Jy/beam
! Combined flux in latest and established models = 2.05935 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 178 components and 2.05935 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.642856Jy  sigma=0.001759
! Fit after  self-cal, rms=0.642827Jy  sigma=0.001758
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00220062 Jy
! Component: 100  -  total flux cleaned = 0.0031881 Jy
! Component: 150  -  total flux cleaned = 0.00361886 Jy
! Component: 200  -  total flux cleaned = 0.00402228 Jy
! Total flux subtracted in 200 components = 0.00402228 Jy
! Clean residual min=-0.010343 max=0.011145 Jy/beam
! Clean residual mean=0.000423 rms=0.002721 Jy/beam
! Combined flux in latest and established models = 2.06338 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 186 components and 2.06337 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.642589Jy  sigma=0.001754
! Fit after  self-cal, rms=0.642572Jy  sigma=0.001754
! 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.642572Jy  sigma=0.001754
! Fit after  self-cal, rms=0.619563Jy  sigma=0.001751
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.227 mas, bmaj=4.52 mas, bpa=-2.36 degrees
! Estimated noise=1219.56 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.05006 Jy
! Component: 100  -  total flux cleaned = 1.40202 Jy
! Component: 150  -  total flux cleaned = 1.56402 Jy
! Component: 200  -  total flux cleaned = 1.65823 Jy
! Total flux subtracted in 200 components = 1.65823 Jy
! Clean residual min=-0.022247 max=0.051517 Jy/beam
! Clean residual mean=0.001006 rms=0.007844 Jy/beam
! Combined flux in latest and established models = 1.65823 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.65823 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.755 mas, bmaj=5.277 mas, bpa=-0.3346 degrees
! Estimated noise=580.823 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.124041 Jy
! Component: 100  -  total flux cleaned = 0.202464 Jy
! Component: 150  -  total flux cleaned = 0.258075 Jy
! Component: 200  -  total flux cleaned = 0.298313 Jy
! Total flux subtracted in 200 components = 0.298313 Jy
! Clean residual min=-0.006005 max=0.025886 Jy/beam
! Clean residual mean=0.006141 rms=0.004701 Jy/beam
! Combined flux in latest and established models = 1.95654 Jy
! Adding 67 model components to the UV plane model.
! The established model now contains 92 components and 1.95654 Jy
! Inverting map 
! Added new window around map position (-1, 6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0304382 Jy
! Component: 100  -  total flux cleaned = 0.0530252 Jy
! Component: 150  -  total flux cleaned = 0.0701821 Jy
! Component: 200  -  total flux cleaned = 0.0832986 Jy
! Total flux subtracted in 200 components = 0.0832986 Jy
! Clean residual min=-0.006434 max=0.012995 Jy/beam
! Clean residual mean=0.002142 rms=0.002688 Jy/beam
! Combined flux in latest and established models = 2.03984 Jy
! Adding 47 model components to the UV plane model.
! The established model now contains 119 components and 2.03984 Jy
! Inverting map 
! Added new window around map position (39.5, -36.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0123786 Jy
! Component: 100  -  total flux cleaned = 0.0207886 Jy
! Component: 150  -  total flux cleaned = 0.0257313 Jy
! Component: 200  -  total flux cleaned = 0.0274066 Jy
! Total flux subtracted in 200 components = 0.0274066 Jy
! Clean residual min=-0.007427 max=0.010753 Jy/beam
! Clean residual mean=0.000867 rms=0.002334 Jy/beam
! Combined flux in latest and established models = 2.06725 Jy
! Adding 37 model components to the UV plane model.
! The established model now contains 136 components and 2.06725 Jy
! Inverting map 
! Added new window around map position (35, -16).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00797487 Jy
! Component: 100  -  total flux cleaned = 0.0100542 Jy
! Component: 150  -  total flux cleaned = 0.0119106 Jy
! Component: 200  -  total flux cleaned = 0.013597 Jy
! Total flux subtracted in 200 components = 0.013597 Jy
! Clean residual min=-0.006754 max=0.007662 Jy/beam
! Clean residual mean=0.000233 rms=0.001964 Jy/beam
! Combined flux in latest and established models = 2.08084 Jy
! Adding 31 model components to the UV plane model.
! The established model now contains 152 components and 2.08084 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=8.145 mas, bmaj=15.88 mas, bpa=2.15 degrees
! Estimated noise=716.983 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00601323 Jy
! Component: 100  -  total flux cleaned = 0.00917183 Jy
! Component: 150  -  total flux cleaned = 0.00962162 Jy
! Component: 200  -  total flux cleaned = 0.0100197 Jy
! Total flux subtracted in 200 components = 0.0100197 Jy
! Clean residual min=-0.006856 max=0.007098 Jy/beam
! Clean residual mean=-0.000501 rms=0.002374 Jy/beam
! Combined flux in latest and established models = 2.09086 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.000174366 Jy
! Component: 100  -  total flux cleaned = 0.000255979 Jy
! Component: 150  -  total flux cleaned = 0.00025593 Jy
! Component: 200  -  total flux cleaned = 0.000330053 Jy
! Total flux subtracted in 200 components = 0.000330053 Jy
! Clean residual min=-0.006668 max=0.006810 Jy/beam
! Clean residual mean=-0.000532 rms=0.002317 Jy/beam
! Combined flux in latest and established models = 2.09119 Jy
! Adding 50 model components to the UV plane model.
! The established model now contains 194 components and 2.09119 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.755 mas, bmaj=5.277 mas, bpa=-0.3346 degrees
! Estimated noise=580.823 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00141426 Jy
! Component: 100  -  total flux cleaned = -0.00155729 Jy
! Component: 150  -  total flux cleaned = -0.00168984 Jy
! Component: 200  -  total flux cleaned = -0.00168748 Jy
! Total flux subtracted in 200 components = -0.00168748 Jy
! Clean residual min=-0.006494 max=0.006471 Jy/beam
! Clean residual mean=-0.000181 rms=0.001791 Jy/beam
! Combined flux in latest and established models = 2.08951 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 211 components and 2.08951 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.618296Jy  sigma=0.001734
! Fit after  self-cal, rms=0.616729Jy  sigma=0.001731
wmodel J1517-2422_S_2003_06_18_pus_map.mod
! Writing 211 model components to file: J1517-2422_S_2003_06_18_pus_map.mod
wobs J1517-2422_S_2003_06_18_pus_uvs.fits
! Writing UV FITS file: J1517-2422_S_2003_06_18_pus_uvs.fits
wwins J1517-2422_S_2003_06_18_pus_map.win
! wwins: Wrote 6 windows to J1517-2422_S_2003_06_18_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.00179637 Jy
! Component: 100  -  total flux cleaned = -0.00202826 Jy
! Component: 150  -  total flux cleaned = -0.00203052 Jy
! Component: 200  -  total flux cleaned = -0.00172401 Jy
! Component: 250  -  total flux cleaned = -0.00152762 Jy
! Component: 300  -  total flux cleaned = -0.00152697 Jy
! Component: 350  -  total flux cleaned = -0.0017135 Jy
! Component: 400  -  total flux cleaned = -0.00198591 Jy
! Component: 450  -  total flux cleaned = -0.00225144 Jy
! Component: 500  -  total flux cleaned = -0.00242478 Jy
! Component: 550  -  total flux cleaned = -0.00259558 Jy
! Component: 600  -  total flux cleaned = -0.00284651 Jy
! Component: 650  -  total flux cleaned = -0.00292865 Jy
! Component: 700  -  total flux cleaned = -0.00317045 Jy
! Component: 750  -  total flux cleaned = -0.00316992 Jy
! Component: 800  -  total flux cleaned = -0.00324887 Jy
! Component: 850  -  total flux cleaned = -0.00340246 Jy
! Component: 900  -  total flux cleaned = -0.00347743 Jy
! Component: 950  -  total flux cleaned = -0.0035507 Jy
! Component: 1000  -  total flux cleaned = -0.00347776 Jy
! Component: 1050  -  total flux cleaned = -0.00369391 Jy
! Component: 1100  -  total flux cleaned = -0.00369362 Jy
! Component: 1150  -  total flux cleaned = -0.00376407 Jy
! Component: 1200  -  total flux cleaned = -0.00397113 Jy
! Component: 1250  -  total flux cleaned = -0.00417511 Jy
! Component: 1300  -  total flux cleaned = -0.00430908 Jy
! Component: 1350  -  total flux cleaned = -0.0045081 Jy
! Component: 1400  -  total flux cleaned = -0.00463895 Jy
! Component: 1450  -  total flux cleaned = -0.0047689 Jy
! Component: 1500  -  total flux cleaned = -0.00496093 Jy
! Component: 1550  -  total flux cleaned = -0.00515085 Jy
! Component: 1600  -  total flux cleaned = -0.00533795 Jy
! Component: 1650  -  total flux cleaned = -0.00546111 Jy
! Component: 1700  -  total flux cleaned = -0.00564455 Jy
! Component: 1750  -  total flux cleaned = -0.00582561 Jy
! Component: 1800  -  total flux cleaned = -0.00588547 Jy
! Component: 1850  -  total flux cleaned = -0.00606321 Jy
! Component: 1900  -  total flux cleaned = -0.0061801 Jy
! Component: 1950  -  total flux cleaned = -0.0062958 Jy
! Component: 2000  -  total flux cleaned = -0.00635321 Jy
! Total flux subtracted in 2048 components = -0.00646667 Jy
! Clean residual min=-0.003023 max=0.002937 Jy/beam
! Clean residual mean=-0.000071 rms=0.001103 Jy/beam
! Combined flux in latest and established models = 2.08304 Jy
keep
! Adding 116 model components to the UV plane model.
! The established model now contains 327 components and 2.08304 Jy
wmap "J1517-2422_S_2003_06_18_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.755 x 5.277 at -0.3346 degrees (North through East)
! Clean map  min=-0.0060154  max=1.196 Jy/beam
! Writing clean map to FITS file: J1517-2422_S_2003_06_18_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.196 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00110793 
device "J1517-2422_S_2003_06_18_pus\_map.eps/VPS"
! Attempting to open device: 'J1517-2422_S_2003_06_18_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.277908 0.277908 0.555815 1.11163 2.22326 4.44652 8.89304 17.7861 35.5722 71.1444
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0033 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.196 
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.755 x 5.277 at -0.3346 degrees (North through East)
! Clean map  min=-0.0060154  max=1.196 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1517-2422_S_2003_06_18_pus\_map.gif/vgif"
! Attempting to open device: 'J1517-2422_S_2003_06_18_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1517-2422_S_2003_06_18_pus_uvs.log closed on Tue Jan 23 23:16:49 2007