! Started logfile: J0102+5824_S_2000_05_22_pus_uvs.log on Tue Nov 20 11:56:36 2007
obs J0102+5824_S_2000_05_22_pus_uva.fits
! Reading UV FITS file: J0102+5824_S_2000_05_22_pus_uva.fits
! AN table 1: 269 integrations on 190 of 190 possible baselines.
! AN table 2: 270 integrations on 190 of 190 possible baselines.
! AN table 3: 48 integrations on 190 of 190 possible baselines.
! AN table 4: 58 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.181387 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0102+5824
! 
! 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 2003 lines of history.
! 
! Reading 88916 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 J0102+5824_S_2000_05_22_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 3693 telescope corrections were flagged in sub-array 1.
!  A total of 3271 telescope corrections were flagged in sub-array 2.
!  A total of 644 telescope corrections were flagged in sub-array 3.
!  A total of 860 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 3692 telescope corrections were flagged in sub-array 1.
!  A total of 3271 telescope corrections were flagged in sub-array 2.
!  A total of 644 telescope corrections were flagged in sub-array 3.
!  A total of 860 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 3694 telescope corrections were flagged in sub-array 1.
!  A total of 3271 telescope corrections were flagged in sub-array 2.
!  A total of 644 telescope corrections were flagged in sub-array 3.
!  A total of 860 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 3694 telescope corrections were flagged in sub-array 1.
!  A total of 3271 telescope corrections were flagged in sub-array 2.
!  A total of 644 telescope corrections were flagged in sub-array 3.
!  A total of 860 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.895562Jy  sigma=0.007214
! Fit after  self-cal, rms=0.668640Jy  sigma=0.005458
! 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.944 mas, bmaj=2.46 mas, bpa=2.836 degrees
! Estimated noise=544.137 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.263942 Jy
! Component: 100  -  total flux cleaned = 0.343874 Jy
! Total flux subtracted in 100 components = 0.343874 Jy
! Clean residual min=-0.006652 max=0.037895 Jy/beam
! Clean residual mean=0.000002 rms=0.002014 Jy/beam
! Combined flux in latest and established models = 0.343874 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 0.343874 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.272929Jy  sigma=0.001670
! Fit after  self-cal, rms=0.272850Jy  sigma=0.001669
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0458747 Jy
! Component: 100  -  total flux cleaned = 0.0768136 Jy
! Total flux subtracted in 100 components = 0.0768136 Jy
! Clean residual min=-0.005297 max=0.017092 Jy/beam
! Clean residual mean=-0.000002 rms=0.001382 Jy/beam
! Combined flux in latest and established models = 0.420688 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 26 components and 0.420688 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.259149Jy  sigma=0.001491
! Fit after  self-cal, rms=0.259112Jy  sigma=0.001490
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0221978 Jy
! Component: 100  -  total flux cleaned = 0.0380667 Jy
! Total flux subtracted in 100 components = 0.0380667 Jy
! Clean residual min=-0.004603 max=0.010422 Jy/beam
! Clean residual mean=-0.000004 rms=0.001163 Jy/beam
! Combined flux in latest and established models = 0.458754 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 32 components and 0.458755 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.255638Jy  sigma=0.001441
! Fit after  self-cal, rms=0.255667Jy  sigma=0.001441
! 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.0125139 Jy
! Component: 100  -  total flux cleaned = 0.0219233 Jy
! Total flux subtracted in 100 components = 0.0219233 Jy
! Clean residual min=-0.004301 max=0.007276 Jy/beam
! Clean residual mean=-0.000005 rms=0.001076 Jy/beam
! Combined flux in latest and established models = 0.480678 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 39 components and 0.480678 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.254470Jy  sigma=0.001423
! Fit after  self-cal, rms=0.254440Jy  sigma=0.001423
! Inverting map 
! Added new window around map position (-6, -1).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00840114 Jy
! Component: 100  -  total flux cleaned = 0.0149495 Jy
! Total flux subtracted in 100 components = 0.0149495 Jy
! Clean residual min=-0.004106 max=0.005542 Jy/beam
! Clean residual mean=-0.000006 rms=0.001022 Jy/beam
! Combined flux in latest and established models = 0.495627 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 46 components and 0.495627 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.253869Jy  sigma=0.001415
! Fit after  self-cal, rms=0.253854Jy  sigma=0.001415
! 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.397 mas, bmaj=2.974 mas, bpa=0.06566 degrees
! Estimated noise=298.101 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.0110562 Jy
! Component: 100  -  total flux cleaned = 0.0176464 Jy
! Component: 150  -  total flux cleaned = 0.0220896 Jy
! Component: 200  -  total flux cleaned = 0.0251927 Jy
! Total flux subtracted in 200 components = 0.0251927 Jy
! Clean residual min=-0.002778 max=0.003772 Jy/beam
! Clean residual mean=0.000358 rms=0.000743 Jy/beam
! Combined flux in latest and established models = 0.52082 Jy
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 71 components and 0.52082 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.253323Jy  sigma=0.001408
! Fit after  self-cal, rms=0.253276Jy  sigma=0.001408
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.01     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.95     KK        0.86     KP        1.04     
!   MA        1.00*    MC        1.00*    MK        1.08     NL        1.00     
!   NY        1.01     OV        1.03     PT        0.99     SC        1.04     
!   TS        1.10     WF        0.94     WZ        1.00     LA        1.02     
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.99     GC        1.07     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        0.96     KP        1.00     
!   MA        1.00*    MC        1.00*    MK        1.01     NL        0.99     
!   NY        1.02     OV        0.99     PT        0.99     SC        1.03     
!   TS        0.98     WF        0.96     WZ        1.05     LA        1.01     
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.92     FD        0.93     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        0.90     KK        0.99     KP        0.83     
!   MA        1.00*    MC        1.00*    MK        1.03     NL        0.95     
!   NY        0.96     OV        1.00     PT        0.92     SC        1.07     
!   TS        1.00*    WF        0.95     WZ        0.87     LA        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.94     FD        0.95     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        0.98     KP        0.98     
!   MA        1.00*    MC        1.00*    MK        1.00     NL        0.98     
!   NY        1.00     OV        0.96     PT        0.93     SC        1.07     
!   TS        0.96     WF        0.99     WZ        0.97     LA        1.02     
! 
! 
! Correcting IF 2.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.05     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        1.03     KP        1.04     
!   MA        1.00*    MC        1.00*    MK        1.03     NL        1.02     
!   NY        0.94     OV        1.01     PT        0.98     SC        1.08     
!   TS        1.18     WF        1.06     WZ        0.99     LA        0.96     
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.01     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.03     KK        1.02     KP        0.97     
!   MA        1.00*    MC        1.00*    MK        0.96     NL        1.02     
!   NY        1.01     OV        0.99     PT        1.00     SC        1.05     
!   TS        1.01     WF        0.98     WZ        1.05     LA        0.95     
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.92     FD        0.96     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        0.99     KP        0.90     
!   MA        1.00*    MC        1.00*    MK        0.97     NL        0.96     
!   NY        0.98     OV        0.99     PT        0.94     SC        1.01     
!   TS        1.00*    WF        0.95     WZ        0.89     LA        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.93     FD        0.96     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        1.07     KK        0.98     KP        0.95     
!   MA        1.00*    MC        1.00*    MK        0.93     NL        0.99     
!   NY        0.98     OV        0.95     PT        0.94     SC        1.08     
!   TS        1.04     WF        0.96     WZ        0.96     LA        0.96     
! 
! 
! Correcting IF 3.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        1.04     GC        0.96     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        0.93     KP        1.03     
!   MA        1.00*    MC        1.00*    MK        1.00     NL        0.97     
!   NY        1.02     OV        1.06     PT        0.97     SC        1.08     
!   TS        1.14     WF        1.01     WZ        1.00     LA        1.01     
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.01     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.01     KP        0.99     
!   MA        1.00*    MC        1.00*    MK        0.96     NL        0.98     
!   NY        0.99     OV        1.02     PT        0.99     SC        1.06     
!   TS        1.00     WF        1.00     WZ        1.09     LA        1.01     
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.92     FD        0.92     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        0.96     KP        0.94     
!   MA        1.00*    MC        1.00*    MK        0.99     NL        0.95     
!   NY        0.99     OV        1.02     PT        0.92     SC        1.04     
!   TS        1.00*    WF        0.93     WZ        0.81     LA        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.92     FD        0.98     GC        1.10     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        0.96     KP        0.93     
!   MA        1.00*    MC        1.00*    MK        0.95     NL        0.96     
!   NY        0.97     OV        0.97     PT        0.93     SC        1.08     
!   TS        0.98     WF        1.07     WZ        1.00     LA        1.00     
! 
! 
! Correcting IF 4.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.03     GC        0.96     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        1.13     KP        1.01     
!   MA        1.00*    MC        1.00*    MK        1.07     NL        1.00     
!   NY        1.03     OV        1.01     PT        1.00     SC        1.06     
!   TS        1.16     WF        1.01     WZ        0.99     LA        1.03     
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.01     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.02     KP        0.99     
!   MA        1.00*    MC        1.00*    MK        1.00     NL        0.99     
!   NY        0.96     OV        1.00     PT        1.04     SC        1.03     
!   TS        1.03     WF        1.08     WZ        1.06     LA        1.01     
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        0.95     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        0.99     KP        0.94     
!   MA        1.00*    MC        1.00*    MK        1.07     NL        0.93     
!   NY        0.99     OV        0.97     PT        0.92     SC        1.00     
!   TS        1.00*    WF        0.90     WZ        0.87     LA        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.96     GC        1.07     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        0.98     KP        0.99     
!   MA        1.00*    MC        1.00*    MK        0.99     NL        0.93     
!   NY        0.96     OV        0.98     PT        0.97     SC        1.11     
!   TS        0.90     WF        0.98     WZ        1.00     LA        1.05     
! 
! 
! Fit before self-cal, rms=0.253276Jy  sigma=0.001408
! Fit after  self-cal, rms=0.253639Jy  sigma=0.001398
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.415 mas, bmaj=2.985 mas, bpa=0.06681 degrees
! Estimated noise=300.074 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 (-9.5, -1.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00424665 Jy
! Component: 100  -  total flux cleaned = 0.00612104 Jy
! Component: 150  -  total flux cleaned = 0.00716199 Jy
! Component: 200  -  total flux cleaned = 0.00760895 Jy
! Total flux subtracted in 200 components = 0.00760895 Jy
! Clean residual min=-0.002039 max=0.003195 Jy/beam
! Clean residual mean=0.000274 rms=0.000616 Jy/beam
! Combined flux in latest and established models = 0.528429 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 90 components and 0.528429 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.253548Jy  sigma=0.001397
! Fit after  self-cal, rms=0.253553Jy  sigma=0.001397
! Inverting map 
! Added new window around map position (-20.5, 14.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00269753 Jy
! Component: 100  -  total flux cleaned = 0.00358363 Jy
! Component: 150  -  total flux cleaned = 0.00426669 Jy
! Component: 200  -  total flux cleaned = 0.00480747 Jy
! Total flux subtracted in 200 components = 0.00480747 Jy
! Clean residual min=-0.002062 max=0.002868 Jy/beam
! Clean residual mean=0.000233 rms=0.000599 Jy/beam
! Combined flux in latest and established models = 0.533237 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 100 components and 0.533237 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.253502Jy  sigma=0.001396
! Fit after  self-cal, rms=0.253497Jy  sigma=0.001396
! 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.253497Jy  sigma=0.001396
! Fit after  self-cal, rms=0.248354Jy  sigma=0.001385
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.418 mas, bmaj=2.984 mas, bpa=-0.1899 degrees
! Estimated noise=300.482 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00233861 Jy
! Component: 100  -  total flux cleaned = 0.00285786 Jy
! Component: 150  -  total flux cleaned = 0.00315634 Jy
! Component: 200  -  total flux cleaned = 0.0035425 Jy
! Total flux subtracted in 200 components = 0.0035425 Jy
! Clean residual min=-0.001702 max=0.002047 Jy/beam
! Clean residual mean=0.000253 rms=0.000434 Jy/beam
! Combined flux in latest and established models = 0.536779 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 110 components and 0.536779 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.248311Jy  sigma=0.001384
! Fit after  self-cal, rms=0.248355Jy  sigma=0.001384
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 (-21, -3.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00165054 Jy
! Component: 100  -  total flux cleaned = 0.00227922 Jy
! Component: 150  -  total flux cleaned = 0.00275834 Jy
! Component: 200  -  total flux cleaned = 0.00303991 Jy
! Total flux subtracted in 200 components = 0.00303991 Jy
! Clean residual min=-0.001707 max=0.001722 Jy/beam
! Clean residual mean=0.000225 rms=0.000427 Jy/beam
! Combined flux in latest and established models = 0.539819 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 126 components and 0.539819 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.248330Jy  sigma=0.001384
! Fit after  self-cal, rms=0.248323Jy  sigma=0.001384
! 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.248323Jy  sigma=0.001384
! Fit after  self-cal, rms=0.244910Jy  sigma=0.001384
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.419 mas, bmaj=2.983 mas, bpa=-0.3588 degrees
! Estimated noise=300.51 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0010851 Jy
! Component: 100  -  total flux cleaned = 0.00164727 Jy
! Component: 150  -  total flux cleaned = 0.00198469 Jy
! Component: 200  -  total flux cleaned = 0.00212325 Jy
! Total flux subtracted in 200 components = 0.00212325 Jy
! Clean residual min=-0.001613 max=0.001731 Jy/beam
! Clean residual mean=0.000213 rms=0.000413 Jy/beam
! Combined flux in latest and established models = 0.541942 Jy
selfcal
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 136 components and 0.541942 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.244892Jy  sigma=0.001383
! Fit after  self-cal, rms=0.244906Jy  sigma=0.001383
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.000330246 Jy
! Component: 100  -  total flux cleaned = 0.000427628 Jy
! Component: 150  -  total flux cleaned = 0.00048915 Jy
! Component: 200  -  total flux cleaned = 0.000576374 Jy
! Total flux subtracted in 200 components = 0.000576374 Jy
! Clean residual min=-0.001620 max=0.001700 Jy/beam
! Clean residual mean=0.000208 rms=0.000412 Jy/beam
! Combined flux in latest and established models = 0.542519 Jy
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 140 components and 0.542519 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.244896Jy  sigma=0.001383
! Fit after  self-cal, rms=0.244893Jy  sigma=0.001383
! 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.244893Jy  sigma=0.001383
! Fit after  self-cal, rms=0.244019Jy  sigma=0.001383
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.844 mas, bmaj=8.407 mas, bpa=81.44 degrees
! Estimated noise=468.369 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00179042 Jy
! Component: 100  -  total flux cleaned = 0.00262743 Jy
! Component: 150  -  total flux cleaned = 0.00286497 Jy
! Component: 200  -  total flux cleaned = 0.00296474 Jy
! Total flux subtracted in 200 components = 0.00296474 Jy
! Clean residual min=-0.001209 max=0.003360 Jy/beam
! Clean residual mean=0.000686 rms=0.000652 Jy/beam
! Combined flux in latest and established models = 0.545484 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 157 components and 0.545484 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.244019Jy  sigma=0.001383
! Fit after  self-cal, rms=0.244026Jy  sigma=0.001383
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 (-56, 18).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00356481 Jy
! Component: 100  -  total flux cleaned = 0.00584362 Jy
! Component: 150  -  total flux cleaned = 0.00748297 Jy
! Component: 200  -  total flux cleaned = 0.00868913 Jy
! Total flux subtracted in 200 components = 0.00868913 Jy
! Clean residual min=-0.001122 max=0.001921 Jy/beam
! Clean residual mean=0.000421 rms=0.000503 Jy/beam
! Combined flux in latest and established models = 0.554173 Jy
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 197 components and 0.554173 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.244014Jy  sigma=0.001383
! Fit after  self-cal, rms=0.244008Jy  sigma=0.001383
! 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.42 mas, bmaj=2.982 mas, bpa=-0.4666 degrees
! Estimated noise=300.62 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.42 x 2.982 at -0.4666 degrees (North through East)
! Clean map  min=-0.0011926  max=0.37163 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.965 mas, bmaj=2.466 mas, bpa=2.618 degrees
! Estimated noise=551.069 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.265097 Jy
! Component: 100  -  total flux cleaned = 0.344353 Jy
! Component: 150  -  total flux cleaned = 0.389598 Jy
! Component: 200  -  total flux cleaned = 0.419965 Jy
! Total flux subtracted in 200 components = 0.419965 Jy
! Clean residual min=-0.004470 max=0.016764 Jy/beam
! Clean residual mean=0.000009 rms=0.001267 Jy/beam
! Combined flux in latest and established models = 0.419966 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 0.419966 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.42 mas, bmaj=2.982 mas, bpa=-0.4666 degrees
! Estimated noise=300.62 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.0390344 Jy
! Component: 100  -  total flux cleaned = 0.0622213 Jy
! Component: 150  -  total flux cleaned = 0.0774474 Jy
! Component: 200  -  total flux cleaned = 0.0879233 Jy
! Total flux subtracted in 200 components = 0.0879233 Jy
! Clean residual min=-0.001776 max=0.005801 Jy/beam
! Clean residual mean=0.000529 rms=0.000692 Jy/beam
! Combined flux in latest and established models = 0.507889 Jy
! Adding 56 model components to the UV plane model.
! The established model now contains 66 components and 0.507889 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00737328 Jy
! Component: 100  -  total flux cleaned = 0.0127409 Jy
! Component: 150  -  total flux cleaned = 0.016857 Jy
! Component: 200  -  total flux cleaned = 0.0201869 Jy
! Total flux subtracted in 200 components = 0.0201869 Jy
! Clean residual min=-0.001553 max=0.002621 Jy/beam
! Clean residual mean=0.000345 rms=0.000470 Jy/beam
! Combined flux in latest and established models = 0.528076 Jy
! Adding 45 model components to the UV plane model.
! The established model now contains 97 components and 0.528076 Jy
! Inverting map 
! Added new window around map position (-13.5, -3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00290242 Jy
! Component: 100  -  total flux cleaned = 0.00531415 Jy
! Component: 150  -  total flux cleaned = 0.00738946 Jy
! Component: 200  -  total flux cleaned = 0.00889475 Jy
! Total flux subtracted in 200 components = 0.00889475 Jy
! Clean residual min=-0.001469 max=0.001859 Jy/beam
! Clean residual mean=0.000265 rms=0.000425 Jy/beam
! Combined flux in latest and established models = 0.536971 Jy
! Adding 56 model components to the UV plane model.
! The established model now contains 128 components and 0.536971 Jy
! Inverting map 
! Added new window around map position (62.5, 18).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00167792 Jy
! Component: 100  -  total flux cleaned = 0.00299951 Jy
! Component: 150  -  total flux cleaned = 0.0042373 Jy
! Component: 200  -  total flux cleaned = 0.00533782 Jy
! Total flux subtracted in 200 components = 0.00533782 Jy
! Clean residual min=-0.001406 max=0.001658 Jy/beam
! Clean residual mean=0.000220 rms=0.000408 Jy/beam
! Combined flux in latest and established models = 0.542309 Jy
! Adding 60 model components to the UV plane model.
! The established model now contains 147 components and 0.542309 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.844 mas, bmaj=8.407 mas, bpa=81.44 degrees
! Estimated noise=468.369 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00337451 Jy
! Component: 100  -  total flux cleaned = 0.00585177 Jy
! Component: 150  -  total flux cleaned = 0.00783895 Jy
! Component: 200  -  total flux cleaned = 0.00947466 Jy
! Total flux subtracted in 200 components = 0.00947466 Jy
! Clean residual min=-0.001029 max=0.002169 Jy/beam
! Clean residual mean=0.000518 rms=0.000521 Jy/beam
! Combined flux in latest and established models = 0.551783 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.0013548 Jy
! Component: 100  -  total flux cleaned = 0.00247883 Jy
! Component: 150  -  total flux cleaned = 0.00341726 Jy
! Component: 200  -  total flux cleaned = 0.00420471 Jy
! Total flux subtracted in 200 components = 0.00420471 Jy
! Clean residual min=-0.001217 max=0.002017 Jy/beam
! Clean residual mean=0.000383 rms=0.000499 Jy/beam
! Combined flux in latest and established models = 0.555988 Jy
! Adding 76 model components to the UV plane model.
! The established model now contains 216 components and 0.555988 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.42 mas, bmaj=2.982 mas, bpa=-0.4666 degrees
! Estimated noise=300.62 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000782971 Jy
! Component: 100  -  total flux cleaned = -0.000781473 Jy
! Component: 150  -  total flux cleaned = -0.000737951 Jy
! Component: 200  -  total flux cleaned = -0.000697768 Jy
! Total flux subtracted in 200 components = -0.000697768 Jy
! Clean residual min=-0.001420 max=0.001486 Jy/beam
! Clean residual mean=0.000111 rms=0.000387 Jy/beam
! Combined flux in latest and established models = 0.55529 Jy
selfcal
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 232 components and 0.55529 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.243986Jy  sigma=0.001383
! Fit after  self-cal, rms=0.243982Jy  sigma=0.001383
wmodel J0102+5824_S_2000_05_22_pus_map.mod
! Writing 232 model components to file: J0102+5824_S_2000_05_22_pus_map.mod
wobs J0102+5824_S_2000_05_22_pus_uvs.fits
! Writing UV FITS file: J0102+5824_S_2000_05_22_pus_uvs.fits
wwins J0102+5824_S_2000_05_22_pus_map.win
! wwins: Wrote 9 windows to J0102+5824_S_2000_05_22_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.00058882 Jy
! Component: 100  -  total flux cleaned = 0.00114304 Jy
! Component: 150  -  total flux cleaned = 0.00165383 Jy
! Component: 200  -  total flux cleaned = 0.00207826 Jy
! Component: 250  -  total flux cleaned = 0.00244594 Jy
! Component: 300  -  total flux cleaned = 0.00280762 Jy
! Component: 350  -  total flux cleaned = 0.00314014 Jy
! Component: 400  -  total flux cleaned = 0.00346815 Jy
! Component: 450  -  total flux cleaned = 0.00376886 Jy
! Component: 500  -  total flux cleaned = 0.00399758 Jy
! Component: 550  -  total flux cleaned = 0.00429192 Jy
! Component: 600  -  total flux cleaned = 0.0045384 Jy
! Component: 650  -  total flux cleaned = 0.00476025 Jy
! Component: 700  -  total flux cleaned = 0.00495831 Jy
! Component: 750  -  total flux cleaned = 0.00519821 Jy
! Component: 800  -  total flux cleaned = 0.00532793 Jy
! Component: 850  -  total flux cleaned = 0.00552127 Jy
! Component: 900  -  total flux cleaned = 0.0056492 Jy
! Component: 950  -  total flux cleaned = 0.00583972 Jy
! Component: 1000  -  total flux cleaned = 0.00598697 Jy
! Component: 1050  -  total flux cleaned = 0.00615397 Jy
! Component: 1100  -  total flux cleaned = 0.00625777 Jy
! Component: 1150  -  total flux cleaned = 0.00640244 Jy
! Component: 1200  -  total flux cleaned = 0.00656653 Jy
! Component: 1250  -  total flux cleaned = 0.00672954 Jy
! Component: 1300  -  total flux cleaned = 0.00683079 Jy
! Component: 1350  -  total flux cleaned = 0.00691139 Jy
! Component: 1400  -  total flux cleaned = 0.00703169 Jy
! Component: 1450  -  total flux cleaned = 0.00711162 Jy
! Component: 1500  -  total flux cleaned = 0.00721089 Jy
! Component: 1550  -  total flux cleaned = 0.00730969 Jy
! Component: 1600  -  total flux cleaned = 0.00742768 Jy
! Component: 1650  -  total flux cleaned = 0.00752543 Jy
! Component: 1700  -  total flux cleaned = 0.00756436 Jy
! Component: 1750  -  total flux cleaned = 0.00766124 Jy
! Component: 1800  -  total flux cleaned = 0.00773846 Jy
! Component: 1850  -  total flux cleaned = 0.00781529 Jy
! Component: 1900  -  total flux cleaned = 0.00787263 Jy
! Component: 1950  -  total flux cleaned = 0.00794886 Jy
! Component: 2000  -  total flux cleaned = 0.0080247 Jy
! Total flux subtracted in 2048 components = 0.00810015 Jy
! Clean residual min=-0.000970 max=0.001132 Jy/beam
! Clean residual mean=0.000042 rms=0.000351 Jy/beam
! Combined flux in latest and established models = 0.56339 Jy
keep
! Adding 181 model components to the UV plane model.
! The established model now contains 413 components and 0.56339 Jy
![Exited script file: muppet]
wmap "J0102+5824_S_2000_05_22_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.42 x 2.982 at -0.4666 degrees (North through East)
! Clean map  min=-0.0013877  max=0.37221 Jy/beam
! Writing clean map to FITS file: J0102+5824_S_2000_05_22_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.372212 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000351493 
device "J0102+5824_S_2000_05_22_pus\_map.eps/VPS"
! Attempting to open device: 'J0102+5824_S_2000_05_22_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.283301 0.283301 0.566601 1.1332 2.26641 4.53281 9.06562 18.1312 36.2625 72.525
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.001 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.372 
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.42 x 2.982 at -0.4666 degrees (North through East)
! Clean map  min=-0.0013877  max=0.37221 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0102+5824_S_2000_05_22_pus\_map.gif/vgif"
! Attempting to open device: 'J0102+5824_S_2000_05_22_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0102+5824_S_2000_05_22_pus_uvs.log closed on Tue Nov 20 11:57:15 2007