! Started logfile: J1625-2527_S_2003_05_07_pus_uvs.log on Sun Dec 24 11:22:35 2006
obs J1625-2527_S_2003_05_07_pus_uva.fits
! Reading UV FITS file: J1625-2527_S_2003_05_07_pus_uva.fits
! AN table 1: 193 integrations on 171 of 171 possible baselines.
! AN table 2: 23 integrations on 171 of 171 possible baselines.
! AN table 3: 89 integrations on 171 of 171 possible baselines.
! AN table 4: 169 integrations on 171 of 171 possible baselines.
! AN table 5: 84 integrations on 171 of 171 possible baselines.
! AN table 6: 131 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.0435414 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1625-2527
! 
! 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 1680 lines of history.
! 
! Reading 20520 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
float field_size
field_size = 512
float field_cell
field_cell = 0.5
float taper_size
taper_size = 20.
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 3231 telescope corrections were flagged in sub-array 1.
!  A total of 437 telescope corrections were flagged in sub-array 2.
!  A total of 1358 telescope corrections were flagged in sub-array 3.
!  A total of 3046 telescope corrections were flagged in sub-array 4.
!  A total of 1054 telescope corrections were flagged in sub-array 5.
!  A total of 2170 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 2.
!  A total of 3225 telescope corrections were flagged in sub-array 1.
!  A total of 437 telescope corrections were flagged in sub-array 2.
!  A total of 1358 telescope corrections were flagged in sub-array 3.
!  A total of 3051 telescope corrections were flagged in sub-array 4.
!  A total of 1054 telescope corrections were flagged in sub-array 5.
!  A total of 2254 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 3.
!  A total of 3228 telescope corrections were flagged in sub-array 1.
!  A total of 437 telescope corrections were flagged in sub-array 2.
!  A total of 1358 telescope corrections were flagged in sub-array 3.
!  A total of 3092 telescope corrections were flagged in sub-array 4.
!  A total of 1054 telescope corrections were flagged in sub-array 5.
!  A total of 2147 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 4.
!  A total of 3231 telescope corrections were flagged in sub-array 1.
!  A total of 437 telescope corrections were flagged in sub-array 2.
!  A total of 1358 telescope corrections were flagged in sub-array 3.
!  A total of 3125 telescope corrections were flagged in sub-array 4.
!  A total of 1055 telescope corrections were flagged in sub-array 5.
!  A total of 2191 telescope corrections were flagged in sub-array 6.
! 
! Fit before self-cal, rms=1.231873Jy  sigma=0.006685
! Fit after  self-cal, rms=0.592392Jy  sigma=0.001633
! 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.267 mas, bmaj=3.682 mas, bpa=-11.44 degrees
! Estimated noise=2110.47 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.696397 Jy
! Component: 100  -  total flux cleaned = 0.863768 Jy
! Total flux subtracted in 100 components = 0.863768 Jy
! Clean residual min=-0.032601 max=0.069476 Jy/beam
! Clean residual mean=0.000476 rms=0.009711 Jy/beam
! Combined flux in latest and established models = 0.863768 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 0.863768 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.605021Jy  sigma=0.002033
! Fit after  self-cal, rms=0.605044Jy  sigma=0.002033
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0778788 Jy
! Component: 100  -  total flux cleaned = 0.122172 Jy
! Total flux subtracted in 100 components = 0.122172 Jy
! Clean residual min=-0.032621 max=0.046087 Jy/beam
! Clean residual mean=0.000199 rms=0.007935 Jy/beam
! Combined flux in latest and established models = 0.98594 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 22 components and 0.98594 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.584692Jy  sigma=0.001634
! Fit after  self-cal, rms=0.584773Jy  sigma=0.001634
! 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.527 mas, bmaj=5.779 mas, bpa=-16.02 degrees
! Estimated noise=960.876 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.0892789 Jy
! Component: 100  -  total flux cleaned = 0.120232 Jy
! Component: 150  -  total flux cleaned = 0.131704 Jy
! Component: 200  -  total flux cleaned = 0.136028 Jy
! Total flux subtracted in 200 components = 0.136028 Jy
! Clean residual min=-0.015252 max=0.029538 Jy/beam
! Clean residual mean=-0.000125 rms=0.006305 Jy/beam
! Combined flux in latest and established models = 1.12197 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 42 components and 1.12197 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.578417Jy  sigma=0.001432
! Fit after  self-cal, rms=0.578629Jy  sigma=0.001432
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 126 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.09     FD        0.98     GG        1.00*    HN        1.07     
!   KK        0.99     KP        0.95     LA        1.04     MA        1.75     
!   MC        0.91     MK        1.03     NL        1.15     ON        1.03     
!   OV        1.33     PT        1.00     SC        0.95     TC        1.21     
!   TS        1.00*    WF        0.98     WZ        1.08     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        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*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.97     GG        1.00*    HN        0.90     
!   KK        1.00*    KP        1.00     LA        1.03     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.04     ON        1.00*    
!   OV        0.93     PT        1.01     SC        0.82     TC        1.03     
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 96 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.63     
!   MC        0.92     MK        1.00*    NL        1.00*    ON        0.99     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.28     
!   TS        1.00*    WF        1.00*    WZ        0.98     
! 
!  A total of 6 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.02     FD        0.97     GG        1.00*    HN        0.98     
!   KK        1.00*    KP        0.96     LA        1.01     MA        1.82     
!   MC        0.97     MK        1.00*    NL        0.98     ON        1.08     
!   OV        0.92     PT        0.99     SC        0.90     TC        1.10     
!   TS        1.00*    WF        1.11     WZ        1.01     
! 
!  A total of 87 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.72     
!   MC        1.00     MK        1.00*    NL        1.00*    ON        1.00*    
!   OV        1.00*    PT        1.00*    SC        0.92     TC        0.99     
!   TS        1.00*    WF        0.95     WZ        1.06     
! 
! 
! Correcting IF 2.
!  A total of 132 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.12     FD        1.03     GG        1.00*    HN        1.13     
!   KK        1.06     KP        0.92     LA        0.98     MA        1.63     
!   MC        1.15     MK        1.04     NL        1.19     ON        1.09     
!   OV        1.15     PT        1.01     SC        0.96     TC        1.13     
!   TS        1.00*    WF        1.00     WZ        0.90     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        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*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.05     FD        1.03     GG        1.00*    HN        1.03     
!   KK        1.00*    KP        0.98     LA        0.98     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.06     ON        1.00*    
!   OV        1.01     PT        0.99     SC        0.85     TC        1.05     
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 48 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.18     
!   MC        0.98     MK        1.00*    NL        1.00*    ON        1.12     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.03     
!   TS        1.00*    WF        1.00*    WZ        0.93     
! 
!  A total of 6 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.11     FD        1.01     GG        1.00*    HN        1.04     
!   KK        1.00*    KP        0.97     LA        0.94     MA        1.04     
!   MC        1.06     MK        1.00*    NL        1.01     ON        1.25     
!   OV        0.96     PT        0.98     SC        0.89     TC        1.06     
!   TS        1.00*    WF        1.15     WZ        0.95     
! 
!  A total of 30 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        0.99     
!   MC        1.06     MK        1.00*    NL        1.00*    ON        1.00*    
!   OV        1.00*    PT        1.00*    SC        0.92     TC        1.09     
!   TS        1.00*    WF        0.99     WZ        1.08     
! 
! 
! Correcting IF 3.
!  A total of 129 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.07     FD        0.98     GG        1.00*    HN        1.10     
!   KK        1.03     KP        0.95     LA        0.97     MA        1.41     
!   MC        1.15     MK        0.96     NL        1.18     ON        1.12     
!   OV        1.44     PT        1.02     SC        1.06     TC        0.95     
!   TS        1.00*    WF        0.99     WZ        0.93     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        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*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.97     GG        1.00*    HN        0.99     
!   KK        1.00*    KP        1.00     LA        0.97     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.07     ON        1.00*    
!   OV        0.94     PT        1.01     SC        0.99     TC        0.94     
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 87 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.13     
!   MC        1.08     MK        1.00*    NL        1.00*    ON        1.18     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        0.91     
! 
!  A total of 6 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.06     FD        0.95     GG        1.00*    HN        1.04     
!   KK        1.00*    KP        0.99     LA        0.95     MA        1.02     
!   MC        1.19     MK        1.00*    NL        1.00     ON        1.27     
!   OV        0.93     PT        0.98     SC        1.01     TC        0.93     
!   TS        1.00*    WF        0.98     WZ        1.03     
! 
!  A total of 27 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.10     
!   MC        1.56     MK        1.00*    NL        1.00*    ON        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.05     TC        0.85     
!   TS        1.00*    WF        0.93     WZ        1.03     
! 
! 
! Correcting IF 4.
!  A total of 126 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        0.97     GG        1.00*    HN        1.12     
!   KK        0.97     KP        0.96     LA        0.98     MA        0.84     
!   MC        1.18     MK        1.03     NL        1.10     ON        1.12     
!   OV        1.58     PT        0.97     SC        1.11     TC        0.98     
!   TS        1.00*    WF        1.08     WZ        1.06     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        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*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.92     FD        0.98     GG        1.00*    HN        0.92     
!   KK        1.00*    KP        0.98     LA        0.98     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.00     ON        1.00*    
!   OV        0.87     PT        0.96     SC        0.98     TC        0.91     
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 54 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.07     
!   MC        1.02     MK        1.00*    NL        1.00*    ON        1.01     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        0.94     
! 
!  A total of 6 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.04     FD        0.95     GG        1.00*    HN        1.06     
!   KK        1.00*    KP        0.95     LA        0.95     MA        1.01     
!   MC        0.96     MK        1.00*    NL        0.94     ON        1.05     
!   OV        0.87     PT        0.94     SC        1.01     TC        0.99     
!   TS        1.00*    WF        1.04     WZ        1.06     
! 
!  A total of 66 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        0.89     
!   MC        1.14     MK        1.00*    NL        1.00*    ON        1.00*    
!   OV        1.00*    PT        1.00*    SC        0.96     TC        0.91     
!   TS        1.00*    WF        1.02     WZ        1.13     
! 
! 
! Fit before self-cal, rms=0.578629Jy  sigma=0.001432
! Fit after  self-cal, rms=0.624812Jy  sigma=0.001257
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.659 mas, bmaj=6.02 mas, bpa=-15.53 degrees
! Estimated noise=959.701 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.00127106 Jy
! Component: 100  -  total flux cleaned = -0.00138712 Jy
! Component: 150  -  total flux cleaned = -0.00149076 Jy
! Component: 200  -  total flux cleaned = -0.00158177 Jy
! Total flux subtracted in 200 components = -0.00158177 Jy
! Clean residual min=-0.006960 max=0.010308 Jy/beam
! Clean residual mean=0.000173 rms=0.002366 Jy/beam
! Combined flux in latest and established models = 1.12039 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 46 components and 1.12039 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.624756Jy  sigma=0.001257
! Fit after  self-cal, rms=0.628203Jy  sigma=0.001256
! 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.628203Jy  sigma=0.001256
! Fit after  self-cal, rms=0.619482Jy  sigma=0.001231
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.666 mas, bmaj=6.019 mas, bpa=-15.75 degrees
! Estimated noise=960.22 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000368043 Jy
! Component: 100  -  total flux cleaned = -0.000516834 Jy
! Component: 150  -  total flux cleaned = -0.000583141 Jy
! Component: 200  -  total flux cleaned = -0.000641071 Jy
! Total flux subtracted in 200 components = -0.000641071 Jy
! Clean residual min=-0.005139 max=0.010478 Jy/beam
! Clean residual mean=0.000356 rms=0.002102 Jy/beam
! Combined flux in latest and established models = 1.11975 Jy
selfcal
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 51 components and 1.11975 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.619449Jy  sigma=0.001231
! Fit after  self-cal, rms=0.619423Jy  sigma=0.001231
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 (-17, 16.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00901235 Jy
! Component: 100  -  total flux cleaned = 0.0117509 Jy
! Component: 150  -  total flux cleaned = 0.011851 Jy
! Component: 200  -  total flux cleaned = 0.0119414 Jy
! Total flux subtracted in 200 components = 0.0119414 Jy
! Clean residual min=-0.004687 max=0.006927 Jy/beam
! Clean residual mean=0.000262 rms=0.001726 Jy/beam
! Combined flux in latest and established models = 1.13169 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 70 components and 1.13169 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.619165Jy  sigma=0.001229
! Fit after  self-cal, rms=0.619021Jy  sigma=0.001229
! 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.619021Jy  sigma=0.001229
! Fit after  self-cal, rms=0.611070Jy  sigma=0.001216
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.667 mas, bmaj=6.019 mas, bpa=-15.94 degrees
! Estimated noise=959.697 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00161015 Jy
! Component: 100  -  total flux cleaned = 0.00178594 Jy
! Component: 150  -  total flux cleaned = 0.00194303 Jy
! Component: 200  -  total flux cleaned = 0.00201446 Jy
! Total flux subtracted in 200 components = 0.00201446 Jy
! Clean residual min=-0.005011 max=0.006297 Jy/beam
! Clean residual mean=0.000297 rms=0.001553 Jy/beam
! Combined flux in latest and established models = 1.1337 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 81 components and 1.1337 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.610991Jy  sigma=0.001216
! Fit after  self-cal, rms=0.611162Jy  sigma=0.001215
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.00119707 Jy
! Component: 100  -  total flux cleaned = 0.00119751 Jy
! Component: 150  -  total flux cleaned = 0.00119729 Jy
! Component: 200  -  total flux cleaned = 0.00126159 Jy
! Total flux subtracted in 200 components = 0.00126159 Jy
! Clean residual min=-0.004813 max=0.006036 Jy/beam
! Clean residual mean=0.000287 rms=0.001542 Jy/beam
! Combined flux in latest and established models = 1.13496 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 87 components and 1.13496 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.611108Jy  sigma=0.001215
! Fit after  self-cal, rms=0.611116Jy  sigma=0.001215
! 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.611116Jy  sigma=0.001215
! Fit after  self-cal, rms=0.609456Jy  sigma=0.001215
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=9.223 mas, bmaj=21.8 mas, bpa=-13.04 degrees
! Estimated noise=1007.42 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00209798 Jy
! Component: 100  -  total flux cleaned = 0.00220355 Jy
! Component: 150  -  total flux cleaned = 0.00224897 Jy
! Component: 200  -  total flux cleaned = 0.00229335 Jy
! Total flux subtracted in 200 components = 0.00229335 Jy
! Clean residual min=-0.003924 max=0.005873 Jy/beam
! Clean residual mean=0.000454 rms=0.001962 Jy/beam
! Combined flux in latest and established models = 1.13726 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 96 components and 1.13726 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.609442Jy  sigma=0.001215
! Fit after  self-cal, rms=0.609490Jy  sigma=0.001215
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.000337757 Jy
! Component: 100  -  total flux cleaned = 0.00042667 Jy
! Component: 150  -  total flux cleaned = 0.000469895 Jy
! Component: 200  -  total flux cleaned = 0.000471164 Jy
! Total flux subtracted in 200 components = 0.000471164 Jy
! Clean residual min=-0.003800 max=0.005895 Jy/beam
! Clean residual mean=0.000448 rms=0.001962 Jy/beam
! Combined flux in latest and established models = 1.13773 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 99 components and 1.13773 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.609478Jy  sigma=0.001215
! Fit after  self-cal, rms=0.609473Jy  sigma=0.001215
! 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.669 mas, bmaj=6.019 mas, bpa=-15.99 degrees
! Estimated noise=959.489 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.669 x 6.019 at -15.99 degrees (North through East)
! Clean map  min=-0.0045176  max=0.99775 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.609473Jy  sigma=0.001215
! Fit after  self-cal, rms=1.713027Jy  sigma=0.001054
! Inverting map and beam 
! Estimated beam: bmin=3.663 mas, bmaj=6.019 mas, bpa=-16.06 degrees
! Estimated noise=959.493 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000843539 Jy
! Component: 100  -  total flux cleaned = 0.000908334 Jy
! Component: 150  -  total flux cleaned = 0.000910966 Jy
! Component: 200  -  total flux cleaned = 0.000913458 Jy
! Total flux subtracted in 200 components = 0.000913458 Jy
! Clean residual min=-0.004143 max=0.006128 Jy/beam
! Clean residual mean=0.000330 rms=0.001442 Jy/beam
! Combined flux in latest and established models = 1.13864 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 106 components and 1.13864 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.712989Jy  sigma=0.001054
! Fit after  self-cal, rms=1.713016Jy  sigma=0.001054
! Inverting map 
! Added new window around map position (-1.5, 21).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00481841 Jy
! Component: 100  -  total flux cleaned = 0.00504224 Jy
! Component: 150  -  total flux cleaned = 0.00541382 Jy
! Component: 200  -  total flux cleaned = 0.00557938 Jy
! Total flux subtracted in 200 components = 0.00557938 Jy
! Clean residual min=-0.003735 max=0.004931 Jy/beam
! Clean residual mean=0.000251 rms=0.001282 Jy/beam
! Combined flux in latest and established models = 1.14422 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 122 components and 1.14422 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.712993Jy  sigma=0.001053
! Fit after  self-cal, rms=1.713018Jy  sigma=0.001053
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.713018Jy  sigma=0.001053
! Fit after  self-cal, rms=2.914145Jy  sigma=0.001052
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.298 mas, bmaj=3.748 mas, bpa=-10.67 degrees
! Estimated noise=2265.49 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.733816 Jy
! Component: 100  -  total flux cleaned = 0.905527 Jy
! Component: 150  -  total flux cleaned = 0.983483 Jy
! Component: 200  -  total flux cleaned = 1.0295 Jy
! Total flux subtracted in 200 components = 1.0295 Jy
! Clean residual min=-0.011954 max=0.023624 Jy/beam
! Clean residual mean=0.000333 rms=0.003337 Jy/beam
! Combined flux in latest and established models = 1.0295 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 32 model components to the UV plane model.
! The established model now contains 32 components and 1.0295 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.664 mas, bmaj=6.02 mas, bpa=-16.06 degrees
! Estimated noise=959.324 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.055527 Jy
! Component: 100  -  total flux cleaned = 0.0768434 Jy
! Component: 150  -  total flux cleaned = 0.0896145 Jy
! Component: 200  -  total flux cleaned = 0.0979753 Jy
! Total flux subtracted in 200 components = 0.0979753 Jy
! Clean residual min=-0.004990 max=0.007366 Jy/beam
! Clean residual mean=0.000449 rms=0.001730 Jy/beam
! Combined flux in latest and established models = 1.12748 Jy
! Adding 43 model components to the UV plane model.
! The established model now contains 63 components and 1.12748 Jy
! Inverting map 
! Added new window around map position (-4.5, 5.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00687122 Jy
! Component: 100  -  total flux cleaned = 0.0112075 Jy
! Component: 150  -  total flux cleaned = 0.0137103 Jy
! Component: 200  -  total flux cleaned = 0.0147271 Jy
! Total flux subtracted in 200 components = 0.0147271 Jy
! Clean residual min=-0.003885 max=0.004990 Jy/beam
! Clean residual mean=0.000292 rms=0.001307 Jy/beam
! Combined flux in latest and established models = 1.14221 Jy
! Adding 25 model components to the UV plane model.
! The established model now contains 82 components and 1.14221 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=9.215 mas, bmaj=21.8 mas, bpa=-13.03 degrees
! Estimated noise=1008.01 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00310182 Jy
! Component: 100  -  total flux cleaned = 0.00416579 Jy
! Component: 150  -  total flux cleaned = 0.00457954 Jy
! Component: 200  -  total flux cleaned = 0.00495494 Jy
! Total flux subtracted in 200 components = 0.00495494 Jy
! Clean residual min=-0.003035 max=0.004867 Jy/beam
! Clean residual mean=0.000401 rms=0.001490 Jy/beam
! Combined flux in latest and established models = 1.14716 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.000287988 Jy
! Component: 100  -  total flux cleaned = 0.000502005 Jy
! Component: 150  -  total flux cleaned = 0.000654767 Jy
! Component: 200  -  total flux cleaned = 0.000847216 Jy
! Total flux subtracted in 200 components = 0.000847216 Jy
! Clean residual min=-0.002908 max=0.004772 Jy/beam
! Clean residual mean=0.000388 rms=0.001445 Jy/beam
! Combined flux in latest and established models = 1.14801 Jy
! Adding 22 model components to the UV plane model.
! The established model now contains 101 components and 1.14801 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.664 mas, bmaj=6.02 mas, bpa=-16.06 degrees
! Estimated noise=959.324 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000791215 Jy
! Component: 100  -  total flux cleaned = -0.000793654 Jy
! Component: 150  -  total flux cleaned = -0.000886636 Jy
! Component: 200  -  total flux cleaned = -0.000800942 Jy
! Total flux subtracted in 200 components = -0.000800942 Jy
! Clean residual min=-0.003752 max=0.004672 Jy/beam
! Clean residual mean=0.000250 rms=0.001184 Jy/beam
! Combined flux in latest and established models = 1.14721 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 113 components and 1.14721 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.913934Jy  sigma=0.001052
! Fit after  self-cal, rms=2.914075Jy  sigma=0.001052
wmodel J1625-2527_S_2003_05_07_pus_map.mod
! Writing 113 model components to file: J1625-2527_S_2003_05_07_pus_map.mod
wobs J1625-2527_S_2003_05_07_pus_uvs.fits
! Writing UV FITS file: J1625-2527_S_2003_05_07_pus_uvs.fits
wwins J1625-2527_S_2003_05_07_pus_map.win
! wwins: Wrote 4 windows to J1625-2527_S_2003_05_07_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.00186189 Jy
! Component: 100  -  total flux cleaned = 0.00320937 Jy
! Component: 150  -  total flux cleaned = 0.00434707 Jy
! Component: 200  -  total flux cleaned = 0.00556463 Jy
! Component: 250  -  total flux cleaned = 0.00673511 Jy
! Component: 300  -  total flux cleaned = 0.00774513 Jy
! Component: 350  -  total flux cleaned = 0.0087272 Jy
! Component: 400  -  total flux cleaned = 0.00968777 Jy
! Component: 450  -  total flux cleaned = 0.0105726 Jy
! Component: 500  -  total flux cleaned = 0.0114944 Jy
! Component: 550  -  total flux cleaned = 0.0123446 Jy
! Component: 600  -  total flux cleaned = 0.0131266 Jy
! Component: 650  -  total flux cleaned = 0.0138953 Jy
! Component: 700  -  total flux cleaned = 0.0146015 Jy
! Component: 750  -  total flux cleaned = 0.0152971 Jy
! Component: 800  -  total flux cleaned = 0.0159811 Jy
! Component: 850  -  total flux cleaned = 0.0166073 Jy
! Component: 900  -  total flux cleaned = 0.0172725 Jy
! Component: 950  -  total flux cleaned = 0.0177878 Jy
! Component: 1000  -  total flux cleaned = 0.0182971 Jy
! Component: 1050  -  total flux cleaned = 0.0187543 Jy
! Component: 1100  -  total flux cleaned = 0.0191614 Jy
! Component: 1150  -  total flux cleaned = 0.0197866 Jy
! Component: 1200  -  total flux cleaned = 0.0201394 Jy
! Component: 1250  -  total flux cleaned = 0.0204019 Jy
! Component: 1300  -  total flux cleaned = 0.0208357 Jy
! Component: 1350  -  total flux cleaned = 0.0212223 Jy
! Component: 1400  -  total flux cleaned = 0.021563 Jy
! Component: 1450  -  total flux cleaned = 0.021859 Jy
! Component: 1500  -  total flux cleaned = 0.0222362 Jy
! Component: 1550  -  total flux cleaned = 0.0226104 Jy
! Component: 1600  -  total flux cleaned = 0.0229405 Jy
! Component: 1650  -  total flux cleaned = 0.023268 Jy
! Component: 1700  -  total flux cleaned = 0.0235121 Jy
! Component: 1750  -  total flux cleaned = 0.0240372 Jy
! Component: 1800  -  total flux cleaned = 0.0241976 Jy
! Component: 1850  -  total flux cleaned = 0.0245567 Jy
! Component: 1900  -  total flux cleaned = 0.0247943 Jy
! Component: 1950  -  total flux cleaned = 0.0250701 Jy
! Component: 2000  -  total flux cleaned = 0.0253052 Jy
! Total flux subtracted in 2048 components = 0.025656 Jy
! Clean residual min=-0.002085 max=0.002339 Jy/beam
! Clean residual mean=0.000101 rms=0.000696 Jy/beam
! Combined flux in latest and established models = 1.17286 Jy
keep
! Adding 116 model components to the UV plane model.
! The established model now contains 228 components and 1.17286 Jy
wmap "J1625-2527_S_2003_05_07_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.664 x 6.02 at -16.06 degrees (North through East)
! Clean map  min=-0.0036614  max=1.0075 Jy/beam
! Writing clean map to FITS file: J1625-2527_S_2003_05_07_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.00747 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000690453 
device "J1625-2527_S_2003_05_07_pus\_map.eps/VPS"
! Attempting to open device: 'J1625-2527_S_2003_05_07_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.2056 0.2056 0.4112 0.8224 1.6448 3.2896 6.5792 13.1584 26.3168 52.6336
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.002 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.007 
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.664 x 6.02 at -16.06 degrees (North through East)
! Clean map  min=-0.0036614  max=1.0075 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1625-2527_S_2003_05_07_pus\_map.gif/vgif"
! Attempting to open device: 'J1625-2527_S_2003_05_07_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1625-2527_S_2003_05_07_pus_uvs.log closed on Sun Dec 24 11:25:31 2006