! Started logfile: J2253+1942_S_2003_05_07_pus_uvs.log on Sun Dec 24 18:06:07 2006
obs J2253+1942_S_2003_05_07_pus_uva.fits
! Reading UV FITS file: J2253+1942_S_2003_05_07_pus_uva.fits
! AN table 1: 17 integrations on 171 of 171 possible baselines.
! AN table 2: 396 integrations on 171 of 171 possible baselines.
! AN table 3: 62 integrations on 171 of 171 possible baselines.
! AN table 4: 446 integrations on 171 of 171 possible baselines.
! AN table 5: 40 integrations on 171 of 171 possible baselines.
! AN table 6: 8 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.0788357 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2253+1942
! 
! 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 52252 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 296 telescope corrections were flagged in sub-array 1.
!  A total of 5988 telescope corrections were flagged in sub-array 2.
!  A total of 1058 telescope corrections were flagged in sub-array 3.
!  A total of 6243 telescope corrections were flagged in sub-array 4.
!  A total of 760 telescope corrections were flagged in sub-array 5.
!  A total of 152 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 2.
!  A total of 323 telescope corrections were flagged in sub-array 1.
!  A total of 6003 telescope corrections were flagged in sub-array 2.
!  A total of 1058 telescope corrections were flagged in sub-array 3.
!  A total of 6289 telescope corrections were flagged in sub-array 4.
!  A total of 760 telescope corrections were flagged in sub-array 5.
!  A total of 152 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 3.
!  A total of 323 telescope corrections were flagged in sub-array 1.
!  A total of 6165 telescope corrections were flagged in sub-array 2.
!  A total of 1058 telescope corrections were flagged in sub-array 3.
!  A total of 6290 telescope corrections were flagged in sub-array 4.
!  A total of 742 telescope corrections were flagged in sub-array 5.
!  A total of 152 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 4.
!  A total of 296 telescope corrections were flagged in sub-array 1.
!  A total of 6130 telescope corrections were flagged in sub-array 2.
!  A total of 1058 telescope corrections were flagged in sub-array 3.
!  A total of 6241 telescope corrections were flagged in sub-array 4.
!  A total of 760 telescope corrections were flagged in sub-array 5.
!  A total of 152 telescope corrections were flagged in sub-array 6.
! 
! Fit before self-cal, rms=0.923022Jy  sigma=0.007148
! Fit after  self-cal, rms=0.766716Jy  sigma=0.006177
! 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.312 mas, bmaj=5.961 mas, bpa=0.5198 degrees
! Estimated noise=804.058 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.188593 Jy
! Component: 100  -  total flux cleaned = 0.237266 Jy
! Total flux subtracted in 100 components = 0.237266 Jy
! Clean residual min=-0.006376 max=0.020728 Jy/beam
! Clean residual mean=0.000093 rms=0.002050 Jy/beam
! Combined flux in latest and established models = 0.237266 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 0.237266 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.236399Jy  sigma=0.001325
! Fit after  self-cal, rms=0.236200Jy  sigma=0.001325
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0241071 Jy
! Component: 100  -  total flux cleaned = 0.0387937 Jy
! Total flux subtracted in 100 components = 0.0387937 Jy
! Clean residual min=-0.005909 max=0.007659 Jy/beam
! Clean residual mean=0.000033 rms=0.001506 Jy/beam
! Combined flux in latest and established models = 0.27606 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 26 components and 0.27606 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.232262Jy  sigma=0.001287
! Fit after  self-cal, rms=0.232209Jy  sigma=0.001287
! 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.327 mas, bmaj=7.65 mas, bpa=-0.9635 degrees
! Estimated noise=421 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.0108808 Jy
! Component: 100  -  total flux cleaned = 0.0159087 Jy
! Component: 150  -  total flux cleaned = 0.0184652 Jy
! Component: 200  -  total flux cleaned = 0.0194258 Jy
! Total flux subtracted in 200 components = 0.0194258 Jy
! Clean residual min=-0.004716 max=0.004790 Jy/beam
! Clean residual mean=0.000244 rms=0.001279 Jy/beam
! Combined flux in latest and established models = 0.295486 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 45 components and 0.295486 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.231424Jy  sigma=0.001284
! Fit after  self-cal, rms=0.231446Jy  sigma=0.001283
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 27 telescope corrections were flagged in sub-array 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*    
!   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 228 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.06     FD        1.02     GG        1.00*    HN        0.99     
!   KK        1.00*    KP        1.01     LA        1.06     MA        0.68     
!   MC        0.99     MK        1.00*    NL        0.92     ON        0.85     
!   OV        1.12     PT        1.07     SC        0.99     TC        1.00*    
!   TS        1.09     WF        1.02     WZ        0.96     
! 
!  A total of 57 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.01     GG        1.00*    HN        1.06     
!   KK        1.00*    KP        1.00*    LA        1.12     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        0.99     ON        1.00*    
!   OV        1.00*    PT        1.01     SC        1.01     TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 126 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.00     GG        1.00*    HN        0.96     
!   KK        0.97     KP        0.98     LA        1.07     MA        0.65     
!   MC        1.00     MK        1.06     NL        0.95     ON        1.11     
!   OV        0.98     PT        1.05     SC        0.95     TC        1.00*    
!   TS        1.18     WF        0.97     WZ        0.95     
! 
!  Telescope amplitude corrections in sub-array 5:
!   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*    
! 
!  Telescope amplitude corrections in sub-array 6:
!   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*    
! 
! 
! 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*    
!   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 390 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.17     FD        1.05     GG        1.00*    HN        1.01     
!   KK        1.00*    KP        1.06     LA        1.03     MA        0.89     
!   MC        1.07     MK        1.00*    NL        0.95     ON        0.99     
!   OV        1.10     PT        1.02     SC        0.99     TC        1.00*    
!   TS        1.00*    WF        0.97     WZ        1.01     
! 
!  A total of 57 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.09     GG        1.00*    HN        1.11     
!   KK        1.00*    KP        1.00*    LA        0.96     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.02     ON        1.00*    
!   OV        1.00*    PT        1.16     SC        1.00     TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 198 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.06     FD        1.05     GG        1.00*    HN        1.03     
!   KK        1.09     KP        0.94     LA        1.00     MA        0.84     
!   MC        0.88     MK        1.09     NL        0.99     ON        0.83     
!   OV        1.01     PT        1.02     SC        0.92     TC        1.00*    
!   TS        1.00*    WF        1.06     WZ        1.28     
! 
!  Telescope amplitude corrections in sub-array 5:
!   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*    
! 
!  Telescope amplitude corrections in sub-array 6:
!   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*    
! 
! 
! 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*    
!   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 267 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.06     FD        1.03     GG        1.00*    HN        1.07     
!   KK        1.00*    KP        1.05     LA        0.98     MA        0.83     
!   MC        1.01     MK        1.00*    NL        0.95     ON        0.85     
!   OV        1.11     PT        1.10     SC        1.11     TC        1.00*    
!   TS        1.00*    WF        0.92     WZ        1.04     
! 
!  A total of 57 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.02     GG        1.00*    HN        1.13     
!   KK        1.00*    KP        1.00*    LA        1.03     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.01     ON        1.00*    
!   OV        1.00*    PT        1.04     SC        1.08     TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 201 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.01     GG        1.00*    HN        1.06     
!   KK        1.02     KP        0.97     LA        1.00     MA        1.00     
!   MC        0.93     MK        1.02     NL        1.00     ON        0.91     
!   OV        0.99     PT        1.03     SC        1.16     TC        1.00*    
!   TS        1.00*    WF        1.01     WZ        1.04     
! 
!  A total of 18 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   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*    
! 
!  Telescope amplitude corrections in sub-array 6:
!   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*    
! 
! 
! Correcting IF 4.
!  A total of 27 telescope corrections were flagged in sub-array 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*    
!   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 309 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.02     GG        1.00*    HN        1.04     
!   KK        1.00*    KP        1.03     LA        1.04     MA        0.78     
!   MC        0.95     MK        1.00*    NL        0.88     ON        0.85     
!   OV        1.12     PT        1.00     SC        1.10     TC        1.00*    
!   TS        1.04     WF        0.97     WZ        1.09     
! 
!  A total of 57 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.08     GG        1.00*    HN        0.86     
!   KK        1.00*    KP        1.00*    LA        1.06     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        0.99     ON        1.00*    
!   OV        1.00*    PT        1.01     SC        1.09     TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 129 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.00     GG        1.00*    HN        0.99     
!   KK        1.09     KP        0.96     LA        1.01     MA        0.76     
!   MC        1.01     MK        1.08     NL        0.94     ON        0.82     
!   OV        0.93     PT        0.99     SC        1.11     TC        1.00*    
!   TS        1.09     WF        0.99     WZ        0.91     
! 
!  Telescope amplitude corrections in sub-array 5:
!   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*    
! 
!  Telescope amplitude corrections in sub-array 6:
!   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*    
! 
! 
! Fit before self-cal, rms=0.231446Jy  sigma=0.001283
! Fit after  self-cal, rms=0.213721Jy  sigma=0.001284
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.406 mas, bmaj=7.729 mas, bpa=-0.8355 degrees
! Estimated noise=429.947 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.0011963 Jy
! Component: 100  -  total flux cleaned = 0.00141162 Jy
! Component: 150  -  total flux cleaned = 0.0015024 Jy
! Component: 200  -  total flux cleaned = 0.00146475 Jy
! Total flux subtracted in 200 components = 0.00146475 Jy
! Clean residual min=-0.004065 max=0.003811 Jy/beam
! Clean residual mean=0.000154 rms=0.001133 Jy/beam
! Combined flux in latest and established models = 0.29695 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 50 components and 0.29695 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.213687Jy  sigma=0.001284
! Fit after  self-cal, rms=0.213334Jy  sigma=0.001284
! 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.213334Jy  sigma=0.001284
! Fit after  self-cal, rms=0.210613Jy  sigma=0.001277
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.407 mas, bmaj=7.714 mas, bpa=-0.9526 degrees
! Estimated noise=431.733 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00185444 Jy
! Component: 100  -  total flux cleaned = 0.00203817 Jy
! Component: 150  -  total flux cleaned = 0.0020394 Jy
! Component: 200  -  total flux cleaned = 0.00203944 Jy
! Total flux subtracted in 200 components = 0.00203944 Jy
! Clean residual min=-0.002311 max=0.002663 Jy/beam
! Clean residual mean=0.000055 rms=0.000660 Jy/beam
! Combined flux in latest and established models = 0.29899 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 53 components and 0.29899 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.210585Jy  sigma=0.001277
! Fit after  self-cal, rms=0.210574Jy  sigma=0.001277
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.000156717 Jy
! Component: 100  -  total flux cleaned = -0.000155615 Jy
! Component: 150  -  total flux cleaned = -0.000130774 Jy
! Component: 200  -  total flux cleaned = -0.000131813 Jy
! Total flux subtracted in 200 components = -0.000131813 Jy
! Clean residual min=-0.002287 max=0.002675 Jy/beam
! Clean residual mean=0.000068 rms=0.000661 Jy/beam
! Combined flux in latest and established models = 0.298858 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 55 components and 0.298858 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.210566Jy  sigma=0.001277
! Fit after  self-cal, rms=0.210555Jy  sigma=0.001277
! 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.210555Jy  sigma=0.001277
! Fit after  self-cal, rms=0.220830Jy  sigma=0.001274
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.412 mas, bmaj=7.699 mas, bpa=-0.9821 degrees
! Estimated noise=433.965 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00153509 Jy
! Component: 100  -  total flux cleaned = 0.00188561 Jy
! Component: 150  -  total flux cleaned = 0.00201086 Jy
! Component: 200  -  total flux cleaned = 0.00203147 Jy
! Total flux subtracted in 200 components = 0.00203147 Jy
! Clean residual min=-0.002213 max=0.002568 Jy/beam
! Clean residual mean=0.000052 rms=0.000627 Jy/beam
! Combined flux in latest and established models = 0.30089 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 56 components and 0.30089 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.220813Jy  sigma=0.001274
! Fit after  self-cal, rms=0.220822Jy  sigma=0.001273
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 = -1.76064e-05 Jy
! Component: 100  -  total flux cleaned = -1.85322e-05 Jy
! Component: 150  -  total flux cleaned = -1.81486e-05 Jy
! Component: 200  -  total flux cleaned = -1.89068e-05 Jy
! Total flux subtracted in 200 components = -1.89068e-05 Jy
! Clean residual min=-0.002196 max=0.002547 Jy/beam
! Clean residual mean=0.000053 rms=0.000626 Jy/beam
! Combined flux in latest and established models = 0.300871 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 57 components and 0.300871 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.220819Jy  sigma=0.001273
! Fit after  self-cal, rms=0.220817Jy  sigma=0.001273
! 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.220817Jy  sigma=0.001273
! Fit after  self-cal, rms=0.232905Jy  sigma=0.001273
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.192 mas, bmaj=10.11 mas, bpa=-3.839 degrees
! Estimated noise=502.094 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00152237 Jy
! Component: 100  -  total flux cleaned = 0.00214068 Jy
! Component: 150  -  total flux cleaned = 0.00241159 Jy
! Component: 200  -  total flux cleaned = 0.00249841 Jy
! Total flux subtracted in 200 components = 0.00249841 Jy
! Clean residual min=-0.002513 max=0.002062 Jy/beam
! Clean residual mean=0.000061 rms=0.000808 Jy/beam
! Combined flux in latest and established models = 0.303369 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 72 components and 0.303369 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.232897Jy  sigma=0.001273
! Fit after  self-cal, rms=0.232901Jy  sigma=0.001273
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.00013522 Jy
! Component: 100  -  total flux cleaned = 0.000151128 Jy
! Component: 150  -  total flux cleaned = 0.000156404 Jy
! Component: 200  -  total flux cleaned = 0.00016111 Jy
! Total flux subtracted in 200 components = 0.00016111 Jy
! Clean residual min=-0.002479 max=0.002069 Jy/beam
! Clean residual mean=0.000063 rms=0.000807 Jy/beam
! Combined flux in latest and established models = 0.30353 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 77 components and 0.30353 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.232901Jy  sigma=0.001273
! Fit after  self-cal, rms=0.232901Jy  sigma=0.001273
! 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.412 mas, bmaj=7.686 mas, bpa=-1.019 degrees
! Estimated noise=436.119 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.412 x 7.686 at -1.019 degrees (North through East)
! Clean map  min=-0.0020982  max=0.26643 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
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.385 mas, bmaj=5.939 mas, bpa=0.3019 degrees
! Estimated noise=827.438 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.193533 Jy
! Component: 100  -  total flux cleaned = 0.242099 Jy
! Component: 150  -  total flux cleaned = 0.266308 Jy
! Component: 200  -  total flux cleaned = 0.280991 Jy
! Total flux subtracted in 200 components = 0.280991 Jy
! Clean residual min=-0.004327 max=0.007589 Jy/beam
! Clean residual mean=0.000040 rms=0.001164 Jy/beam
! Combined flux in latest and established models = 0.280991 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 28 model components to the UV plane model.
! The established model now contains 28 components and 0.280991 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.412 mas, bmaj=7.686 mas, bpa=-1.019 degrees
! Estimated noise=436.119 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.0121165 Jy
! Component: 100  -  total flux cleaned = 0.01779 Jy
! Component: 150  -  total flux cleaned = 0.0207161 Jy
! Component: 200  -  total flux cleaned = 0.0217565 Jy
! Total flux subtracted in 200 components = 0.0217565 Jy
! Clean residual min=-0.002290 max=0.002496 Jy/beam
! Clean residual mean=0.000048 rms=0.000643 Jy/beam
! Combined flux in latest and established models = 0.302748 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 55 components and 0.302748 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.192 mas, bmaj=10.11 mas, bpa=-3.839 degrees
! Estimated noise=502.094 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000862742 Jy
! Component: 100  -  total flux cleaned = 0.00100416 Jy
! Component: 150  -  total flux cleaned = 0.00103347 Jy
! Component: 200  -  total flux cleaned = 0.00104217 Jy
! Total flux subtracted in 200 components = 0.00104217 Jy
! Clean residual min=-0.002496 max=0.002077 Jy/beam
! Clean residual mean=0.000058 rms=0.000807 Jy/beam
! Combined flux in latest and established models = 0.30379 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 = -2.96614e-08 Jy
! Component: 100  -  total flux cleaned = 3.19872e-07 Jy
! Component: 150  -  total flux cleaned = 2.26037e-07 Jy
! Component: 200  -  total flux cleaned = -7.01105e-06 Jy
! Total flux subtracted in 200 components = -7.01105e-06 Jy
! Clean residual min=-0.002491 max=0.002078 Jy/beam
! Clean residual mean=0.000058 rms=0.000807 Jy/beam
! Combined flux in latest and established models = 0.303783 Jy
! Adding 10 model components to the UV plane model.
! The established model now contains 62 components and 0.303783 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.412 mas, bmaj=7.686 mas, bpa=-1.019 degrees
! Estimated noise=436.119 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000311766 Jy
! Component: 100  -  total flux cleaned = -0.000267568 Jy
! Component: 150  -  total flux cleaned = -0.000226358 Jy
! Component: 200  -  total flux cleaned = -0.000226139 Jy
! Total flux subtracted in 200 components = -0.000226139 Jy
! Clean residual min=-0.002201 max=0.002409 Jy/beam
! Clean residual mean=0.000037 rms=0.000635 Jy/beam
! Combined flux in latest and established models = 0.303557 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 64 components and 0.303557 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.232932Jy  sigma=0.001274
! Fit after  self-cal, rms=0.232938Jy  sigma=0.001274
wmodel J2253+1942_S_2003_05_07_pus_map.mod
! Writing 64 model components to file: J2253+1942_S_2003_05_07_pus_map.mod
wobs J2253+1942_S_2003_05_07_pus_uvs.fits
! Writing UV FITS file: J2253+1942_S_2003_05_07_pus_uvs.fits
wwins J2253+1942_S_2003_05_07_pus_map.win
! wwins: Wrote 1 windows to J2253+1942_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.000321927 Jy
! Component: 100  -  total flux cleaned = 0.000244438 Jy
! Component: 150  -  total flux cleaned = 0.000242722 Jy
! Component: 200  -  total flux cleaned = 0.000276712 Jy
! Component: 250  -  total flux cleaned = 0.000243373 Jy
! Component: 300  -  total flux cleaned = 0.000308529 Jy
! Component: 350  -  total flux cleaned = 0.000465294 Jy
! Component: 400  -  total flux cleaned = 0.000434071 Jy
! Component: 450  -  total flux cleaned = 0.000464537 Jy
! Component: 500  -  total flux cleaned = 0.000523635 Jy
! Component: 550  -  total flux cleaned = 0.00058178 Jy
! Component: 600  -  total flux cleaned = 0.000638476 Jy
! Component: 650  -  total flux cleaned = 0.000722175 Jy
! Component: 700  -  total flux cleaned = 0.000667111 Jy
! Component: 750  -  total flux cleaned = 0.000694243 Jy
! Component: 800  -  total flux cleaned = 0.000721209 Jy
! Component: 850  -  total flux cleaned = 0.000852705 Jy
! Component: 900  -  total flux cleaned = 0.000826316 Jy
! Component: 950  -  total flux cleaned = 0.00090321 Jy
! Component: 1000  -  total flux cleaned = 0.000877703 Jy
! Component: 1050  -  total flux cleaned = 0.000927792 Jy
! Component: 1100  -  total flux cleaned = 0.000952235 Jy
! Component: 1150  -  total flux cleaned = 0.000927449 Jy
! Component: 1200  -  total flux cleaned = 0.00095163 Jy
! Component: 1250  -  total flux cleaned = 0.000951398 Jy
! Component: 1300  -  total flux cleaned = 0.000879407 Jy
! Component: 1350  -  total flux cleaned = 0.000974641 Jy
! Component: 1400  -  total flux cleaned = 0.000927353 Jy
! Component: 1450  -  total flux cleaned = 0.000927378 Jy
! Component: 1500  -  total flux cleaned = 0.000950539 Jy
! Component: 1550  -  total flux cleaned = 0.000973304 Jy
! Component: 1600  -  total flux cleaned = 0.000973234 Jy
! Component: 1650  -  total flux cleaned = 0.000973173 Jy
! Component: 1700  -  total flux cleaned = 0.000973294 Jy
! Component: 1750  -  total flux cleaned = 0.000973585 Jy
! Component: 1800  -  total flux cleaned = 0.00104004 Jy
! Component: 1850  -  total flux cleaned = 0.00101806 Jy
! Component: 1900  -  total flux cleaned = 0.00106176 Jy
! Component: 1950  -  total flux cleaned = 0.00108338 Jy
! Component: 2000  -  total flux cleaned = 0.0010404 Jy
! Total flux subtracted in 2048 components = 0.00112596 Jy
! Clean residual min=-0.001301 max=0.001220 Jy/beam
! Clean residual mean=0.000024 rms=0.000460 Jy/beam
! Combined flux in latest and established models = 0.304682 Jy
keep
! Adding 138 model components to the UV plane model.
! The established model now contains 202 components and 0.304682 Jy
wmap "J2253+1942_S_2003_05_07_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.412 x 7.686 at -1.019 degrees (North through East)
! Clean map  min=-0.0019709  max=0.26635 Jy/beam
! Writing clean map to FITS file: J2253+1942_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 0.266354 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000457799 
device "J2253+1942_S_2003_05_07_pus\_map.eps/VPS"
! Attempting to open device: 'J2253+1942_S_2003_05_07_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.515627 0.515627 1.03125 2.06251 4.12502 8.25003 16.5001 33.0001 66.0003
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0013 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.266 
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.412 x 7.686 at -1.019 degrees (North through East)
! Clean map  min=-0.0019709  max=0.26635 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2253+1942_S_2003_05_07_pus\_map.gif/vgif"
! Attempting to open device: 'J2253+1942_S_2003_05_07_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2253+1942_S_2003_05_07_pus_uvs.log closed on Sun Dec 24 18:09:32 2006