! Started logfile: J1436+6336_S_2001_10_29_pus_uvs.log on Thu Feb 28 14:00:39 2008
obs J1436+6336_S_2001_10_29_pus_uva.fits
! Reading UV FITS file: J1436+6336_S_2001_10_29_pus_uva.fits
! AN table 1: 49 integrations on 153 of 153 possible baselines.
! AN table 2: 102 integrations on 153 of 153 possible baselines.
! AN table 3: 585 integrations on 153 of 153 possible baselines.
! AN table 4: 56 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.13015 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1436+6336
! 
! 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 2608 lines of history.
! 
! Reading 63084 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 J1436+6336_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 585 telescope corrections were flagged in sub-array 1.
!  A total of 1836 telescope corrections were flagged in sub-array 2.
!  A total of 7302 telescope corrections were flagged in sub-array 3.
!  A total of 841 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 586 telescope corrections were flagged in sub-array 1.
!  A total of 1836 telescope corrections were flagged in sub-array 2.
!  A total of 7320 telescope corrections were flagged in sub-array 3.
!  A total of 841 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 586 telescope corrections were flagged in sub-array 1.
!  A total of 1836 telescope corrections were flagged in sub-array 2.
!  A total of 7299 telescope corrections were flagged in sub-array 3.
!  A total of 841 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 586 telescope corrections were flagged in sub-array 1.
!  A total of 1836 telescope corrections were flagged in sub-array 2.
!  A total of 7858 telescope corrections were flagged in sub-array 3.
!  A total of 841 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.808771Jy  sigma=0.005600
! Fit after  self-cal, rms=0.625984Jy  sigma=0.004325
! 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.922 mas, bmaj=2.097 mas, bpa=-54.85 degrees
! Estimated noise=853.374 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.315869 Jy
! Component: 100  -  total flux cleaned = 0.426571 Jy
! Total flux subtracted in 100 components = 0.426571 Jy
! Clean residual min=-0.027947 max=0.091924 Jy/beam
! Clean residual mean=0.000455 rms=0.006725 Jy/beam
! Combined flux in latest and established models = 0.426571 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 0.426571 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.333057Jy  sigma=0.002061
! Fit after  self-cal, rms=0.332330Jy  sigma=0.002059
! Inverting map 
! Added new window around map position (-5.5, -7.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0867571 Jy
! Component: 100  -  total flux cleaned = 0.141499 Jy
! Total flux subtracted in 100 components = 0.141499 Jy
! Clean residual min=-0.018257 max=0.049592 Jy/beam
! Clean residual mean=0.000330 rms=0.004651 Jy/beam
! Combined flux in latest and established models = 0.56807 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 19 components and 0.56807 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.293587Jy  sigma=0.001716
! Fit after  self-cal, rms=0.291932Jy  sigma=0.001703
! Inverting map 
! Added new window around map position (-2.5, -2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0527548 Jy
! Component: 100  -  total flux cleaned = 0.0895427 Jy
! Total flux subtracted in 100 components = 0.0895427 Jy
! Clean residual min=-0.012449 max=0.022299 Jy/beam
! Clean residual mean=0.000248 rms=0.003386 Jy/beam
! Combined flux in latest and established models = 0.657613 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 28 components and 0.657613 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.274066Jy  sigma=0.001534
! Fit after  self-cal, rms=0.273543Jy  sigma=0.001531
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0319404 Jy
! Component: 100  -  total flux cleaned = 0.0572 Jy
! Total flux subtracted in 100 components = 0.0572 Jy
! Clean residual min=-0.010660 max=0.016574 Jy/beam
! Clean residual mean=0.000196 rms=0.002776 Jy/beam
! Combined flux in latest and established models = 0.714813 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 38 components and 0.714813 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.265493Jy  sigma=0.001452
! Fit after  self-cal, rms=0.265362Jy  sigma=0.001451
! Inverting map 
! Added new window around map position (-4.5, -3.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0220618 Jy
! Component: 100  -  total flux cleaned = 0.0402212 Jy
! Total flux subtracted in 100 components = 0.0402212 Jy
! Clean residual min=-0.009877 max=0.012647 Jy/beam
! Clean residual mean=0.000160 rms=0.002443 Jy/beam
! Combined flux in latest and established models = 0.755034 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 48 components and 0.755034 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.261194Jy  sigma=0.001409
! Fit after  self-cal, rms=0.261135Jy  sigma=0.001408
! 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.3 mas, bmaj=2.684 mas, bpa=-58.28 degrees
! Estimated noise=428.878 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.0327381 Jy
! Component: 100  -  total flux cleaned = 0.0544769 Jy
! Component: 150  -  total flux cleaned = 0.0701871 Jy
! Component: 200  -  total flux cleaned = 0.081967 Jy
! Total flux subtracted in 200 components = 0.081967 Jy
! Clean residual min=-0.008934 max=0.013040 Jy/beam
! Clean residual mean=0.001307 rms=0.002606 Jy/beam
! Combined flux in latest and established models = 0.837001 Jy
! Performing phase self-cal
! Adding 50 model components to the UV plane model.
! The established model now contains 83 components and 0.837001 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.256312Jy  sigma=0.001359
! Fit after  self-cal, rms=0.255991Jy  sigma=0.001356
! Inverting map 
! Added new window around map position (-9, -7.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0148528 Jy
! Component: 100  -  total flux cleaned = 0.0245777 Jy
! Component: 150  -  total flux cleaned = 0.031924 Jy
! Component: 200  -  total flux cleaned = 0.0376722 Jy
! Total flux subtracted in 200 components = 0.0376722 Jy
! Clean residual min=-0.007722 max=0.010194 Jy/beam
! Clean residual mean=0.000685 rms=0.002209 Jy/beam
! Combined flux in latest and established models = 0.874673 Jy
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 113 components and 0.874673 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.254936Jy  sigma=0.001345
! Fit after  self-cal, rms=0.254802Jy  sigma=0.001344
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.04     KK        1.00*    KP        0.98     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        0.96     NL        0.96     
!   OV        1.01     PT        0.98     SC        1.00*    TS        0.99     
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 291 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.92     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        0.97     KP        1.07     LA        1.00     
!   MA        0.86     MC        1.02     MK        0.98     NL        1.03     
!   OV        0.99     PT        0.99     SC        1.03     TS        0.99     
!   WF        1.07     WZ        0.98     
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.95     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.03     KP        1.00*    LA        1.00*    
!   MA        1.00*    MC        1.00*    MK        1.01     NL        1.00*    
!   OV        0.90     PT        0.94     SC        1.07     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.02     KK        1.00*    KP        0.93     LA        0.95     
!   MA        1.00*    MC        1.00*    MK        1.03     NL        1.00     
!   OV        1.03     PT        0.97     SC        1.00*    TS        1.01     
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 285 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.99     KK        0.96     KP        0.95     LA        0.98     
!   MA        0.83     MC        1.60     MK        0.99     NL        1.04     
!   OV        1.01     PT        0.98     SC        1.03     TS        1.03     
!   WF        0.99     WZ        0.97     
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.06     KP        1.00*    LA        1.00*    
!   MA        1.00*    MC        1.00*    MK        1.04     NL        1.00*    
!   OV        0.95     PT        0.93     SC        1.02     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.04     KK        1.00*    KP        0.99     LA        0.96     
!   MA        1.00*    MC        1.00*    MK        0.92     NL        0.97     
!   OV        1.04     PT        0.98     SC        1.00*    TS        1.03     
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 279 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.99     KK        0.97     KP        1.02     LA        0.98     
!   MA        1.00     MC        1.04     MK        0.96     NL        0.99     
!   OV        1.02     PT        1.00     SC        1.04     TS        1.01     
!   WF        1.03     WZ        0.99     
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.92     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.04     KP        1.00*    LA        1.00*    
!   MA        1.00*    MC        1.00*    MK        1.00     NL        1.00*    
!   OV        1.08     PT        0.95     SC        1.03     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.01     KK        1.00*    KP        0.96     LA        0.97     
!   MA        1.00*    MC        1.00*    MK        0.96     NL        1.01     
!   OV        1.03     PT        1.00     SC        1.00*    TS        0.99     
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 249 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        1.00     KK        0.95     KP        0.99     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        0.98     NL        1.03     
!   OV        1.00     PT        1.05     SC        1.04     TS        1.01     
!   WF        0.96     WZ        0.98     
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.95     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        0.98     KP        1.00*    LA        1.00*    
!   MA        1.00*    MC        1.00*    MK        1.02     NL        1.00*    
!   OV        0.94     PT        0.95     SC        1.02     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.254802Jy  sigma=0.001344
! Fit after  self-cal, rms=0.250399Jy  sigma=0.001327
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.29 mas, bmaj=2.695 mas, bpa=-58.14 degrees
! Estimated noise=428.624 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.0038149 Jy
! Component: 100  -  total flux cleaned = 0.00532065 Jy
! Component: 150  -  total flux cleaned = 0.00599441 Jy
! Component: 200  -  total flux cleaned = 0.00648406 Jy
! Total flux subtracted in 200 components = 0.00648406 Jy
! Clean residual min=-0.006344 max=0.007790 Jy/beam
! Clean residual mean=0.000473 rms=0.001707 Jy/beam
! Combined flux in latest and established models = 0.881157 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 125 components and 0.881157 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.250234Jy  sigma=0.001326
! Fit after  self-cal, rms=0.250248Jy  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.250248Jy  sigma=0.001325
! Fit after  self-cal, rms=0.298980Jy  sigma=0.001304
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.295 mas, bmaj=2.69 mas, bpa=-57.46 degrees
! Estimated noise=429.879 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00401729 Jy
! Component: 100  -  total flux cleaned = 0.00674845 Jy
! Component: 150  -  total flux cleaned = 0.00846404 Jy
! Component: 200  -  total flux cleaned = 0.00886852 Jy
! Total flux subtracted in 200 components = 0.00886852 Jy
! Clean residual min=-0.003735 max=0.008589 Jy/beam
! Clean residual mean=0.000214 rms=0.001189 Jy/beam
! Combined flux in latest and established models = 0.890026 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 137 components and 0.890025 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.298828Jy  sigma=0.001303
! Fit after  self-cal, rms=0.299125Jy  sigma=0.001303
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 (-20.5, -14.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00772297 Jy
! Component: 100  -  total flux cleaned = 0.0118493 Jy
! Component: 150  -  total flux cleaned = 0.0142914 Jy
! Component: 200  -  total flux cleaned = 0.0154115 Jy
! Total flux subtracted in 200 components = 0.0154115 Jy
! Clean residual min=-0.003080 max=0.003317 Jy/beam
! Clean residual mean=0.000014 rms=0.000872 Jy/beam
! Combined flux in latest and established models = 0.905437 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 166 components and 0.905437 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.299060Jy  sigma=0.001300
! Fit after  self-cal, rms=0.299047Jy  sigma=0.001300
! 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.299047Jy  sigma=0.001300
! Fit after  self-cal, rms=0.302067Jy  sigma=0.001300
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.297 mas, bmaj=2.686 mas, bpa=-57.3 degrees
! Estimated noise=431.294 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00335575 Jy
! Component: 100  -  total flux cleaned = 0.00585271 Jy
! Component: 150  -  total flux cleaned = 0.00782947 Jy
! Component: 200  -  total flux cleaned = 0.00944215 Jy
! Total flux subtracted in 200 components = 0.00944215 Jy
! Clean residual min=-0.003064 max=0.002953 Jy/beam
! Clean residual mean=-0.000072 rms=0.000810 Jy/beam
! Combined flux in latest and established models = 0.914879 Jy
selfcal
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 182 components and 0.914879 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.302023Jy  sigma=0.001299
! Fit after  self-cal, rms=0.302038Jy  sigma=0.001299
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.00132049 Jy
! Component: 100  -  total flux cleaned = 0.00207491 Jy
! Component: 150  -  total flux cleaned = 0.0025118 Jy
! Component: 200  -  total flux cleaned = 0.00287165 Jy
! Total flux subtracted in 200 components = 0.00287165 Jy
! Clean residual min=-0.003045 max=0.002787 Jy/beam
! Clean residual mean=-0.000110 rms=0.000794 Jy/beam
! Combined flux in latest and established models = 0.917751 Jy
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 188 components and 0.91775 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.302027Jy  sigma=0.001299
! Fit after  self-cal, rms=0.302026Jy  sigma=0.001299
! 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.302026Jy  sigma=0.001299
! Fit after  self-cal, rms=0.302751Jy  sigma=0.001299
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.117 mas, bmaj=11.23 mas, bpa=-22.98 degrees
! Estimated noise=703.939 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00460729 Jy
! Component: 100  -  total flux cleaned = 0.00734143 Jy
! Component: 150  -  total flux cleaned = 0.0086543 Jy
! Component: 200  -  total flux cleaned = 0.00904707 Jy
! Total flux subtracted in 200 components = 0.00904707 Jy
! Clean residual min=-0.005225 max=0.004549 Jy/beam
! Clean residual mean=-0.000639 rms=0.001620 Jy/beam
! Combined flux in latest and established models = 0.926798 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 203 components and 0.926798 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.302685Jy  sigma=0.001299
! Fit after  self-cal, rms=0.302684Jy  sigma=0.001299
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.000962389 Jy
! Component: 100  -  total flux cleaned = 0.00110732 Jy
! Component: 150  -  total flux cleaned = 0.00119246 Jy
! Component: 200  -  total flux cleaned = 0.00123178 Jy
! Total flux subtracted in 200 components = 0.00123178 Jy
! Clean residual min=-0.005318 max=0.004518 Jy/beam
! Clean residual mean=-0.000699 rms=0.001599 Jy/beam
! Combined flux in latest and established models = 0.928029 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 205 components and 0.928029 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.302682Jy  sigma=0.001299
! Fit after  self-cal, rms=0.302682Jy  sigma=0.001299
! 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.297 mas, bmaj=2.685 mas, bpa=-57.22 degrees
! Estimated noise=432.492 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.297 x 2.685 at -57.22 degrees (North through East)
! Clean map  min=-0.0026899  max=0.426 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.921 mas, bmaj=2.112 mas, bpa=-51.11 degrees
! Estimated noise=832.013 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.315335 Jy
! Component: 100  -  total flux cleaned = 0.443523 Jy
! Component: 150  -  total flux cleaned = 0.52619 Jy
! Component: 200  -  total flux cleaned = 0.58538 Jy
! Total flux subtracted in 200 components = 0.58538 Jy
! Clean residual min=-0.013771 max=0.034201 Jy/beam
! Clean residual mean=0.000296 rms=0.003849 Jy/beam
! Combined flux in latest and established models = 0.58538 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 20 model components to the UV plane model.
! The established model now contains 20 components and 0.58538 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.297 mas, bmaj=2.685 mas, bpa=-57.22 degrees
! Estimated noise=432.492 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.0824521 Jy
! Component: 100  -  total flux cleaned = 0.139214 Jy
! Component: 150  -  total flux cleaned = 0.180357 Jy
! Component: 200  -  total flux cleaned = 0.210867 Jy
! Total flux subtracted in 200 components = 0.210867 Jy
! Clean residual min=-0.005778 max=0.017611 Jy/beam
! Clean residual mean=0.001712 rms=0.002851 Jy/beam
! Combined flux in latest and established models = 0.796247 Jy
! Adding 61 model components to the UV plane model.
! The established model now contains 70 components and 0.796247 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0230751 Jy
! Component: 100  -  total flux cleaned = 0.0408957 Jy
! Component: 150  -  total flux cleaned = 0.0551777 Jy
! Component: 200  -  total flux cleaned = 0.0668166 Jy
! Total flux subtracted in 200 components = 0.0668166 Jy
! Clean residual min=-0.004232 max=0.007610 Jy/beam
! Clean residual mean=0.000730 rms=0.001504 Jy/beam
! Combined flux in latest and established models = 0.863064 Jy
! Adding 61 model components to the UV plane model.
! The established model now contains 111 components and 0.863064 Jy
! Inverting map 
! Added new window around map position (0.5, 2.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00978989 Jy
! Component: 100  -  total flux cleaned = 0.017991 Jy
! Component: 150  -  total flux cleaned = 0.0249083 Jy
! Component: 200  -  total flux cleaned = 0.0307754 Jy
! Total flux subtracted in 200 components = 0.0307754 Jy
! Clean residual min=-0.003498 max=0.004022 Jy/beam
! Clean residual mean=0.000289 rms=0.001031 Jy/beam
! Combined flux in latest and established models = 0.893839 Jy
! Adding 55 model components to the UV plane model.
! The established model now contains 148 components and 0.893839 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.117 mas, bmaj=11.23 mas, bpa=-22.98 degrees
! Estimated noise=703.939 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0130535 Jy
! Component: 100  -  total flux cleaned = 0.0209984 Jy
! Component: 150  -  total flux cleaned = 0.0261465 Jy
! Component: 200  -  total flux cleaned = 0.0295495 Jy
! Total flux subtracted in 200 components = 0.0295495 Jy
! Clean residual min=-0.004872 max=0.004944 Jy/beam
! Clean residual mean=-0.000464 rms=0.001680 Jy/beam
! Combined flux in latest and established models = 0.923389 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.00227748 Jy
! Component: 100  -  total flux cleaned = 0.00381768 Jy
! Component: 150  -  total flux cleaned = 0.00423923 Jy
! Component: 200  -  total flux cleaned = 0.0044818 Jy
! Total flux subtracted in 200 components = 0.0044818 Jy
! Clean residual min=-0.005339 max=0.004656 Jy/beam
! Clean residual mean=-0.000694 rms=0.001613 Jy/beam
! Combined flux in latest and established models = 0.927871 Jy
! Adding 80 model components to the UV plane model.
! The established model now contains 204 components and 0.927871 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.297 mas, bmaj=2.685 mas, bpa=-57.22 degrees
! Estimated noise=432.492 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0004463 Jy
! Component: 100  -  total flux cleaned = 0.000523782 Jy
! Component: 150  -  total flux cleaned = 0.000658493 Jy
! Component: 200  -  total flux cleaned = 0.000778561 Jy
! Total flux subtracted in 200 components = 0.000778561 Jy
! Clean residual min=-0.002947 max=0.002818 Jy/beam
! Clean residual mean=-0.000204 rms=0.000767 Jy/beam
! Combined flux in latest and established models = 0.928649 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 222 components and 0.928649 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.302671Jy  sigma=0.001299
! Fit after  self-cal, rms=0.302678Jy  sigma=0.001299
wmodel J1436+6336_S_2001_10_29_pus_map.mod
! Writing 222 model components to file: J1436+6336_S_2001_10_29_pus_map.mod
wobs J1436+6336_S_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J1436+6336_S_2001_10_29_pus_uvs.fits
wwins J1436+6336_S_2001_10_29_pus_map.win
! wwins: Wrote 7 windows to J1436+6336_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.00111068 Jy
! Component: 100  -  total flux cleaned = -0.00166988 Jy
! Component: 150  -  total flux cleaned = -0.00224382 Jy
! Component: 200  -  total flux cleaned = -0.00279418 Jy
! Component: 250  -  total flux cleaned = -0.00332701 Jy
! Component: 300  -  total flux cleaned = -0.00380363 Jy
! Component: 350  -  total flux cleaned = -0.00426991 Jy
! Component: 400  -  total flux cleaned = -0.0047686 Jy
! Component: 450  -  total flux cleaned = -0.00521711 Jy
! Component: 500  -  total flux cleaned = -0.00565778 Jy
! Component: 550  -  total flux cleaned = -0.00609091 Jy
! Component: 600  -  total flux cleaned = -0.00647863 Jy
! Component: 650  -  total flux cleaned = -0.00689815 Jy
! Component: 700  -  total flux cleaned = -0.00723593 Jy
! Component: 750  -  total flux cleaned = -0.00756898 Jy
! Component: 800  -  total flux cleaned = -0.0078984 Jy
! Component: 850  -  total flux cleaned = -0.00825967 Jy
! Component: 900  -  total flux cleaned = -0.00858094 Jy
! Component: 950  -  total flux cleaned = -0.00886324 Jy
! Component: 1000  -  total flux cleaned = -0.00910798 Jy
! Component: 1050  -  total flux cleaned = -0.00941891 Jy
! Component: 1100  -  total flux cleaned = -0.00965801 Jy
! Component: 1150  -  total flux cleaned = -0.00986133 Jy
! Component: 1200  -  total flux cleaned = -0.0100629 Jy
! Component: 1250  -  total flux cleaned = -0.0102955 Jy
! Component: 1300  -  total flux cleaned = -0.010493 Jy
! Component: 1350  -  total flux cleaned = -0.0106886 Jy
! Component: 1400  -  total flux cleaned = -0.0108502 Jy
! Component: 1450  -  total flux cleaned = -0.0109786 Jy
! Component: 1500  -  total flux cleaned = -0.0111695 Jy
! Component: 1550  -  total flux cleaned = -0.0112642 Jy
! Component: 1600  -  total flux cleaned = -0.0114209 Jy
! Component: 1650  -  total flux cleaned = -0.0115141 Jy
! Component: 1700  -  total flux cleaned = -0.0116685 Jy
! Component: 1750  -  total flux cleaned = -0.0117605 Jy
! Component: 1800  -  total flux cleaned = -0.0118521 Jy
! Component: 1850  -  total flux cleaned = -0.0120036 Jy
! Component: 1900  -  total flux cleaned = -0.0120638 Jy
! Component: 1950  -  total flux cleaned = -0.0121536 Jy
! Component: 2000  -  total flux cleaned = -0.0122724 Jy
! Total flux subtracted in 2048 components = -0.0123317 Jy
! Clean residual min=-0.002225 max=0.001932 Jy/beam
! Clean residual mean=-0.000047 rms=0.000580 Jy/beam
! Combined flux in latest and established models = 0.916318 Jy
keep
! Adding 174 model components to the UV plane model.
! The established model now contains 396 components and 0.916318 Jy
![Exited script file: muppet]
wmap "J1436+6336_S_2001_10_29_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.297 x 2.685 at -57.22 degrees (North through East)
! Clean map  min=-0.0023386  max=0.4254 Jy/beam
! Writing clean map to FITS file: J1436+6336_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.425401 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000580925 
device "J1436+6336_S_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J1436+6336_S_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.409678 0.409678 0.819356 1.63871 3.27742 6.55485 13.1097 26.2194 52.4388
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0017 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.425 
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.297 x 2.685 at -57.22 degrees (North through East)
! Clean map  min=-0.0023386  max=0.4254 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1436+6336_S_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J1436+6336_S_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1436+6336_S_2001_10_29_pus_uvs.log closed on Thu Feb 28 14:01:10 2008