! Started logfile: J0646+4451_S_2001_10_29_pus_uvs.log on Wed Feb 27 15:15:34 2008
obs J0646+4451_S_2001_10_29_pus_uva.fits
! Reading UV FITS file: J0646+4451_S_2001_10_29_pus_uva.fits
! AN table 1: 47 integrations on 153 of 153 possible baselines.
! AN table 2: 21 integrations on 153 of 153 possible baselines.
! AN table 3: 41 integrations on 153 of 153 possible baselines.
! AN table 4: 63 integrations on 153 of 153 possible baselines.
! AN table 5: 49 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.15914 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0646+4451
! 
! 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 21524 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 J0646+4451_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 341 telescope corrections were flagged in sub-array 1.
!  A total of 177 telescope corrections were flagged in sub-array 2.
!  A total of 501 telescope corrections were flagged in sub-array 3.
!  A total of 935 telescope corrections were flagged in sub-array 4.
!  A total of 665 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 341 telescope corrections were flagged in sub-array 1.
!  A total of 177 telescope corrections were flagged in sub-array 2.
!  A total of 501 telescope corrections were flagged in sub-array 3.
!  A total of 935 telescope corrections were flagged in sub-array 4.
!  A total of 665 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 341 telescope corrections were flagged in sub-array 1.
!  A total of 177 telescope corrections were flagged in sub-array 2.
!  A total of 501 telescope corrections were flagged in sub-array 3.
!  A total of 935 telescope corrections were flagged in sub-array 4.
!  A total of 665 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 398 telescope corrections were flagged in sub-array 1.
!  A total of 177 telescope corrections were flagged in sub-array 2.
!  A total of 567 telescope corrections were flagged in sub-array 3.
!  A total of 1074 telescope corrections were flagged in sub-array 4.
!  A total of 688 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.791222Jy  sigma=0.005498
! Fit after  self-cal, rms=0.331972Jy  sigma=0.001993
! 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.719 mas, bmaj=2.648 mas, bpa=3.737 degrees
! Estimated noise=1184.99 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.604368 Jy
! Component: 100  -  total flux cleaned = 0.736736 Jy
! Total flux subtracted in 100 components = 0.736736 Jy
! Clean residual min=-0.015166 max=0.041614 Jy/beam
! Clean residual mean=0.000067 rms=0.004628 Jy/beam
! Combined flux in latest and established models = 0.736736 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 0.736736 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.288435Jy  sigma=0.001686
! Fit after  self-cal, rms=0.288411Jy  sigma=0.001686
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0458465 Jy
! Component: 100  -  total flux cleaned = 0.0734694 Jy
! Total flux subtracted in 100 components = 0.0734694 Jy
! Clean residual min=-0.014080 max=0.027065 Jy/beam
! Clean residual mean=0.000046 rms=0.003976 Jy/beam
! Combined flux in latest and established models = 0.810205 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 17 components and 0.810205 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.273731Jy  sigma=0.001539
! Fit after  self-cal, rms=0.273639Jy  sigma=0.001539
! Inverting map 
! Added new window around map position (4, -1).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0257781 Jy
! Component: 100  -  total flux cleaned = 0.042738 Jy
! Total flux subtracted in 100 components = 0.042738 Jy
! Clean residual min=-0.013556 max=0.017238 Jy/beam
! Clean residual mean=0.000035 rms=0.003749 Jy/beam
! Combined flux in latest and established models = 0.852943 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 26 components and 0.852943 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.268881Jy  sigma=0.001492
! Fit after  self-cal, rms=0.268670Jy  sigma=0.001490
! 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.089 mas, bmaj=3.158 mas, bpa=8.194 degrees
! Estimated noise=731.039 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.031151 Jy
! Component: 100  -  total flux cleaned = 0.0467028 Jy
! Component: 150  -  total flux cleaned = 0.0556309 Jy
! Component: 200  -  total flux cleaned = 0.0580635 Jy
! Total flux subtracted in 200 components = 0.0580635 Jy
! Clean residual min=-0.011262 max=0.014567 Jy/beam
! Clean residual mean=0.000131 rms=0.002845 Jy/beam
! Combined flux in latest and established models = 0.911007 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 40 components and 0.911007 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.265567Jy  sigma=0.001455
! Fit after  self-cal, rms=0.265425Jy  sigma=0.001454
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.00*    GG        1.00*    HH        1.04     
!   HN        1.01     KK        1.16     KP        1.07     LA        1.00     
!   MA        1.12     MC        1.06     MK        1.04     NL        0.97     
!   OV        1.01     PT        1.01     SC        0.99     TS        1.00*    
!   WF        1.00     WZ        0.94     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.89     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.87     KK        1.03     KP        1.33     LA        0.99     
!   MA        1.00*    MC        1.00*    MK        1.01     NL        0.99     
!   OV        0.93     PT        0.97     SC        1.38     TS        0.96     
!   WF        0.94     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.98     KK        1.00*    KP        1.12     LA        1.05     
!   MA        0.93     MC        1.09     MK        1.00     NL        1.01     
!   OV        1.01     PT        1.04     SC        1.00     TS        1.01     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 81 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.09     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.10     KP        1.00*    LA        1.00*    
!   MA        0.79     MC        0.97     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.11     
!   WF        1.00*    WZ        0.99     
! 
!  A total of 66 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.09     FD        1.00*    GG        1.00*    HH        1.00     
!   HN        1.01     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.50     MC        0.99     MK        1.00*    NL        1.06     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.11     
!   WF        0.93     WZ        0.94     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.00*    GG        1.00*    HH        1.01     
!   HN        0.98     KK        1.13     KP        1.05     LA        0.97     
!   MA        1.04     MC        1.11     MK        1.05     NL        0.98     
!   OV        1.01     PT        0.99     SC        0.99     TS        1.00*    
!   WF        1.06     WZ        0.92     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.92     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.03     KK        1.00     KP        0.99     LA        0.96     
!   MA        1.00*    MC        1.00*    MK        1.03     NL        0.99     
!   OV        0.96     PT        0.96     SC        1.32     TS        0.99     
!   WF        1.02     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.83     KK        1.00*    KP        0.94     LA        1.01     
!   MA        0.98     MC        1.41     MK        1.02     NL        1.03     
!   OV        1.04     PT        1.04     SC        1.13     TS        1.02     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 81 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.03     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.09     KP        1.00*    LA        1.00*    
!   MA        0.79     MC        0.99     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.08     
!   WF        1.00*    WZ        1.03     
! 
!  A total of 66 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        1.02     
!   HN        0.99     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.33     MC        2.57     MK        1.00*    NL        1.07     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.13     
!   WF        1.07     WZ        0.94     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.00*    GG        1.00*    HH        1.00     
!   HN        0.98     KK        1.11     KP        0.98     LA        0.97     
!   MA        0.99     MC        0.98     MK        0.98     NL        0.96     
!   OV        0.96     PT        1.03     SC        0.96     TS        1.00*    
!   WF        1.03     WZ        0.91     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.92     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.96     KK        1.00     KP        0.97     LA        0.90     
!   MA        1.00*    MC        1.00*    MK        0.95     NL        0.94     
!   OV        0.95     PT        0.93     SC        1.40     TS        0.96     
!   WF        1.08     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.10     KK        1.00*    KP        1.04     LA        0.99     
!   MA        1.19     MC        1.13     MK        0.93     NL        1.00     
!   OV        1.03     PT        1.00     SC        1.02     TS        0.99     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 81 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.10     KP        1.00*    LA        1.00*    
!   MA        0.96     MC        0.92     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.09     
!   WF        1.00*    WZ        0.99     
! 
!  A total of 66 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.04     FD        1.00*    GG        1.00*    HH        0.99     
!   HN        0.99     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.92     MC        0.94     MK        1.00*    NL        1.03     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.13     
!   WF        0.98     WZ        0.96     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.00*    GG        1.00*    HH        0.92     
!   HN        0.97     KK        1.06     KP        0.96     LA        0.97     
!   MA        1.00*    MC        1.00*    MK        1.00     NL        0.98     
!   OV        0.98     PT        0.99     SC        0.96     TS        1.00*    
!   WF        1.00     WZ        0.91     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.88     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.99     KK        0.98     KP        1.04     LA        0.97     
!   MA        1.00*    MC        1.00*    MK        0.97     NL        1.01     
!   OV        0.92     PT        0.86     SC        1.29     TS        0.98     
!   WF        0.99     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.02     LA        1.01     
!   MA        1.00*    MC        1.00*    MK        0.96     NL        1.00     
!   OV        1.01     PT        1.02     SC        1.00*    TS        0.97     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.08     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.00*    TS        1.03     
!   WF        1.00*    WZ        1.00     
! 
!  A total of 66 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        0.95     
!   HN        1.09     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.02     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.09     
!   WF        1.01     WZ        0.97     
! 
! 
! Fit before self-cal, rms=0.265425Jy  sigma=0.001454
! Fit after  self-cal, rms=0.264617Jy  sigma=0.001326
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.082 mas, bmaj=3.154 mas, bpa=8.407 degrees
! Estimated noise=738.017 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.00496466 Jy
! Component: 100  -  total flux cleaned = -0.00550122 Jy
! Component: 150  -  total flux cleaned = -0.00594298 Jy
! Component: 200  -  total flux cleaned = -0.00631519 Jy
! Total flux subtracted in 200 components = -0.00631519 Jy
! Clean residual min=-0.005368 max=0.006010 Jy/beam
! Clean residual mean=0.000069 rms=0.001315 Jy/beam
! Combined flux in latest and established models = 0.904692 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 49 components and 0.904692 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.264427Jy  sigma=0.001325
! Fit after  self-cal, rms=0.264661Jy  sigma=0.001325
! 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.264661Jy  sigma=0.001325
! Fit after  self-cal, rms=0.261950Jy  sigma=0.001302
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.085 mas, bmaj=3.159 mas, bpa=8.637 degrees
! Estimated noise=737.228 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00119202 Jy
! Component: 100  -  total flux cleaned = -0.00163362 Jy
! Component: 150  -  total flux cleaned = -0.00208189 Jy
! Component: 200  -  total flux cleaned = -0.0024516 Jy
! Total flux subtracted in 200 components = -0.0024516 Jy
! Clean residual min=-0.003744 max=0.004426 Jy/beam
! Clean residual mean=0.000026 rms=0.000965 Jy/beam
! Combined flux in latest and established models = 0.90224 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 54 components and 0.90224 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.261840Jy  sigma=0.001301
! Fit after  self-cal, rms=0.261849Jy  sigma=0.001301
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 (34, 63.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00379002 Jy
! Component: 100  -  total flux cleaned = 0.0041815 Jy
! Component: 150  -  total flux cleaned = 0.00410312 Jy
! Component: 200  -  total flux cleaned = 0.00410435 Jy
! Total flux subtracted in 200 components = 0.00410435 Jy
! Clean residual min=-0.003740 max=0.003783 Jy/beam
! Clean residual mean=-0.000046 rms=0.000945 Jy/beam
! Combined flux in latest and established models = 0.906344 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 66 components and 0.906344 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.261765Jy  sigma=0.001301
! Fit after  self-cal, rms=0.261775Jy  sigma=0.001301
! 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.261775Jy  sigma=0.001301
! Fit after  self-cal, rms=0.262018Jy  sigma=0.001300
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.087 mas, bmaj=3.161 mas, bpa=8.641 degrees
! Estimated noise=737.117 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -1.23703e-05 Jy
! Component: 100  -  total flux cleaned = -7.92718e-05 Jy
! Component: 150  -  total flux cleaned = -0.000211633 Jy
! Component: 200  -  total flux cleaned = -0.00033641 Jy
! Total flux subtracted in 200 components = -0.00033641 Jy
! Clean residual min=-0.003758 max=0.003815 Jy/beam
! Clean residual mean=-0.000031 rms=0.000926 Jy/beam
! Combined flux in latest and established models = 0.906008 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 69 components and 0.906008 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.261971Jy  sigma=0.001300
! Fit after  self-cal, rms=0.261979Jy  sigma=0.001300
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.000113285 Jy
! Component: 100  -  total flux cleaned = -2.6194e-06 Jy
! Component: 150  -  total flux cleaned = -0.000169383 Jy
! Component: 200  -  total flux cleaned = -0.00032332 Jy
! Total flux subtracted in 200 components = -0.00032332 Jy
! Clean residual min=-0.003709 max=0.003757 Jy/beam
! Clean residual mean=-0.000026 rms=0.000920 Jy/beam
! Combined flux in latest and established models = 0.905685 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 70 components and 0.905684 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.261950Jy  sigma=0.001300
! Fit after  self-cal, rms=0.261952Jy  sigma=0.001300
! 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.261952Jy  sigma=0.001300
! Fit after  self-cal, rms=0.262022Jy  sigma=0.001300
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.921 mas, bmaj=9.78 mas, bpa=78.16 degrees
! Estimated noise=1107.04 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000297288 Jy
! Component: 100  -  total flux cleaned = -0.000274601 Jy
! Component: 150  -  total flux cleaned = -0.000278786 Jy
! Component: 200  -  total flux cleaned = -0.000262995 Jy
! Total flux subtracted in 200 components = -0.000262995 Jy
! Clean residual min=-0.004709 max=0.003691 Jy/beam
! Clean residual mean=-0.000091 rms=0.001203 Jy/beam
! Combined flux in latest and established models = 0.905421 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 81 components and 0.905421 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.262024Jy  sigma=0.001300
! Fit after  self-cal, rms=0.262022Jy  sigma=0.001300
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 = 3.16148e-05 Jy
! Component: 100  -  total flux cleaned = 4.79116e-05 Jy
! Component: 150  -  total flux cleaned = 7.89034e-05 Jy
! Component: 200  -  total flux cleaned = 0.000106606 Jy
! Total flux subtracted in 200 components = 0.000106606 Jy
! Clean residual min=-0.004726 max=0.003702 Jy/beam
! Clean residual mean=-0.000097 rms=0.001205 Jy/beam
! Combined flux in latest and established models = 0.905528 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 82 components and 0.905528 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.262024Jy  sigma=0.001300
! Fit after  self-cal, rms=0.262022Jy  sigma=0.001300
! 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.088 mas, bmaj=3.162 mas, bpa=8.645 degrees
! Estimated noise=736.949 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.088 x 3.162 at 8.645 degrees (North through East)
! Clean map  min=-0.0034324  max=0.79836 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.262022Jy  sigma=0.001300
! Fit after  self-cal, rms=0.280662Jy  sigma=0.001215
! Inverting map and beam 
! Estimated beam: bmin=2.089 mas, bmaj=3.162 mas, bpa=8.631 degrees
! Estimated noise=736.775 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00112717 Jy
! Component: 100  -  total flux cleaned = -0.00136429 Jy
! Component: 150  -  total flux cleaned = -0.00152328 Jy
! Component: 200  -  total flux cleaned = -0.00157115 Jy
! Total flux subtracted in 200 components = -0.00157115 Jy
! Clean residual min=-0.003858 max=0.003804 Jy/beam
! Clean residual mean=-0.000042 rms=0.000907 Jy/beam
! Combined flux in latest and established models = 0.903957 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 87 components and 0.903957 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.280630Jy  sigma=0.001215
! Fit after  self-cal, rms=0.280639Jy  sigma=0.001215
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -3.28083e-05 Jy
! Component: 100  -  total flux cleaned = -0.000123989 Jy
! Component: 150  -  total flux cleaned = -0.00016851 Jy
! Component: 200  -  total flux cleaned = -0.000208964 Jy
! Total flux subtracted in 200 components = -0.000208964 Jy
! Clean residual min=-0.003805 max=0.003818 Jy/beam
! Clean residual mean=-0.000038 rms=0.000903 Jy/beam
! Combined flux in latest and established models = 0.903748 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 89 components and 0.903748 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.280622Jy  sigma=0.001215
! Fit after  self-cal, rms=0.280625Jy  sigma=0.001215
! 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.280625Jy  sigma=0.001215
! Fit after  self-cal, rms=0.280782Jy  sigma=0.001215
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.731 mas, bmaj=2.668 mas, bpa=4.337 degrees
! Estimated noise=1224.06 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.61609 Jy
! Component: 100  -  total flux cleaned = 0.75059 Jy
! Component: 150  -  total flux cleaned = 0.795365 Jy
! Component: 200  -  total flux cleaned = 0.822984 Jy
! Total flux subtracted in 200 components = 0.822984 Jy
! Clean residual min=-0.006615 max=0.014626 Jy/beam
! Clean residual mean=0.000031 rms=0.001818 Jy/beam
! Combined flux in latest and established models = 0.822984 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 12 model components to the UV plane model.
! The established model now contains 12 components and 0.822984 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.09 mas, bmaj=3.163 mas, bpa=8.629 degrees
! Estimated noise=736.633 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.0325927 Jy
! Component: 100  -  total flux cleaned = 0.0498796 Jy
! Component: 150  -  total flux cleaned = 0.0599593 Jy
! Component: 200  -  total flux cleaned = 0.0664011 Jy
! Total flux subtracted in 200 components = 0.0664011 Jy
! Clean residual min=-0.004133 max=0.004460 Jy/beam
! Clean residual mean=0.000196 rms=0.001006 Jy/beam
! Combined flux in latest and established models = 0.889385 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 37 components and 0.889385 Jy
! Inverting map 
! Added new window around map position (4, 2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00486266 Jy
! Component: 100  -  total flux cleaned = 0.00836993 Jy
! Component: 150  -  total flux cleaned = 0.0110313 Jy
! Component: 200  -  total flux cleaned = 0.0121471 Jy
! Total flux subtracted in 200 components = 0.0121471 Jy
! Clean residual min=-0.004072 max=0.003946 Jy/beam
! Clean residual mean=-0.000014 rms=0.000920 Jy/beam
! Combined flux in latest and established models = 0.901532 Jy
! Adding 27 model components to the UV plane model.
! The established model now contains 57 components and 0.901532 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.923 mas, bmaj=9.783 mas, bpa=78.15 degrees
! Estimated noise=1105.23 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0009381 Jy
! Component: 100  -  total flux cleaned = 0.00116174 Jy
! Component: 150  -  total flux cleaned = 0.00108202 Jy
! Component: 200  -  total flux cleaned = 0.00101605 Jy
! Total flux subtracted in 200 components = 0.00101605 Jy
! Clean residual min=-0.004693 max=0.003500 Jy/beam
! Clean residual mean=-0.000102 rms=0.001182 Jy/beam
! Combined flux in latest and established models = 0.902548 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 = -5.57512e-05 Jy
! Component: 100  -  total flux cleaned = -0.000104464 Jy
! Component: 150  -  total flux cleaned = -8.45032e-05 Jy
! Component: 200  -  total flux cleaned = -6.49875e-05 Jy
! Total flux subtracted in 200 components = -6.49875e-05 Jy
! Clean residual min=-0.004638 max=0.003500 Jy/beam
! Clean residual mean=-0.000098 rms=0.001175 Jy/beam
! Combined flux in latest and established models = 0.902483 Jy
! Adding 25 model components to the UV plane model.
! The established model now contains 78 components and 0.902483 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.09 mas, bmaj=3.163 mas, bpa=8.629 degrees
! Estimated noise=736.633 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00059328 Jy
! Component: 100  -  total flux cleaned = 0.000517937 Jy
! Component: 150  -  total flux cleaned = 0.000449232 Jy
! Component: 200  -  total flux cleaned = 0.000512222 Jy
! Total flux subtracted in 200 components = 0.000512222 Jy
! Clean residual min=-0.003971 max=0.004066 Jy/beam
! Clean residual mean=-0.000039 rms=0.000902 Jy/beam
! Combined flux in latest and established models = 0.902995 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 88 components and 0.902995 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.280836Jy  sigma=0.001215
! Fit after  self-cal, rms=0.280831Jy  sigma=0.001215
wmodel J0646+4451_S_2001_10_29_pus_map.mod
! Writing 88 model components to file: J0646+4451_S_2001_10_29_pus_map.mod
wobs J0646+4451_S_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J0646+4451_S_2001_10_29_pus_uvs.fits
wwins J0646+4451_S_2001_10_29_pus_map.win
! wwins: Wrote 4 windows to J0646+4451_S_2001_10_29_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000164358 Jy
! Component: 100  -  total flux cleaned = 0.000618795 Jy
! Component: 150  -  total flux cleaned = 0.000924344 Jy
! Component: 200  -  total flux cleaned = 0.00109931 Jy
! Component: 250  -  total flux cleaned = 0.0010426 Jy
! Component: 300  -  total flux cleaned = 0.000877707 Jy
! Component: 350  -  total flux cleaned = 0.000716583 Jy
! Component: 400  -  total flux cleaned = 0.000610748 Jy
! Component: 450  -  total flux cleaned = 0.000402844 Jy
! Component: 500  -  total flux cleaned = 0.000351994 Jy
! Component: 550  -  total flux cleaned = 0.000149792 Jy
! Component: 600  -  total flux cleaned = -4.92739e-05 Jy
! Component: 650  -  total flux cleaned = -0.000147574 Jy
! Component: 700  -  total flux cleaned = -0.000439391 Jy
! Component: 750  -  total flux cleaned = -0.000535102 Jy
! Component: 800  -  total flux cleaned = -0.000725464 Jy
! Component: 850  -  total flux cleaned = -0.000819203 Jy
! Component: 900  -  total flux cleaned = -0.000865479 Jy
! Component: 950  -  total flux cleaned = -0.000911525 Jy
! Component: 1000  -  total flux cleaned = -0.00104896 Jy
! Component: 1050  -  total flux cleaned = -0.00109431 Jy
! Component: 1100  -  total flux cleaned = -0.0011394 Jy
! Component: 1150  -  total flux cleaned = -0.00122944 Jy
! Component: 1200  -  total flux cleaned = -0.00136272 Jy
! Component: 1250  -  total flux cleaned = -0.00131852 Jy
! Component: 1300  -  total flux cleaned = -0.00149401 Jy
! Component: 1350  -  total flux cleaned = -0.00153733 Jy
! Component: 1400  -  total flux cleaned = -0.00158055 Jy
! Component: 1450  -  total flux cleaned = -0.00170924 Jy
! Component: 1500  -  total flux cleaned = -0.00170922 Jy
! Component: 1550  -  total flux cleaned = -0.00183629 Jy
! Component: 1600  -  total flux cleaned = -0.00183626 Jy
! Component: 1650  -  total flux cleaned = -0.00191973 Jy
! Component: 1700  -  total flux cleaned = -0.00200284 Jy
! Component: 1750  -  total flux cleaned = -0.00208535 Jy
! Component: 1800  -  total flux cleaned = -0.00208549 Jy
! Component: 1850  -  total flux cleaned = -0.00220765 Jy
! Component: 1900  -  total flux cleaned = -0.00224794 Jy
! Component: 1950  -  total flux cleaned = -0.00220759 Jy
! Component: 2000  -  total flux cleaned = -0.00228779 Jy
! Total flux subtracted in 2048 components = -0.00232759 Jy
! Clean residual min=-0.002485 max=0.002862 Jy/beam
! Clean residual mean=-0.000012 rms=0.000730 Jy/beam
! Combined flux in latest and established models = 0.900668 Jy
keep
! Adding 161 model components to the UV plane model.
! The established model now contains 249 components and 0.900668 Jy
![Exited script file: muppet]
wmap "J0646+4451_S_2001_10_29_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.09 x 3.163 at 8.629 degrees (North through East)
! Clean map  min=-0.0032272  max=0.79862 Jy/beam
! Writing clean map to FITS file: J0646+4451_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.798616 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000728623 
device "J0646+4451_S_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J0646+4451_S_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.273707 0.273707 0.547414 1.09483 2.18966 4.37931 8.75862 17.5172 35.0345 70.069
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0021 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.798 
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.09 x 3.163 at 8.629 degrees (North through East)
! Clean map  min=-0.0032272  max=0.79862 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0646+4451_S_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J0646+4451_S_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0646+4451_S_2001_10_29_pus_uvs.log closed on Wed Feb 27 15:15:44 2008