! Started logfile: J2212+2355_S_2001_10_29_pus_uvs.log on Wed Feb 27 15:32:33 2008
obs J2212+2355_S_2001_10_29_pus_uva.fits
! Reading UV FITS file: J2212+2355_S_2001_10_29_pus_uva.fits
! AN table 1: 59 integrations on 153 of 153 possible baselines.
! AN table 2: 82 integrations on 153 of 153 possible baselines.
! AN table 3: 84 integrations on 153 of 153 possible baselines.
! AN table 4: 89 integrations on 153 of 153 possible baselines.
! AN table 5: 150 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.105927 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2212+2355
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2604 lines of history.
! 
! Reading 30080 visibilities.
select I
! Polarization I is unavailable.
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
print "field_size =",field_size
! field_size = 512 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
![@muppet J2212+2355_S_2001_10_29_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 890 telescope corrections were flagged in sub-array 1.
!  A total of 1327 telescope corrections were flagged in sub-array 2.
!  A total of 888 telescope corrections were flagged in sub-array 3.
!  A total of 880 telescope corrections were flagged in sub-array 4.
!  A total of 2311 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 890 telescope corrections were flagged in sub-array 1.
!  A total of 1327 telescope corrections were flagged in sub-array 2.
!  A total of 888 telescope corrections were flagged in sub-array 3.
!  A total of 880 telescope corrections were flagged in sub-array 4.
!  A total of 2311 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 890 telescope corrections were flagged in sub-array 1.
!  A total of 1327 telescope corrections were flagged in sub-array 2.
!  A total of 888 telescope corrections were flagged in sub-array 3.
!  A total of 880 telescope corrections were flagged in sub-array 4.
!  A total of 2311 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 890 telescope corrections were flagged in sub-array 1.
!  A total of 1446 telescope corrections were flagged in sub-array 2.
!  A total of 946 telescope corrections were flagged in sub-array 3.
!  A total of 880 telescope corrections were flagged in sub-array 4.
!  A total of 2503 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.762977Jy  sigma=0.006323
! Fit after  self-cal, rms=0.329703Jy  sigma=0.002401
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.749 mas, bmaj=3.617 mas, bpa=-0.7371 degrees
! Estimated noise=991.403 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.587924 Jy
! Component: 100  -  total flux cleaned = 0.72791 Jy
! Total flux subtracted in 100 components = 0.72791 Jy
! Clean residual min=-0.014721 max=0.056241 Jy/beam
! Clean residual mean=-0.000102 rms=0.004846 Jy/beam
! Combined flux in latest and established models = 0.72791 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.72791 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.246837Jy  sigma=0.001807
! Fit after  self-cal, rms=0.246853Jy  sigma=0.001807
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.062037 Jy
! Component: 100  -  total flux cleaned = 0.0965966 Jy
! Total flux subtracted in 100 components = 0.0965966 Jy
! Clean residual min=-0.014026 max=0.017692 Jy/beam
! Clean residual mean=-0.000249 rms=0.003095 Jy/beam
! Combined flux in latest and established models = 0.824507 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 12 components and 0.824507 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.228624Jy  sigma=0.001552
! Fit after  self-cal, rms=0.228508Jy  sigma=0.001551
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0217432 Jy
! Component: 100  -  total flux cleaned = 0.0352571 Jy
! Total flux subtracted in 100 components = 0.0352571 Jy
! Clean residual min=-0.013299 max=0.012283 Jy/beam
! Clean residual mean=-0.000301 rms=0.002767 Jy/beam
! Combined flux in latest and established models = 0.859764 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 18 components and 0.859764 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.226534Jy  sigma=0.001513
! Fit after  self-cal, rms=0.226511Jy  sigma=0.001512
! 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.177 mas, bmaj=4.926 mas, bpa=-3.257 degrees
! Estimated noise=494.082 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.0119528 Jy
! Component: 100  -  total flux cleaned = 0.0177428 Jy
! Component: 150  -  total flux cleaned = 0.0195234 Jy
! Component: 200  -  total flux cleaned = 0.0202483 Jy
! Total flux subtracted in 200 components = 0.0202483 Jy
! Clean residual min=-0.010010 max=0.011098 Jy/beam
! Clean residual mean=-0.001006 rms=0.002612 Jy/beam
! Combined flux in latest and established models = 0.880012 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 31 components and 0.880012 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.226433Jy  sigma=0.001502
! Fit after  self-cal, rms=0.226411Jy  sigma=0.001502
! 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.99     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.06     KP        1.11     LA        1.03     
!   MA        1.00*    MC        1.00*    MK        1.00     NL        1.03     
!   OV        1.03     PT        1.04     SC        1.00*    TS        0.97     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 99 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.03     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.94     MC        1.21     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.04     
!   WF        1.00*    WZ        0.92     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.06     KK        1.01     KP        1.02     LA        0.98     
!   MA        1.20     MC        1.06     MK        1.01     NL        0.96     
!   OV        0.99     PT        0.98     SC        0.98     TS        1.00*    
!   WF        0.90     WZ        1.01     
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.90     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.05     KK        0.92     KP        1.00     LA        1.01     
!   MA        1.00*    MC        1.00*    MK        0.99     NL        1.01     
!   OV        0.97     PT        1.01     SC        1.01     TS        1.01     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 150 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        0.98     
!   HN        0.91     KK        1.00*    KP        1.08     LA        1.05     
!   MA        1.04     MC        0.97     MK        1.00*    NL        1.01     
!   OV        1.00*    PT        1.04     SC        1.03     TS        1.00*    
!   WF        4.70     WZ        1.01     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.03     KP        0.95     LA        1.03     
!   MA        1.00*    MC        1.00*    MK        1.04     NL        1.03     
!   OV        1.06     PT        1.02     SC        1.00*    TS        1.01     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 99 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.96     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.71     MC        1.16     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.05     
!   WF        1.00*    WZ        0.89     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.94     KK        1.01     KP        1.12     LA        0.95     
!   MA        1.78     MC        1.00     MK        1.01     NL        0.95     
!   OV        1.01     PT        0.96     SC        0.98     TS        1.00*    
!   WF        1.05     WZ        0.99     
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.95     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.03     KK        0.96     KP        0.88     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        0.98     NL        1.02     
!   OV        0.98     PT        0.99     SC        1.02     TS        1.04     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 150 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.05     FD        1.00*    GG        1.00*    HH        0.96     
!   HN        0.99     KK        1.00*    KP        0.96     LA        0.98     
!   MA        0.77     MC        1.33     MK        1.00*    NL        1.00     
!   OV        1.00*    PT        1.03     SC        0.99     TS        1.00*    
!   WF        4.21     WZ        1.00     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.02     KP        0.96     LA        1.01     
!   MA        1.00*    MC        1.00*    MK        0.98     NL        1.03     
!   OV        1.06     PT        1.04     SC        1.00*    TS        0.99     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 99 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.17     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.07     MC        0.96     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        0.99     
!   WF        1.00*    WZ        0.89     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.92     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.96     KK        1.00     KP        1.01     LA        0.95     
!   MA        1.18     MC        1.03     MK        0.97     NL        0.97     
!   OV        0.97     PT        0.99     SC        0.99     TS        1.00*    
!   WF        1.02     WZ        0.99     
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.03     KK        0.99     KP        0.96     LA        0.99     
!   MA        1.00*    MC        1.00*    MK        0.94     NL        1.03     
!   OV        1.01     PT        0.99     SC        1.01     TS        1.05     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 150 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.02     FD        1.00*    GG        1.00*    HH        1.02     
!   HN        1.01     KK        1.00*    KP        1.02     LA        0.98     
!   MA        0.94     MC        0.93     MK        1.00*    NL        0.97     
!   OV        1.00*    PT        1.04     SC        1.00     TS        1.00*    
!   WF        4.98     WZ        0.99     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        0.97     KP        1.00     LA        1.03     
!   MA        1.00*    MC        1.00*    MK        1.03     NL        1.06     
!   OV        1.04     PT        1.04     SC        1.00*    TS        1.00     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.94     KK        0.96     KP        1.01     LA        0.97     
!   MA        1.00*    MC        1.00*    MK        1.00     NL        0.98     
!   OV        1.00     PT        1.04     SC        0.96     TS        1.00*    
!   WF        1.02     WZ        0.99     
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.94     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.01     KK        0.94     KP        0.99     LA        0.99     
!   MA        1.00*    MC        1.00*    MK        0.98     NL        1.04     
!   OV        0.97     PT        1.06     SC        1.01     TS        1.06     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.01     FD        1.00*    GG        1.00*    HH        0.93     
!   HN        1.00     KK        1.00*    KP        1.05     LA        1.04     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.03     
!   OV        1.00*    PT        1.02     SC        1.01     TS        1.00*    
!   WF        6.78     WZ        1.00     
! 
! 
! Fit before self-cal, rms=0.226411Jy  sigma=0.001502
! Fit after  self-cal, rms=0.406554Jy  sigma=0.001378
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.199 mas, bmaj=5.145 mas, bpa=-3.899 degrees
! Estimated noise=498.511 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.000635424 Jy
! Component: 100  -  total flux cleaned = 0.000889921 Jy
! Component: 150  -  total flux cleaned = 0.000952894 Jy
! Component: 200  -  total flux cleaned = 0.00089449 Jy
! Total flux subtracted in 200 components = 0.00089449 Jy
! Clean residual min=-0.004201 max=0.005036 Jy/beam
! Clean residual mean=-0.000078 rms=0.001014 Jy/beam
! Combined flux in latest and established models = 0.880907 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 34 components and 0.880907 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.406483Jy  sigma=0.001377
! Fit after  self-cal, rms=0.407619Jy  sigma=0.001376
! Inverting map 
! Added new window around map position (3.5, 4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0054852 Jy
! Component: 100  -  total flux cleaned = 0.00763299 Jy
! Component: 150  -  total flux cleaned = 0.00827185 Jy
! Component: 200  -  total flux cleaned = 0.00862884 Jy
! Total flux subtracted in 200 components = 0.00862884 Jy
! Clean residual min=-0.003782 max=0.003701 Jy/beam
! Clean residual mean=-0.000090 rms=0.000857 Jy/beam
! Combined flux in latest and established models = 0.889536 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 47 components and 0.889536 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.407478Jy  sigma=0.001375
! Fit after  self-cal, rms=0.407451Jy  sigma=0.001374
! 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.407451Jy  sigma=0.001374
! Fit after  self-cal, rms=0.415750Jy  sigma=0.001374
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.2 mas, bmaj=5.147 mas, bpa=-3.907 degrees
! Estimated noise=499.585 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00280059 Jy
! Component: 100  -  total flux cleaned = 0.00357847 Jy
! Component: 150  -  total flux cleaned = 0.004033 Jy
! Component: 200  -  total flux cleaned = 0.00437026 Jy
! Total flux subtracted in 200 components = 0.00437025 Jy
! Clean residual min=-0.003583 max=0.003436 Jy/beam
! Clean residual mean=-0.000086 rms=0.000815 Jy/beam
! Combined flux in latest and established models = 0.893906 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 53 components and 0.893906 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.415667Jy  sigma=0.001374
! Fit after  self-cal, rms=0.415669Jy  sigma=0.001374
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.0006008 Jy
! Component: 100  -  total flux cleaned = 0.000797278 Jy
! Component: 150  -  total flux cleaned = 0.000841211 Jy
! Component: 200  -  total flux cleaned = 0.000880345 Jy
! Total flux subtracted in 200 components = 0.000880345 Jy
! Clean residual min=-0.003478 max=0.003431 Jy/beam
! Clean residual mean=-0.000088 rms=0.000804 Jy/beam
! Combined flux in latest and established models = 0.894786 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 58 components and 0.894786 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.415620Jy  sigma=0.001373
! Fit after  self-cal, rms=0.415610Jy  sigma=0.001373
! 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.415610Jy  sigma=0.001373
! Fit after  self-cal, rms=0.416766Jy  sigma=0.001373
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.201 mas, bmaj=5.149 mas, bpa=-3.922 degrees
! Estimated noise=500.294 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00129435 Jy
! Component: 100  -  total flux cleaned = 0.0017504 Jy
! Component: 150  -  total flux cleaned = 0.00188499 Jy
! Component: 200  -  total flux cleaned = 0.0020056 Jy
! Total flux subtracted in 200 components = 0.0020056 Jy
! Clean residual min=-0.003401 max=0.003295 Jy/beam
! Clean residual mean=-0.000088 rms=0.000796 Jy/beam
! Combined flux in latest and established models = 0.896792 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 60 components and 0.896792 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.416711Jy  sigma=0.001373
! Fit after  self-cal, rms=0.416709Jy  sigma=0.001373
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.000164916 Jy
! Component: 100  -  total flux cleaned = 0.000166015 Jy
! Component: 150  -  total flux cleaned = 0.000202114 Jy
! Component: 200  -  total flux cleaned = 0.000236592 Jy
! Total flux subtracted in 200 components = 0.000236592 Jy
! Clean residual min=-0.003338 max=0.003278 Jy/beam
! Clean residual mean=-0.000088 rms=0.000792 Jy/beam
! Combined flux in latest and established models = 0.897029 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 64 components and 0.897029 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.416675Jy  sigma=0.001373
! Fit after  self-cal, rms=0.416667Jy  sigma=0.001373
! 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.416667Jy  sigma=0.001373
! Fit after  self-cal, rms=0.417516Jy  sigma=0.001373
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.026 mas, bmaj=9.817 mas, bpa=-11.06 degrees
! Estimated noise=723.557 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00177326 Jy
! Component: 100  -  total flux cleaned = 0.00180297 Jy
! Component: 150  -  total flux cleaned = 0.00194912 Jy
! Component: 200  -  total flux cleaned = 0.00198717 Jy
! Total flux subtracted in 200 components = 0.00198717 Jy
! Clean residual min=-0.003622 max=0.003557 Jy/beam
! Clean residual mean=-0.000281 rms=0.001155 Jy/beam
! Combined flux in latest and established models = 0.899016 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 68 components and 0.899016 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.417511Jy  sigma=0.001373
! Fit after  self-cal, rms=0.417510Jy  sigma=0.001373
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.000272569 Jy
! Component: 100  -  total flux cleaned = 0.000273071 Jy
! Component: 150  -  total flux cleaned = 0.000239284 Jy
! Component: 200  -  total flux cleaned = 0.000224816 Jy
! Total flux subtracted in 200 components = 0.000224816 Jy
! Clean residual min=-0.003552 max=0.003506 Jy/beam
! Clean residual mean=-0.000282 rms=0.001152 Jy/beam
! Combined flux in latest and established models = 0.899241 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 75 components and 0.899241 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.417511Jy  sigma=0.001373
! Fit after  self-cal, rms=0.417507Jy  sigma=0.001373
! 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.202 mas, bmaj=5.151 mas, bpa=-3.939 degrees
! Estimated noise=501.047 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.202 x 5.151 at -3.939 degrees (North through East)
! Clean map  min=-0.0033055  max=0.79027 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.417507Jy  sigma=0.001373
! Fit after  self-cal, rms=0.981872Jy  sigma=0.001204
! Inverting map and beam 
! Estimated beam: bmin=2.203 mas, bmaj=5.146 mas, bpa=-3.855 degrees
! Estimated noise=500.622 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000377996 Jy
! Component: 100  -  total flux cleaned = -0.000375309 Jy
! Component: 150  -  total flux cleaned = -0.000443325 Jy
! Component: 200  -  total flux cleaned = -0.00044218 Jy
! Total flux subtracted in 200 components = -0.00044218 Jy
! Clean residual min=-0.002787 max=0.002875 Jy/beam
! Clean residual mean=-0.000043 rms=0.000664 Jy/beam
! Combined flux in latest and established models = 0.898798 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 87 components and 0.898798 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.981872Jy  sigma=0.001203
! Fit after  self-cal, rms=0.981868Jy  sigma=0.001203
! Inverting map 
! Added new window around map position (29, 43).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0017814 Jy
! Component: 100  -  total flux cleaned = 0.00190736 Jy
! Component: 150  -  total flux cleaned = 0.00176397 Jy
! Component: 200  -  total flux cleaned = 0.00176439 Jy
! Total flux subtracted in 200 components = 0.00176439 Jy
! Clean residual min=-0.002812 max=0.002485 Jy/beam
! Clean residual mean=-0.000044 rms=0.000652 Jy/beam
! Combined flux in latest and established models = 0.900563 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 101 components and 0.900563 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.981844Jy  sigma=0.001203
! Fit after  self-cal, rms=0.981859Jy  sigma=0.001203
! 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.981859Jy  sigma=0.001203
! Fit after  self-cal, rms=0.979388Jy  sigma=0.001203
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=1.76 mas, bmaj=3.729 mas, bpa=-0.7694 degrees
! Estimated noise=1021.3 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.597679 Jy
! Component: 100  -  total flux cleaned = 0.737644 Jy
! Component: 150  -  total flux cleaned = 0.798151 Jy
! Component: 200  -  total flux cleaned = 0.830841 Jy
! Total flux subtracted in 200 components = 0.830841 Jy
! Clean residual min=-0.006145 max=0.016726 Jy/beam
! Clean residual mean=0.000057 rms=0.001830 Jy/beam
! Combined flux in latest and established models = 0.830841 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 13 model components to the UV plane model.
! The established model now contains 13 components and 0.830841 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.203 mas, bmaj=5.146 mas, bpa=-3.865 degrees
! Estimated noise=500.356 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.0265467 Jy
! Component: 100  -  total flux cleaned = 0.0400377 Jy
! Component: 150  -  total flux cleaned = 0.0486701 Jy
! Component: 200  -  total flux cleaned = 0.054462 Jy
! Total flux subtracted in 200 components = 0.054462 Jy
! Clean residual min=-0.003105 max=0.005526 Jy/beam
! Clean residual mean=-0.000012 rms=0.000833 Jy/beam
! Combined flux in latest and established models = 0.885304 Jy
! Adding 29 model components to the UV plane model.
! The established model now contains 37 components and 0.885304 Jy
! Inverting map 
! Added new window around map position (7.5, 5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00512644 Jy
! Component: 100  -  total flux cleaned = 0.00864928 Jy
! Component: 150  -  total flux cleaned = 0.011346 Jy
! Component: 200  -  total flux cleaned = 0.0131175 Jy
! Total flux subtracted in 200 components = 0.0131175 Jy
! Clean residual min=-0.002619 max=0.002370 Jy/beam
! Clean residual mean=-0.000040 rms=0.000683 Jy/beam
! Combined flux in latest and established models = 0.898421 Jy
! Adding 30 model components to the UV plane model.
! The established model now contains 61 components and 0.898421 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.029 mas, bmaj=9.817 mas, bpa=-11.13 degrees
! Estimated noise=722.271 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00215295 Jy
! Component: 100  -  total flux cleaned = 0.00270654 Jy
! Component: 150  -  total flux cleaned = 0.00305746 Jy
! Component: 200  -  total flux cleaned = 0.00334399 Jy
! Total flux subtracted in 200 components = 0.00334399 Jy
! Clean residual min=-0.003007 max=0.003192 Jy/beam
! Clean residual mean=-0.000149 rms=0.001003 Jy/beam
! Combined flux in latest and established models = 0.901765 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.000204836 Jy
! Component: 100  -  total flux cleaned = 0.000377683 Jy
! Component: 150  -  total flux cleaned = 0.000475865 Jy
! Component: 200  -  total flux cleaned = 0.000496964 Jy
! Total flux subtracted in 200 components = 0.000496964 Jy
! Clean residual min=-0.003160 max=0.003164 Jy/beam
! Clean residual mean=-0.000152 rms=0.000993 Jy/beam
! Combined flux in latest and established models = 0.902262 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 97 components and 0.902262 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.203 mas, bmaj=5.146 mas, bpa=-3.865 degrees
! Estimated noise=500.356 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000594492 Jy
! Component: 100  -  total flux cleaned = 0.000793459 Jy
! Component: 150  -  total flux cleaned = 0.00108527 Jy
! Component: 200  -  total flux cleaned = 0.00119043 Jy
! Total flux subtracted in 200 components = 0.00119043 Jy
! Clean residual min=-0.002865 max=0.002396 Jy/beam
! Clean residual mean=-0.000051 rms=0.000651 Jy/beam
! Combined flux in latest and established models = 0.903453 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 108 components and 0.903453 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.979395Jy  sigma=0.001203
! Fit after  self-cal, rms=0.979383Jy  sigma=0.001203
wmodel J2212+2355_S_2001_10_29_pus_map.mod
! Writing 108 model components to file: J2212+2355_S_2001_10_29_pus_map.mod
wobs J2212+2355_S_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J2212+2355_S_2001_10_29_pus_uvs.fits
wwins J2212+2355_S_2001_10_29_pus_map.win
! wwins: Wrote 4 windows to J2212+2355_S_2001_10_29_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000927197 Jy
! Component: 100  -  total flux cleaned = -0.0015756 Jy
! Component: 150  -  total flux cleaned = -0.00198393 Jy
! Component: 200  -  total flux cleaned = -0.00241701 Jy
! Component: 250  -  total flux cleaned = -0.00283728 Jy
! Component: 300  -  total flux cleaned = -0.00321001 Jy
! Component: 350  -  total flux cleaned = -0.00350021 Jy
! Component: 400  -  total flux cleaned = -0.00378489 Jy
! Component: 450  -  total flux cleaned = -0.00413423 Jy
! Component: 500  -  total flux cleaned = -0.00440894 Jy
! Component: 550  -  total flux cleaned = -0.00474779 Jy
! Component: 600  -  total flux cleaned = -0.00508159 Jy
! Component: 650  -  total flux cleaned = -0.0053776 Jy
! Component: 700  -  total flux cleaned = -0.00573431 Jy
! Component: 750  -  total flux cleaned = -0.00598988 Jy
! Component: 800  -  total flux cleaned = -0.00621115 Jy
! Component: 850  -  total flux cleaned = -0.00649207 Jy
! Component: 900  -  total flux cleaned = -0.0066774 Jy
! Component: 950  -  total flux cleaned = -0.00698221 Jy
! Component: 1000  -  total flux cleaned = -0.00716306 Jy
! Component: 1050  -  total flux cleaned = -0.00746083 Jy
! Component: 1100  -  total flux cleaned = -0.00769605 Jy
! Component: 1150  -  total flux cleaned = -0.00789961 Jy
! Component: 1200  -  total flux cleaned = -0.00807234 Jy
! Component: 1250  -  total flux cleaned = -0.00818622 Jy
! Component: 1300  -  total flux cleaned = -0.00829963 Jy
! Component: 1350  -  total flux cleaned = -0.00855142 Jy
! Component: 1400  -  total flux cleaned = -0.00868957 Jy
! Component: 1450  -  total flux cleaned = -0.0087172 Jy
! Component: 1500  -  total flux cleaned = -0.00885368 Jy
! Component: 1550  -  total flux cleaned = -0.00901529 Jy
! Component: 1600  -  total flux cleaned = -0.00904175 Jy
! Component: 1650  -  total flux cleaned = -0.00912144 Jy
! Component: 1700  -  total flux cleaned = -0.00920051 Jy
! Component: 1750  -  total flux cleaned = -0.00922668 Jy
! Component: 1800  -  total flux cleaned = -0.00927848 Jy
! Component: 1850  -  total flux cleaned = -0.00935626 Jy
! Component: 1900  -  total flux cleaned = -0.00950988 Jy
! Component: 1950  -  total flux cleaned = -0.0094592 Jy
! Component: 2000  -  total flux cleaned = -0.00958565 Jy
! Total flux subtracted in 2048 components = -0.00966113 Jy
! Clean residual min=-0.001536 max=0.001432 Jy/beam
! Clean residual mean=-0.000036 rms=0.000479 Jy/beam
! Combined flux in latest and established models = 0.893791 Jy
keep
! Adding 144 model components to the UV plane model.
! The established model now contains 252 components and 0.893791 Jy
![Exited script file: muppet]
wmap "J2212+2355_S_2001_10_29_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.203 x 5.146 at -3.865 degrees (North through East)
! Clean map  min=-0.0026748  max=0.7912 Jy/beam
! Writing clean map to FITS file: J2212+2355_S_2001_10_29_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.791196 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000478509 
device "J2212+2355_S_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J2212+2355_S_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.181438 0.181438 0.362875 0.725751 1.4515 2.903 5.80601 11.612 23.224 46.4481 92.8961
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0014 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.791 
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.203 x 5.146 at -3.865 degrees (North through East)
! Clean map  min=-0.0026748  max=0.7912 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2212+2355_S_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J2212+2355_S_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2212+2355_S_2001_10_29_pus_uvs.log closed on Wed Feb 27 15:32:49 2008