! Started logfile: J0112+2244_S_2001_10_29_pus_uvs.log on Wed Feb 27 15:10:18 2008
obs J0112+2244_S_2001_10_29_pus_uva.fits
! Reading UV FITS file: J0112+2244_S_2001_10_29_pus_uva.fits
! AN table 1: 49 integrations on 153 of 153 possible baselines.
! AN table 2: 130 integrations on 153 of 153 possible baselines.
! AN table 3: 28 integrations on 153 of 153 possible baselines.
! AN table 4: 78 integrations on 153 of 153 possible baselines.
! AN table 5: 106 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.148906 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0112+2244
! 
! 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 35632 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 J0112+2244_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 516 telescope corrections were flagged in sub-array 1.
!  A total of 1379 telescope corrections were flagged in sub-array 2.
!  A total of 454 telescope corrections were flagged in sub-array 3.
!  A total of 1070 telescope corrections were flagged in sub-array 4.
!  A total of 1251 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 516 telescope corrections were flagged in sub-array 1.
!  A total of 1379 telescope corrections were flagged in sub-array 2.
!  A total of 454 telescope corrections were flagged in sub-array 3.
!  A total of 1071 telescope corrections were flagged in sub-array 4.
!  A total of 1251 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 516 telescope corrections were flagged in sub-array 1.
!  A total of 1379 telescope corrections were flagged in sub-array 2.
!  A total of 454 telescope corrections were flagged in sub-array 3.
!  A total of 1070 telescope corrections were flagged in sub-array 4.
!  A total of 1263 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 585 telescope corrections were flagged in sub-array 1.
!  A total of 1379 telescope corrections were flagged in sub-array 2.
!  A total of 504 telescope corrections were flagged in sub-array 3.
!  A total of 1204 telescope corrections were flagged in sub-array 4.
!  A total of 1452 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.895077Jy  sigma=0.007029
! Fit after  self-cal, rms=0.694746Jy  sigma=0.005096
! 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.674 mas, bmaj=3.766 mas, bpa=3.954 degrees
! Estimated noise=947.556 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.270739 Jy
! Component: 100  -  total flux cleaned = 0.349998 Jy
! Total flux subtracted in 100 components = 0.349998 Jy
! Clean residual min=-0.010922 max=0.037602 Jy/beam
! Clean residual mean=0.000201 rms=0.003459 Jy/beam
! Combined flux in latest and established models = 0.349998 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.349998 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.325932Jy  sigma=0.001509
! Fit after  self-cal, rms=0.325674Jy  sigma=0.001507
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0437996 Jy
! Component: 100  -  total flux cleaned = 0.0678301 Jy
! Total flux subtracted in 100 components = 0.0678301 Jy
! Clean residual min=-0.007995 max=0.015496 Jy/beam
! Clean residual mean=0.000122 rms=0.002333 Jy/beam
! Combined flux in latest and established models = 0.417828 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 11 components and 0.417828 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.317577Jy  sigma=0.001372
! Fit after  self-cal, rms=0.317329Jy  sigma=0.001370
! Inverting map 
! Added new window around map position (2.5, 0.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0175555 Jy
! Component: 100  -  total flux cleaned = 0.0284782 Jy
! Total flux subtracted in 100 components = 0.0284782 Jy
! Clean residual min=-0.007911 max=0.008578 Jy/beam
! Clean residual mean=0.000089 rms=0.002044 Jy/beam
! Combined flux in latest and established models = 0.446306 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 27 components and 0.446306 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.316108Jy  sigma=0.001351
! Fit after  self-cal, rms=0.316010Jy  sigma=0.001350
! 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.283 mas, bmaj=4.723 mas, bpa=6.259 degrees
! Estimated noise=501.795 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.00921706 Jy
! Component: 100  -  total flux cleaned = 0.014037 Jy
! Component: 150  -  total flux cleaned = 0.0168016 Jy
! Component: 200  -  total flux cleaned = 0.0176316 Jy
! Total flux subtracted in 200 components = 0.0176316 Jy
! Clean residual min=-0.006119 max=0.006622 Jy/beam
! Clean residual mean=0.000817 rms=0.001608 Jy/beam
! Combined flux in latest and established models = 0.463938 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 37 components and 0.463938 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.315628Jy  sigma=0.001347
! Fit after  self-cal, rms=0.315617Jy  sigma=0.001346
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.84     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.09     KK        1.01     KP        0.75     LA        0.94     
!   MA        0.99     MC        1.03     MK        0.98     NL        0.92     
!   OV        0.90     PT        0.91     SC        1.02     TS        1.00*    
!   WF        1.07     WZ        1.05     
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.97     KK        1.00     KP        1.05     LA        0.99     
!   MA        1.00*    MC        1.00*    MK        0.97     NL        1.00     
!   OV        1.00     PT        0.98     SC        1.05     TS        1.00     
!   WF        0.98     WZ        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.88     MC        1.03     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        0.83     
!   WF        1.00*    WZ        0.94     
! 
!  A total of 42 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.90     
!   HN        1.08     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.40     MC        0.99     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.03     TS        1.00*    
!   WF        0.99     WZ        0.98     
! 
!  A total of 135 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.03     FD        1.00*    GG        1.00*    HH        1.06     
!   HN        0.59     KK        1.00*    KP        1.16     LA        1.05     
!   MA        0.89     MC        1.14     MK        1.00*    NL        1.00     
!   OV        1.15     PT        1.04     SC        1.03     TS        1.00*    
!   WF        0.96     WZ        1.06     
! 
! 
! Correcting IF 2.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.90     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.90     KK        0.98     KP        1.02     LA        0.92     
!   MA        1.50     MC        1.02     MK        1.01     NL        0.89     
!   OV        0.94     PT        0.88     SC        1.00     TS        1.00*    
!   WF        1.01     WZ        1.05     
! 
!  A total of 24 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.00*    
!   HN        1.00     KK        1.02     KP        0.98     LA        0.97     
!   MA        1.00*    MC        1.00*    MK        0.96     NL        0.99     
!   OV        1.03     PT        0.97     SC        1.04     TS        1.06     
!   WF        1.03     WZ        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.06     MC        1.08     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.20     
!   WF        1.00*    WZ        1.42     
! 
!  A total of 42 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.88     
!   HN        1.02     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.08     MC        0.93     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.05     TS        1.00*    
!   WF        0.95     WZ        1.02     
! 
!  A total of 135 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.08     FD        1.00*    GG        1.00*    HH        1.08     
!   HN        0.99     KK        1.00*    KP        1.45     LA        1.02     
!   MA        0.91     MC        1.19     MK        1.00*    NL        0.98     
!   OV        1.17     PT        1.04     SC        0.99     TS        1.00*    
!   WF        1.02     WZ        1.03     
! 
! 
! Correcting IF 3.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.91     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.96     KK        1.08     KP        0.78     LA        0.89     
!   MA        1.12     MC        1.20     MK        1.01     NL        0.92     
!   OV        0.80     PT        0.81     SC        0.97     TS        1.00*    
!   WF        1.23     WZ        1.07     
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.98     KK        1.00     KP        1.00     LA        0.97     
!   MA        1.00*    MC        1.00*    MK        0.92     NL        1.01     
!   OV        1.05     PT        1.01     SC        1.03     TS        1.04     
!   WF        0.81     WZ        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.69     MC        1.50     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        0.88     
!   WF        1.00*    WZ        1.06     
! 
!  A total of 42 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.94     
!   HN        1.05     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.06     MC        0.92     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.12     TS        1.00*    
!   WF        1.19     WZ        1.00     
! 
!  A total of 123 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.08     FD        1.00*    GG        1.00*    HH        1.02     
!   HN        0.91     KK        1.00*    KP        1.00     LA        0.96     
!   MA        0.90     MC        0.91     MK        1.00*    NL        1.00     
!   OV        1.15     PT        1.00     SC        1.03     TS        1.00*    
!   WF        0.98     WZ        1.02     
! 
! 
! Correcting IF 4.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.91     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.95     KK        0.98     KP        0.87     LA        0.96     
!   MA        1.00*    MC        1.00*    MK        1.03     NL        0.93     
!   OV        0.95     PT        1.07     SC        0.97     TS        1.00*    
!   WF        0.99     WZ        1.10     
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.99     KK        1.00     KP        1.01     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        0.99     NL        1.04     
!   OV        1.03     PT        0.98     SC        1.02     TS        1.03     
!   WF        1.02     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 84 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.88     
!   HN        1.05     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.09     TS        1.00*    
!   WF        0.80     WZ        1.04     
! 
!  A total of 21 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.11     FD        1.00*    GG        1.00*    HH        0.99     
!   HN        0.90     KK        1.00*    KP        1.11     LA        1.03     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.02     
!   OV        1.16     PT        1.04     SC        1.03     TS        1.00*    
!   WF        1.01     WZ        1.03     
! 
! 
! Fit before self-cal, rms=0.315617Jy  sigma=0.001346
! Fit after  self-cal, rms=0.319233Jy  sigma=0.001293
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.314 mas, bmaj=4.866 mas, bpa=5.769 degrees
! Estimated noise=504.249 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 (11, -3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00580247 Jy
! Component: 100  -  total flux cleaned = 0.00943588 Jy
! Component: 150  -  total flux cleaned = 0.0106742 Jy
! Component: 200  -  total flux cleaned = 0.0113277 Jy
! Total flux subtracted in 200 components = 0.0113277 Jy
! Clean residual min=-0.002456 max=0.003299 Jy/beam
! Clean residual mean=0.000274 rms=0.000744 Jy/beam
! Combined flux in latest and established models = 0.475265 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 48 components and 0.475265 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.319079Jy  sigma=0.001292
! Fit after  self-cal, rms=0.319451Jy  sigma=0.001291
! 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.319451Jy  sigma=0.001291
! Fit after  self-cal, rms=0.321404Jy  sigma=0.001290
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.316 mas, bmaj=4.869 mas, bpa=5.735 degrees
! Estimated noise=504.725 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00305062 Jy
! Component: 100  -  total flux cleaned = 0.00412746 Jy
! Component: 150  -  total flux cleaned = 0.00459649 Jy
! Component: 200  -  total flux cleaned = 0.00493296 Jy
! Total flux subtracted in 200 components = 0.00493296 Jy
! Clean residual min=-0.002324 max=0.002716 Jy/beam
! Clean residual mean=0.000228 rms=0.000672 Jy/beam
! Combined flux in latest and established models = 0.480198 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 54 components and 0.480198 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.321333Jy  sigma=0.001290
! Fit after  self-cal, rms=0.321371Jy  sigma=0.001290
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 (5.5, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00201037 Jy
! Component: 100  -  total flux cleaned = 0.00217968 Jy
! Component: 150  -  total flux cleaned = 0.00217722 Jy
! Component: 200  -  total flux cleaned = 0.00230301 Jy
! Total flux subtracted in 200 components = 0.00230301 Jy
! Clean residual min=-0.002364 max=0.002503 Jy/beam
! Clean residual mean=0.000200 rms=0.000640 Jy/beam
! Combined flux in latest and established models = 0.482501 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 65 components and 0.482501 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.321343Jy  sigma=0.001289
! Fit after  self-cal, rms=0.321344Jy  sigma=0.001289
! 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.321344Jy  sigma=0.001289
! Fit after  self-cal, rms=0.321794Jy  sigma=0.001289
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.318 mas, bmaj=4.872 mas, bpa=5.684 degrees
! Estimated noise=504.527 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00126345 Jy
! Component: 100  -  total flux cleaned = 0.00160228 Jy
! Component: 150  -  total flux cleaned = 0.00185131 Jy
! Component: 200  -  total flux cleaned = 0.00203582 Jy
! Total flux subtracted in 200 components = 0.00203582 Jy
! Clean residual min=-0.002317 max=0.002534 Jy/beam
! Clean residual mean=0.000152 rms=0.000617 Jy/beam
! Combined flux in latest and established models = 0.484537 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 70 components and 0.484537 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.321774Jy  sigma=0.001289
! Fit after  self-cal, rms=0.321788Jy  sigma=0.001289
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.000404792 Jy
! Component: 100  -  total flux cleaned = 0.000508666 Jy
! Component: 150  -  total flux cleaned = 0.000571731 Jy
! Component: 200  -  total flux cleaned = 0.00060058 Jy
! Total flux subtracted in 200 components = 0.00060058 Jy
! Clean residual min=-0.002319 max=0.002546 Jy/beam
! Clean residual mean=0.000146 rms=0.000613 Jy/beam
! Combined flux in latest and established models = 0.485138 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 82 components and 0.485138 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.321773Jy  sigma=0.001289
! Fit after  self-cal, rms=0.321774Jy  sigma=0.001289
! 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.321774Jy  sigma=0.001289
! Fit after  self-cal, rms=0.321578Jy  sigma=0.001289
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.201 mas, bmaj=10.21 mas, bpa=-6.513 degrees
! Estimated noise=652.603 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00120584 Jy
! Component: 100  -  total flux cleaned = 0.00171887 Jy
! Component: 150  -  total flux cleaned = 0.00181253 Jy
! Component: 200  -  total flux cleaned = 0.00182824 Jy
! Total flux subtracted in 200 components = 0.00182824 Jy
! Clean residual min=-0.002290 max=0.003474 Jy/beam
! Clean residual mean=0.000286 rms=0.000791 Jy/beam
! Combined flux in latest and established models = 0.486966 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 94 components and 0.486966 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.321567Jy  sigma=0.001289
! Fit after  self-cal, rms=0.321572Jy  sigma=0.001289
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 (-51.5, -0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00275411 Jy
! Component: 100  -  total flux cleaned = 0.00318164 Jy
! Component: 150  -  total flux cleaned = 0.00353031 Jy
! Component: 200  -  total flux cleaned = 0.00387592 Jy
! Total flux subtracted in 200 components = 0.00387592 Jy
! Clean residual min=-0.002295 max=0.002450 Jy/beam
! Clean residual mean=0.000198 rms=0.000685 Jy/beam
! Combined flux in latest and established models = 0.490842 Jy
! Performing phase self-cal
! Adding 43 model components to the UV plane model.
! The established model now contains 137 components and 0.490842 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.321548Jy  sigma=0.001288
! Fit after  self-cal, rms=0.321546Jy  sigma=0.001288
! 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.319 mas, bmaj=4.874 mas, bpa=5.65 degrees
! Estimated noise=504.232 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.319 x 4.874 at 5.65 degrees (North through East)
! Clean map  min=-0.0022574  max=0.37497 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=1.704 mas, bmaj=3.808 mas, bpa=3.599 degrees
! Estimated noise=977.134 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.269388 Jy
! Component: 100  -  total flux cleaned = 0.349071 Jy
! Component: 150  -  total flux cleaned = 0.391911 Jy
! Component: 200  -  total flux cleaned = 0.415962 Jy
! Total flux subtracted in 200 components = 0.415962 Jy
! Clean residual min=-0.006057 max=0.012417 Jy/beam
! Clean residual mean=0.000094 rms=0.001545 Jy/beam
! Combined flux in latest and established models = 0.415962 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 10 model components to the UV plane model.
! The established model now contains 10 components and 0.415962 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.319 mas, bmaj=4.874 mas, bpa=5.65 degrees
! Estimated noise=504.232 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.0255693 Jy
! Component: 100  -  total flux cleaned = 0.0379362 Jy
! Component: 150  -  total flux cleaned = 0.0455765 Jy
! Component: 200  -  total flux cleaned = 0.0510883 Jy
! Total flux subtracted in 200 components = 0.0510883 Jy
! Clean residual min=-0.002649 max=0.003292 Jy/beam
! Clean residual mean=0.000372 rms=0.000849 Jy/beam
! Combined flux in latest and established models = 0.467051 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 38 components and 0.467051 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.201 mas, bmaj=10.21 mas, bpa=-6.513 degrees
! Estimated noise=652.603 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00757735 Jy
! Component: 100  -  total flux cleaned = 0.0121643 Jy
! Component: 150  -  total flux cleaned = 0.0154401 Jy
! Component: 200  -  total flux cleaned = 0.01792 Jy
! Total flux subtracted in 200 components = 0.01792 Jy
! Clean residual min=-0.002372 max=0.003197 Jy/beam
! Clean residual mean=0.000394 rms=0.000841 Jy/beam
! Combined flux in latest and established models = 0.484971 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.00114098 Jy
! Component: 100  -  total flux cleaned = 0.0019781 Jy
! Component: 150  -  total flux cleaned = 0.00265286 Jy
! Component: 200  -  total flux cleaned = 0.00336497 Jy
! Total flux subtracted in 200 components = 0.00336497 Jy
! Clean residual min=-0.002248 max=0.002732 Jy/beam
! Clean residual mean=0.000290 rms=0.000727 Jy/beam
! Combined flux in latest and established models = 0.488336 Jy
! Adding 93 model components to the UV plane model.
! The established model now contains 121 components and 0.488336 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.319 mas, bmaj=4.874 mas, bpa=5.65 degrees
! Estimated noise=504.232 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00133813 Jy
! Component: 100  -  total flux cleaned = 0.00216122 Jy
! Component: 150  -  total flux cleaned = 0.00256695 Jy
! Component: 200  -  total flux cleaned = 0.00282271 Jy
! Total flux subtracted in 200 components = 0.00282271 Jy
! Clean residual min=-0.002417 max=0.002228 Jy/beam
! Clean residual mean=0.000083 rms=0.000570 Jy/beam
! Combined flux in latest and established models = 0.491158 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 146 components and 0.491158 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.321461Jy  sigma=0.001288
! Fit after  self-cal, rms=0.321461Jy  sigma=0.001288
wmodel J0112+2244_S_2001_10_29_pus_map.mod
! Writing 146 model components to file: J0112+2244_S_2001_10_29_pus_map.mod
wobs J0112+2244_S_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J0112+2244_S_2001_10_29_pus_uvs.fits
wwins J0112+2244_S_2001_10_29_pus_map.win
! wwins: Wrote 5 windows to J0112+2244_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 = 3.76313e-08 Jy
! Component: 100  -  total flux cleaned = 0.000452166 Jy
! Component: 150  -  total flux cleaned = 0.000851741 Jy
! Component: 200  -  total flux cleaned = 0.00123987 Jy
! Component: 250  -  total flux cleaned = 0.00168686 Jy
! Component: 300  -  total flux cleaned = 0.00208889 Jy
! Component: 350  -  total flux cleaned = 0.00238365 Jy
! Component: 400  -  total flux cleaned = 0.00267267 Jy
! Component: 450  -  total flux cleaned = 0.00289331 Jy
! Component: 500  -  total flux cleaned = 0.00311048 Jy
! Component: 550  -  total flux cleaned = 0.00329365 Jy
! Component: 600  -  total flux cleaned = 0.00341404 Jy
! Component: 650  -  total flux cleaned = 0.00356211 Jy
! Component: 700  -  total flux cleaned = 0.00367923 Jy
! Component: 750  -  total flux cleaned = 0.00379502 Jy
! Component: 800  -  total flux cleaned = 0.00390961 Jy
! Component: 850  -  total flux cleaned = 0.00405102 Jy
! Component: 900  -  total flux cleaned = 0.00410681 Jy
! Component: 950  -  total flux cleaned = 0.00421725 Jy
! Component: 1000  -  total flux cleaned = 0.00427194 Jy
! Component: 1050  -  total flux cleaned = 0.00435301 Jy
! Component: 1100  -  total flux cleaned = 0.00440661 Jy
! Component: 1150  -  total flux cleaned = 0.0044863 Jy
! Component: 1200  -  total flux cleaned = 0.00451255 Jy
! Component: 1250  -  total flux cleaned = 0.00453851 Jy
! Component: 1300  -  total flux cleaned = 0.00448691 Jy
! Component: 1350  -  total flux cleaned = 0.00456395 Jy
! Component: 1400  -  total flux cleaned = 0.00453839 Jy
! Component: 1450  -  total flux cleaned = 0.00453832 Jy
! Component: 1500  -  total flux cleaned = 0.00453837 Jy
! Component: 1550  -  total flux cleaned = 0.00451339 Jy
! Component: 1600  -  total flux cleaned = 0.00448868 Jy
! Component: 1650  -  total flux cleaned = 0.0045134 Jy
! Component: 1700  -  total flux cleaned = 0.00443995 Jy
! Component: 1750  -  total flux cleaned = 0.0044886 Jy
! Component: 1800  -  total flux cleaned = 0.00446433 Jy
! Component: 1850  -  total flux cleaned = 0.00448832 Jy
! Component: 1900  -  total flux cleaned = 0.00444046 Jy
! Component: 1950  -  total flux cleaned = 0.00446426 Jy
! Component: 2000  -  total flux cleaned = 0.004417 Jy
! Total flux subtracted in 2048 components = 0.00444069 Jy
! Clean residual min=-0.001470 max=0.001415 Jy/beam
! Clean residual mean=0.000029 rms=0.000429 Jy/beam
! Combined flux in latest and established models = 0.495599 Jy
keep
! Adding 141 model components to the UV plane model.
! The established model now contains 287 components and 0.495599 Jy
![Exited script file: muppet]
wmap "J0112+2244_S_2001_10_29_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.319 x 4.874 at 5.65 degrees (North through East)
! Clean map  min=-0.0020838  max=0.37659 Jy/beam
! Writing clean map to FITS file: J0112+2244_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.376589 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000427509 
device "J0112+2244_S_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J0112+2244_S_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.340564 0.340564 0.681129 1.36226 2.72452 5.44903 10.8981 21.7961 43.5923 87.1845
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0012 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.376 
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.319 x 4.874 at 5.65 degrees (North through East)
! Clean map  min=-0.0020838  max=0.37659 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0112+2244_S_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J0112+2244_S_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0112+2244_S_2001_10_29_pus_uvs.log closed on Wed Feb 27 15:10:33 2008