! Started logfile: J2202+4216_S_2000_12_04_pus_uvs.log on Wed Oct 17 17:21:34 2007
obs J2202+4216_S_2000_12_04_pus_uva.fits
! Reading UV FITS file: J2202+4216_S_2000_12_04_pus_uva.fits
! AN table 1: 200 integrations on 190 of 190 possible baselines.
! AN table 2: 51 integrations on 190 of 190 possible baselines.
! AN table 3: 95 integrations on 190 of 190 possible baselines.
! AN table 4: 149 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.141446 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2202+4216
! 
! 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.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2169 lines of history.
! 
! Reading 53212 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 J2202+4216_S_2000_12_04_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 2387 telescope corrections were flagged in sub-array 1.
!  A total of 990 telescope corrections were flagged in sub-array 2.
!  A total of 1426 telescope corrections were flagged in sub-array 3.
!  A total of 2168 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 2387 telescope corrections were flagged in sub-array 1.
!  A total of 990 telescope corrections were flagged in sub-array 2.
!  A total of 1426 telescope corrections were flagged in sub-array 3.
!  A total of 2168 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 2388 telescope corrections were flagged in sub-array 1.
!  A total of 990 telescope corrections were flagged in sub-array 2.
!  A total of 1426 telescope corrections were flagged in sub-array 3.
!  A total of 2137 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 2387 telescope corrections were flagged in sub-array 1.
!  A total of 990 telescope corrections were flagged in sub-array 2.
!  A total of 1426 telescope corrections were flagged in sub-array 3.
!  A total of 2137 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.127315Jy  sigma=0.010179
! Fit after  self-cal, rms=0.918987Jy  sigma=0.008744
! 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.819 mas, bmaj=3.059 mas, bpa=-5.602 degrees
! Estimated noise=749.981 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.828166 Jy
! Component: 100  -  total flux cleaned = 1.19787 Jy
! Total flux subtracted in 100 components = 1.19787 Jy
! Clean residual min=-0.041232 max=0.171246 Jy/beam
! Clean residual mean=0.000339 rms=0.013773 Jy/beam
! Combined flux in latest and established models = 1.19787 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 1.19787 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.750782Jy  sigma=0.007390
! Fit after  self-cal, rms=0.739971Jy  sigma=0.007332
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.235639 Jy
! Component: 100  -  total flux cleaned = 0.385196 Jy
! Total flux subtracted in 100 components = 0.385196 Jy
! Clean residual min=-0.025084 max=0.081544 Jy/beam
! Clean residual mean=0.000235 rms=0.008124 Jy/beam
! Combined flux in latest and established models = 1.58306 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 20 components and 1.58306 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.588558Jy  sigma=0.005780
! Fit after  self-cal, rms=0.585158Jy  sigma=0.005763
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.114987 Jy
! Component: 100  -  total flux cleaned = 0.193112 Jy
! Total flux subtracted in 100 components = 0.193112 Jy
! Clean residual min=-0.019109 max=0.054407 Jy/beam
! Clean residual mean=0.000181 rms=0.005915 Jy/beam
! Combined flux in latest and established models = 1.77618 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 32 components and 1.77618 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.536133Jy  sigma=0.005248
! Fit after  self-cal, rms=0.535378Jy  sigma=0.005244
! Inverting map 
! Added new window around map position (0.5, -4.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0655777 Jy
! Component: 100  -  total flux cleaned = 0.114288 Jy
! Total flux subtracted in 100 components = 0.114288 Jy
! Clean residual min=-0.015754 max=0.041965 Jy/beam
! Clean residual mean=0.000150 rms=0.004968 Jy/beam
! Combined flux in latest and established models = 1.89047 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 41 components and 1.89047 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.514800Jy  sigma=0.005026
! Fit after  self-cal, rms=0.514236Jy  sigma=0.005022
! Inverting map 
! Added new window around map position (3, -4.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.047427 Jy
! Component: 100  -  total flux cleaned = 0.0839747 Jy
! Total flux subtracted in 100 components = 0.0839747 Jy
! Clean residual min=-0.014643 max=0.026483 Jy/beam
! Clean residual mean=0.000127 rms=0.004335 Jy/beam
! Combined flux in latest and established models = 1.97444 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 53 components and 1.97444 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.502187Jy  sigma=0.004895
! Fit after  self-cal, rms=0.501735Jy  sigma=0.004892
! Inverting map 
! Added new window around map position (1.5, -8.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0343721 Jy
! Component: 100  -  total flux cleaned = 0.0623881 Jy
! Total flux subtracted in 100 components = 0.0623881 Jy
! Clean residual min=-0.013212 max=0.020155 Jy/beam
! Clean residual mean=0.000110 rms=0.003926 Jy/beam
! Combined flux in latest and established models = 2.03683 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 66 components and 2.03683 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.494838Jy  sigma=0.004819
! Fit after  self-cal, rms=0.494609Jy  sigma=0.004818
! 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.384 mas, bmaj=3.895 mas, bpa=-6.134 degrees
! Estimated noise=352.056 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.0709615 Jy
! Component: 100  -  total flux cleaned = 0.118779 Jy
! Component: 150  -  total flux cleaned = 0.153183 Jy
! Component: 200  -  total flux cleaned = 0.178473 Jy
! Total flux subtracted in 200 components = 0.178473 Jy
! Clean residual min=-0.015227 max=0.026896 Jy/beam
! Clean residual mean=0.000438 rms=0.005479 Jy/beam
! Combined flux in latest and established models = 2.2153 Jy
! Performing phase self-cal
! Adding 59 model components to the UV plane model.
! The established model now contains 103 components and 2.2153 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.483708Jy  sigma=0.004697
! Fit after  self-cal, rms=0.483042Jy  sigma=0.004691
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 57 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.99     GC        1.09     GG        1.00*    
!   HH        0.97     HN        1.01     KK        0.98     KP        0.97     
!   LA        0.99     MA        0.91     MC        0.99     MK        1.01     
!   NL        0.98     NY        1.02     OV        1.00     PT        0.98     
!   SC        1.03     TS        1.00     WF        1.02     WZ        1.02     
! 
!  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*    GC        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*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        0.95     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        0.97     KP        1.33     
!   LA        1.00     MA        1.00*    MC        1.00*    MK        1.01     
!   NL        0.98     NY        0.99     OV        0.90     PT        0.95     
!   SC        1.10     TS        1.01     WF        0.85     WZ        1.00*    
! 
!  A total of 66 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.00     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        1.00     KP        0.95     
!   LA        0.99     MA        1.18     MC        0.98     MK        0.95     
!   NL        1.02     NY        1.00     OV        0.98     PT        0.98     
!   SC        1.05     TS        1.05     WF        1.01     WZ        0.99     
! 
! 
! Correcting IF 2.
!  A total of 57 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.01     GC        1.00     GG        1.00*    
!   HH        0.92     HN        1.01     KK        1.02     KP        0.96     
!   LA        0.96     MA        1.02     MC        0.99     MK        1.02     
!   NL        0.94     NY        1.04     OV        0.97     PT        0.99     
!   SC        0.99     TS        0.98     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*    GC        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*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        0.97     GC        1.08     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        0.95     KP        0.95     
!   LA        0.97     MA        1.00*    MC        1.00*    MK        1.03     
!   NL        0.95     NY        1.00     OV        0.88     PT        0.97     
!   SC        1.07     TS        1.01     WF        0.98     WZ        1.00*    
! 
!  A total of 66 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.02     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.03     KP        0.96     
!   LA        0.97     MA        0.88     MC        1.21     MK        0.99     
!   NL        0.97     NY        1.00     OV        0.96     PT        0.99     
!   SC        1.01     TS        1.05     WF        1.01     WZ        1.02     
! 
! 
! Correcting IF 3.
!  A total of 57 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.11     FD        0.88     GC        0.93     GG        1.00*    
!   HH        1.18     HN        1.10     KK        1.04     KP        1.08     
!   LA        0.92     MA        0.78     MC        0.98     MK        1.02     
!   NL        0.84     NY        1.05     OV        0.93     PT        0.92     
!   SC        0.97     TS        0.84     WF        1.83     WZ        0.89     
! 
!  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*    GC        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*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        2.17     FD        1.16     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        0.83     KK        0.90     KP        1.04     
!   LA        1.10     MA        1.00*    MC        1.00*    MK        1.01     
!   NL        1.08     NY        0.95     OV        0.99     PT        1.17     
!   SC        1.11     TS        0.97     WF        0.85     WZ        1.00*    
! 
!  A total of 96 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.19     GC        1.07     GG        1.00*    
!   HH        1.00*    HN        0.92     KK        0.96     KP        1.00     
!   LA        1.01     MA        1.22     MC        1.01     MK        0.98     
!   NL        1.03     NY        0.96     OV        0.98     PT        1.00     
!   SC        1.07     TS        1.00     WF        1.20     WZ        0.89     
! 
! 
! Correcting IF 4.
!  A total of 57 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.02     GC        1.05     GG        1.00*    
!   HH        0.90     HN        1.01     KK        1.02     KP        0.98     
!   LA        0.99     MA        1.07     MC        1.03     MK        1.02     
!   NL        0.99     NY        1.04     OV        1.02     PT        1.18     
!   SC        1.04     TS        0.96     WF        1.02     WZ        1.05     
! 
!  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*    GC        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*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        0.98     GC        1.10     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        0.96     KP        0.98     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        1.02     
!   NL        1.00     NY        1.09     OV        0.93     PT        1.00     
!   SC        1.13     TS        1.03     WF        0.93     WZ        1.00*    
! 
!  A total of 96 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.01     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.00     KP        0.99     
!   LA        0.99     MA        0.91     MC        0.94     MK        0.98     
!   NL        1.04     NY        1.01     OV        1.00     PT        1.02     
!   SC        1.08     TS        1.04     WF        0.99     WZ        1.00     
! 
! 
! Fit before self-cal, rms=0.483042Jy  sigma=0.004691
! Fit after  self-cal, rms=0.448844Jy  sigma=0.004513
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.4 mas, bmaj=3.934 mas, bpa=-6.491 degrees
! Estimated noise=351.802 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 (7.5, -12).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.025409 Jy
! Component: 100  -  total flux cleaned = 0.0398648 Jy
! Component: 150  -  total flux cleaned = 0.0477335 Jy
! Component: 200  -  total flux cleaned = 0.0523965 Jy
! Total flux subtracted in 200 components = 0.0523965 Jy
! Clean residual min=-0.008587 max=0.011977 Jy/beam
! Clean residual mean=0.000266 rms=0.002453 Jy/beam
! Combined flux in latest and established models = 2.2677 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 136 components and 2.2677 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.447285Jy  sigma=0.004500
! Fit after  self-cal, rms=0.448039Jy  sigma=0.004497
! 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.448039Jy  sigma=0.004497
! Fit after  self-cal, rms=0.467215Jy  sigma=0.004448
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.422 mas, bmaj=3.941 mas, bpa=-5.844 degrees
! Estimated noise=353.898 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00703121 Jy
! Component: 100  -  total flux cleaned = 0.0113898 Jy
! Component: 150  -  total flux cleaned = 0.0151107 Jy
! Component: 200  -  total flux cleaned = 0.0172062 Jy
! Total flux subtracted in 200 components = 0.0172062 Jy
! Clean residual min=-0.005522 max=0.009075 Jy/beam
! Clean residual mean=0.000331 rms=0.001796 Jy/beam
! Combined flux in latest and established models = 2.2849 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 150 components and 2.2849 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.466912Jy  sigma=0.004445
! Fit after  self-cal, rms=0.467124Jy  sigma=0.004444
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 (-0.5, -20.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0092953 Jy
! Component: 100  -  total flux cleaned = 0.0135716 Jy
! Component: 150  -  total flux cleaned = 0.0171906 Jy
! Component: 200  -  total flux cleaned = 0.0202033 Jy
! Total flux subtracted in 200 components = 0.0202033 Jy
! Clean residual min=-0.004896 max=0.005259 Jy/beam
! Clean residual mean=0.000299 rms=0.001506 Jy/beam
! Combined flux in latest and established models = 2.3051 Jy
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 183 components and 2.3051 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.466892Jy  sigma=0.004442
! Fit after  self-cal, rms=0.466865Jy  sigma=0.004442
! 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.466865Jy  sigma=0.004442
! Fit after  self-cal, rms=0.468751Jy  sigma=0.004442
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.424 mas, bmaj=3.944 mas, bpa=-5.823 degrees
! Estimated noise=354.019 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00319555 Jy
! Component: 100  -  total flux cleaned = 0.00641694 Jy
! Component: 150  -  total flux cleaned = 0.00844739 Jy
! Component: 200  -  total flux cleaned = 0.010348 Jy
! Total flux subtracted in 200 components = 0.010348 Jy
! Clean residual min=-0.004882 max=0.005102 Jy/beam
! Clean residual mean=0.000285 rms=0.001413 Jy/beam
! Combined flux in latest and established models = 2.31545 Jy
selfcal
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 193 components and 2.31545 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.468646Jy  sigma=0.004441
! Fit after  self-cal, rms=0.468633Jy  sigma=0.004441
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.00158455 Jy
! Component: 100  -  total flux cleaned = 0.00333099 Jy
! Component: 150  -  total flux cleaned = 0.00475859 Jy
! Component: 200  -  total flux cleaned = 0.00567683 Jy
! Total flux subtracted in 200 components = 0.00567683 Jy
! Clean residual min=-0.004737 max=0.005155 Jy/beam
! Clean residual mean=0.000273 rms=0.001369 Jy/beam
! Combined flux in latest and established models = 2.32113 Jy
! Performing phase self-cal
! Adding 43 model components to the UV plane model.
! The established model now contains 199 components and 2.32113 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.468583Jy  sigma=0.004440
! Fit after  self-cal, rms=0.468573Jy  sigma=0.004440
! 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.468573Jy  sigma=0.004440
! Fit after  self-cal, rms=0.468523Jy  sigma=0.004440
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.302 mas, bmaj=9.67 mas, bpa=12.02 degrees
! Estimated noise=498.484 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00777209 Jy
! Component: 100  -  total flux cleaned = 0.0117648 Jy
! Component: 150  -  total flux cleaned = 0.0132786 Jy
! Component: 200  -  total flux cleaned = 0.0144336 Jy
! Total flux subtracted in 200 components = 0.0144336 Jy
! Clean residual min=-0.005856 max=0.007413 Jy/beam
! Clean residual mean=0.000727 rms=0.002022 Jy/beam
! Combined flux in latest and established models = 2.33556 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 209 components and 2.33556 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.468510Jy  sigma=0.004440
! Fit after  self-cal, rms=0.468491Jy  sigma=0.004440
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.00172692 Jy
! Component: 100  -  total flux cleaned = 0.00289807 Jy
! Component: 150  -  total flux cleaned = 0.00380005 Jy
! Component: 200  -  total flux cleaned = 0.00440002 Jy
! Total flux subtracted in 200 components = 0.00440002 Jy
! Clean residual min=-0.005657 max=0.007781 Jy/beam
! Clean residual mean=0.000696 rms=0.001967 Jy/beam
! Combined flux in latest and established models = 2.33996 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 215 components and 2.33996 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.468500Jy  sigma=0.004440
! Fit after  self-cal, rms=0.468490Jy  sigma=0.004440
! 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.425 mas, bmaj=3.946 mas, bpa=-5.806 degrees
! Estimated noise=354.038 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.425 x 3.946 at -5.806 degrees (North through East)
! Clean map  min=-0.0045682  max=1.1535 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.468490Jy  sigma=0.004440
! Fit after  self-cal, rms=0.897718Jy  sigma=0.002953
! Inverting map and beam 
! Estimated beam: bmin=2.423 mas, bmaj=3.947 mas, bpa=-6.024 degrees
! Estimated noise=353.897 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00176601 Jy
! Component: 100  -  total flux cleaned = -0.00237585 Jy
! Component: 150  -  total flux cleaned = -0.002478 Jy
! Component: 200  -  total flux cleaned = -0.0026611 Jy
! Total flux subtracted in 200 components = -0.0026611 Jy
! Clean residual min=-0.004165 max=0.004831 Jy/beam
! Clean residual mean=0.000223 rms=0.001177 Jy/beam
! Combined flux in latest and established models = 2.3373 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 225 components and 2.3373 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.897672Jy  sigma=0.002953
! Fit after  self-cal, rms=0.897679Jy  sigma=0.002953
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000107762 Jy
! Component: 100  -  total flux cleaned = -0.000272848 Jy
! Component: 150  -  total flux cleaned = -0.000198159 Jy
! Component: 200  -  total flux cleaned = -0.000129567 Jy
! Total flux subtracted in 200 components = -0.000129567 Jy
! Clean residual min=-0.004215 max=0.004894 Jy/beam
! Clean residual mean=0.000224 rms=0.001159 Jy/beam
! Combined flux in latest and established models = 2.33717 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 232 components and 2.33717 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.897658Jy  sigma=0.002952
! Fit after  self-cal, rms=0.897661Jy  sigma=0.002952
! 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.897661Jy  sigma=0.002952
! Fit after  self-cal, rms=0.880847Jy  sigma=0.002952
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.835 mas, bmaj=3.119 mas, bpa=-4.646 degrees
! Estimated noise=764.354 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.859642 Jy
! Component: 100  -  total flux cleaned = 1.25599 Jy
! Component: 150  -  total flux cleaned = 1.4742 Jy
! Component: 200  -  total flux cleaned = 1.6127 Jy
! Total flux subtracted in 200 components = 1.6127 Jy
! Clean residual min=-0.017959 max=0.076018 Jy/beam
! Clean residual mean=0.000247 rms=0.006857 Jy/beam
! Combined flux in latest and established models = 1.6127 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 21 model components to the UV plane model.
! The established model now contains 21 components and 1.6127 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.424 mas, bmaj=3.948 mas, bpa=-6.04 degrees
! Estimated noise=353.872 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.20528 Jy
! Component: 100  -  total flux cleaned = 0.331591 Jy
! Component: 150  -  total flux cleaned = 0.41596 Jy
! Component: 200  -  total flux cleaned = 0.47507 Jy
! Total flux subtracted in 200 components = 0.47507 Jy
! Clean residual min=-0.011256 max=0.034486 Jy/beam
! Clean residual mean=0.000842 rms=0.006243 Jy/beam
! Combined flux in latest and established models = 2.08777 Jy
! Adding 87 model components to the UV plane model.
! The established model now contains 98 components and 2.08777 Jy
! Inverting map 
! Added new window around map position (0, 3.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0439828 Jy
! Component: 100  -  total flux cleaned = 0.0781047 Jy
! Component: 150  -  total flux cleaned = 0.10494 Jy
! Component: 200  -  total flux cleaned = 0.126351 Jy
! Total flux subtracted in 200 components = 0.126351 Jy
! Clean residual min=-0.007143 max=0.015636 Jy/beam
! Clean residual mean=0.000508 rms=0.002988 Jy/beam
! Combined flux in latest and established models = 2.21412 Jy
! Adding 66 model components to the UV plane model.
! The established model now contains 148 components and 2.21412 Jy
! Inverting map 
! Added new window around map position (6, -4.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0180808 Jy
! Component: 100  -  total flux cleaned = 0.0328083 Jy
! Component: 150  -  total flux cleaned = 0.0451355 Jy
! Component: 200  -  total flux cleaned = 0.0555732 Jy
! Total flux subtracted in 200 components = 0.0555732 Jy
! Clean residual min=-0.005434 max=0.007460 Jy/beam
! Clean residual mean=0.000371 rms=0.001844 Jy/beam
! Combined flux in latest and established models = 2.2697 Jy
! Adding 58 model components to the UV plane model.
! The established model now contains 182 components and 2.26969 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.305 mas, bmaj=9.66 mas, bpa=11.93 degrees
! Estimated noise=497.904 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0210587 Jy
! Component: 100  -  total flux cleaned = 0.0351951 Jy
! Component: 150  -  total flux cleaned = 0.0454325 Jy
! Component: 200  -  total flux cleaned = 0.0530367 Jy
! Total flux subtracted in 200 components = 0.0530367 Jy
! Clean residual min=-0.006703 max=0.008686 Jy/beam
! Clean residual mean=0.000770 rms=0.002209 Jy/beam
! Combined flux in latest and established models = 2.32273 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.00572857 Jy
! Component: 100  -  total flux cleaned = 0.0100845 Jy
! Component: 150  -  total flux cleaned = 0.0134165 Jy
! Component: 200  -  total flux cleaned = 0.0159743 Jy
! Total flux subtracted in 200 components = 0.0159743 Jy
! Clean residual min=-0.005708 max=0.006578 Jy/beam
! Clean residual mean=0.000650 rms=0.001859 Jy/beam
! Combined flux in latest and established models = 2.33871 Jy
! Adding 117 model components to the UV plane model.
! The established model now contains 276 components and 2.33871 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.424 mas, bmaj=3.948 mas, bpa=-6.04 degrees
! Estimated noise=353.872 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00136881 Jy
! Component: 100  -  total flux cleaned = -0.0015283 Jy
! Component: 150  -  total flux cleaned = -0.00130756 Jy
! Component: 200  -  total flux cleaned = -0.000890853 Jy
! Total flux subtracted in 200 components = -0.000890853 Jy
! Clean residual min=-0.003762 max=0.004251 Jy/beam
! Clean residual mean=0.000213 rms=0.001087 Jy/beam
! Combined flux in latest and established models = 2.33782 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 291 components and 2.33782 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.880819Jy  sigma=0.002953
! Fit after  self-cal, rms=0.880752Jy  sigma=0.002952
wmodel J2202+4216_S_2000_12_04_pus_map.mod
! Writing 291 model components to file: J2202+4216_S_2000_12_04_pus_map.mod
wobs J2202+4216_S_2000_12_04_pus_uvs.fits
! Writing UV FITS file: J2202+4216_S_2000_12_04_pus_uvs.fits
wwins J2202+4216_S_2000_12_04_pus_map.win
! wwins: Wrote 8 windows to J2202+4216_S_2000_12_04_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.00118742 Jy
! Component: 100  -  total flux cleaned = 0.00145693 Jy
! Component: 150  -  total flux cleaned = 0.00177959 Jy
! Component: 200  -  total flux cleaned = 0.00209418 Jy
! Component: 250  -  total flux cleaned = 0.00264328 Jy
! Component: 300  -  total flux cleaned = 0.00317867 Jy
! Component: 350  -  total flux cleaned = 0.0037035 Jy
! Component: 400  -  total flux cleaned = 0.00433143 Jy
! Component: 450  -  total flux cleaned = 0.00489058 Jy
! Component: 500  -  total flux cleaned = 0.00554899 Jy
! Component: 550  -  total flux cleaned = 0.00619511 Jy
! Component: 600  -  total flux cleaned = 0.00677831 Jy
! Component: 650  -  total flux cleaned = 0.00750921 Jy
! Component: 700  -  total flux cleaned = 0.00802429 Jy
! Component: 750  -  total flux cleaned = 0.00858411 Jy
! Component: 800  -  total flux cleaned = 0.0090864 Jy
! Component: 850  -  total flux cleaned = 0.00963215 Jy
! Component: 900  -  total flux cleaned = 0.0100242 Jy
! Component: 950  -  total flux cleaned = 0.0105583 Jy
! Component: 1000  -  total flux cleaned = 0.0109902 Jy
! Component: 1050  -  total flux cleaned = 0.011276 Jy
! Component: 1100  -  total flux cleaned = 0.0117005 Jy
! Component: 1150  -  total flux cleaned = 0.0122594 Jy
! Component: 1200  -  total flux cleaned = 0.012536 Jy
! Component: 1250  -  total flux cleaned = 0.0127645 Jy
! Component: 1300  -  total flux cleaned = 0.0132626 Jy
! Component: 1350  -  total flux cleaned = 0.0135762 Jy
! Component: 1400  -  total flux cleaned = 0.0139756 Jy
! Component: 1450  -  total flux cleaned = 0.0142393 Jy
! Component: 1500  -  total flux cleaned = 0.0145886 Jy
! Component: 1550  -  total flux cleaned = 0.0149348 Jy
! Component: 1600  -  total flux cleaned = 0.0152354 Jy
! Component: 1650  -  total flux cleaned = 0.0156184 Jy
! Component: 1700  -  total flux cleaned = 0.01583 Jy
! Component: 1750  -  total flux cleaned = 0.0162488 Jy
! Component: 1800  -  total flux cleaned = 0.0166227 Jy
! Component: 1850  -  total flux cleaned = 0.0169525 Jy
! Component: 1900  -  total flux cleaned = 0.017279 Jy
! Component: 1950  -  total flux cleaned = 0.017563 Jy
! Component: 2000  -  total flux cleaned = 0.0179256 Jy
! Total flux subtracted in 2048 components = 0.0182057 Jy
! Clean residual min=-0.002417 max=0.002304 Jy/beam
! Clean residual mean=0.000157 rms=0.000785 Jy/beam
! Combined flux in latest and established models = 2.35602 Jy
keep
! Adding 161 model components to the UV plane model.
! The established model now contains 452 components and 2.35602 Jy
![Exited script file: muppet]
wmap "J2202+4216_S_2000_12_04_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.424 x 3.948 at -6.04 degrees (North through East)
! Clean map  min=-0.0030155  max=1.1509 Jy/beam
! Writing clean map to FITS file: J2202+4216_S_2000_12_04_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.15086 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000779868 
device "J2202+4216_S_2000_12_04_pus\_map.eps/VPS"
! Attempting to open device: 'J2202+4216_S_2000_12_04_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.203292 0.203292 0.406584 0.813168 1.62634 3.25267 6.50534 13.0107 26.0214 52.0427
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0023 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.15 
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.424 x 3.948 at -6.04 degrees (North through East)
! Clean map  min=-0.0030155  max=1.1509 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2202+4216_S_2000_12_04_pus\_map.gif/vgif"
! Attempting to open device: 'J2202+4216_S_2000_12_04_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2202+4216_S_2000_12_04_pus_uvs.log closed on Wed Oct 17 17:22:04 2007