! Started logfile: J0204+1514_S_2001_10_29_pus_uvs.log on Wed Feb 27 17:48:46 2008
obs J0204+1514_S_2001_10_29_pus_uva.fits
! Reading UV FITS file: J0204+1514_S_2001_10_29_pus_uva.fits
! AN table 1: 46 integrations on 153 of 153 possible baselines.
! AN table 2: 52 integrations on 153 of 153 possible baselines.
! AN table 3: 40 integrations on 153 of 153 possible baselines.
! AN table 4: 61 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.100897 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0204+1514
! 
! 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 12288 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 J0204+1514_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 581 telescope corrections were flagged in sub-array 1.
!  A total of 816 telescope corrections were flagged in sub-array 2.
!  A total of 374 telescope corrections were flagged in sub-array 3.
!  A total of 996 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 581 telescope corrections were flagged in sub-array 1.
!  A total of 825 telescope corrections were flagged in sub-array 2.
!  A total of 374 telescope corrections were flagged in sub-array 3.
!  A total of 996 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 581 telescope corrections were flagged in sub-array 1.
!  A total of 816 telescope corrections were flagged in sub-array 2.
!  A total of 374 telescope corrections were flagged in sub-array 3.
!  A total of 1005 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 581 telescope corrections were flagged in sub-array 1.
!  A total of 906 telescope corrections were flagged in sub-array 2.
!  A total of 374 telescope corrections were flagged in sub-array 3.
!  A total of 1098 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.612258Jy  sigma=0.004993
! Fit after  self-cal, rms=0.456287Jy  sigma=0.003808
! 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.826 mas, bmaj=4.505 mas, bpa=-3.325 degrees
! Estimated noise=1331.5 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.78784 Jy
! Component: 100  -  total flux cleaned = 1.00737 Jy
! Total flux subtracted in 100 components = 1.00737 Jy
! Clean residual min=-0.048579 max=0.199449 Jy/beam
! Clean residual mean=0.000938 rms=0.017671 Jy/beam
! Combined flux in latest and established models = 1.00737 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 1.00737 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.437638Jy  sigma=0.003677
! Fit after  self-cal, rms=0.436983Jy  sigma=0.003673
! Inverting map 
! Added new window around map position (-3.5, 2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.183793 Jy
! Component: 100  -  total flux cleaned = 0.299647 Jy
! Total flux subtracted in 100 components = 0.299647 Jy
! Clean residual min=-0.036454 max=0.078608 Jy/beam
! Clean residual mean=0.000688 rms=0.010886 Jy/beam
! Combined flux in latest and established models = 1.30701 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 17 components and 1.30701 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.304906Jy  sigma=0.002442
! Fit after  self-cal, rms=0.297859Jy  sigma=0.002395
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0934589 Jy
! Component: 100  -  total flux cleaned = 0.157584 Jy
! Total flux subtracted in 100 components = 0.157584 Jy
! Clean residual min=-0.023127 max=0.048504 Jy/beam
! Clean residual mean=0.000553 rms=0.007477 Jy/beam
! Combined flux in latest and established models = 1.4646 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 26 components and 1.4646 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.250967Jy  sigma=0.001909
! Fit after  self-cal, rms=0.248580Jy  sigma=0.001892
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0528946 Jy
! Component: 100  -  total flux cleaned = 0.0905813 Jy
! Total flux subtracted in 100 components = 0.0905814 Jy
! Clean residual min=-0.018997 max=0.032198 Jy/beam
! Clean residual mean=0.000476 rms=0.005948 Jy/beam
! Combined flux in latest and established models = 1.55518 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 35 components and 1.55518 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.232301Jy  sigma=0.001707
! Fit after  self-cal, rms=0.231283Jy  sigma=0.001699
! 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.262 mas, bmaj=6.395 mas, bpa=-3.092 degrees
! Estimated noise=806.57 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.0439799 Jy
! Component: 100  -  total flux cleaned = 0.0706901 Jy
! Component: 150  -  total flux cleaned = 0.0883393 Jy
! Component: 200  -  total flux cleaned = 0.100411 Jy
! Total flux subtracted in 200 components = 0.100411 Jy
! Clean residual min=-0.018885 max=0.019553 Jy/beam
! Clean residual mean=0.000609 rms=0.006007 Jy/beam
! Combined flux in latest and established models = 1.65559 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 54 components and 1.65559 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223578Jy  sigma=0.001595
! Fit after  self-cal, rms=0.223019Jy  sigma=0.001589
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.92     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.02     KK        1.03     KP        1.11     LA        0.93     
!   MA        1.00*    MC        1.00*    MK        0.98     NL        0.98     
!   OV        0.93     PT        0.94     SC        1.08     TS        0.99     
!   WF        0.99     WZ        1.00*    
! 
!  A total of 66 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.02     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.89     MC        0.96     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.12     
!   WF        1.00*    WZ        0.99     
! 
!  A total of 9 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        1.07     KP        1.05     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        1.04     NL        0.98     
!   OV        0.98     PT        1.00     SC        0.96     TS        1.00*    
!   WF        1.07     WZ        1.09     
! 
!  A total of 78 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.15     MC        1.33     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.03     
!   WF        1.00*    WZ        1.13     
! 
! 
! Correcting IF 2.
!  A total of 33 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.00     KK        1.01     KP        1.05     LA        0.91     
!   MA        1.00*    MC        1.00*    MK        0.98     NL        1.00     
!   OV        0.95     PT        0.93     SC        1.08     TS        1.02     
!   WF        1.03     WZ        1.00*    
! 
!  A total of 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.99     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.84     MC        0.96     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.16     
!   WF        1.00*    WZ        0.99     
! 
!  A total of 9 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        1.02     KK        1.06     KP        1.03     LA        0.96     
!   MA        1.00*    MC        1.00*    MK        1.06     NL        0.98     
!   OV        1.01     PT        0.98     SC        0.97     TS        1.00*    
!   WF        1.01     WZ        1.13     
! 
!  A total of 78 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.15     MC        1.01     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.04     
!   WF        1.00*    WZ        1.20     
! 
! 
! Correcting IF 3.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.93     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.01     KK        0.97     KP        1.06     LA        0.97     
!   MA        1.00*    MC        1.00*    MK        0.92     NL        1.03     
!   OV        0.98     PT        0.95     SC        1.04     TS        1.00     
!   WF        0.94     WZ        1.00*    
! 
!  A total of 66 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.99     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.10     MC        0.97     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.10     
!   WF        1.00*    WZ        0.99     
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.06     KP        1.00     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        1.00     NL        0.99     
!   OV        1.00     PT        1.00     SC        0.93     TS        1.00*    
!   WF        1.00     WZ        1.10     
! 
!  A total of 93 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   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*    
! 
! 
! Correcting IF 4.
!  A total of 33 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        0.99     KK        0.95     KP        1.02     LA        0.93     
!   MA        1.00*    MC        1.00*    MK        0.95     NL        1.02     
!   OV        0.95     PT        0.90     SC        1.06     TS        1.01     
!   WF        1.01     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    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 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.98     KK        1.02     KP        1.00     LA        0.99     
!   MA        1.00*    MC        1.00*    MK        1.04     NL        1.01     
!   OV        1.00     PT        0.99     SC        0.95     TS        1.00*    
!   WF        0.96     WZ        1.12     
! 
!  Telescope amplitude corrections in sub-array 4:
!   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*    
! 
! 
! Fit before self-cal, rms=0.223019Jy  sigma=0.001589
! Fit after  self-cal, rms=0.208405Jy  sigma=0.001453
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.337 mas, bmaj=6.542 mas, bpa=-3.937 degrees
! Estimated noise=817.272 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.00174988 Jy
! Component: 100  -  total flux cleaned = -0.00127528 Jy
! Component: 150  -  total flux cleaned = -0.0008711 Jy
! Component: 200  -  total flux cleaned = -0.000179065 Jy
! Total flux subtracted in 200 components = -0.000179065 Jy
! Clean residual min=-0.012197 max=0.015672 Jy/beam
! Clean residual mean=0.000286 rms=0.004125 Jy/beam
! Combined flux in latest and established models = 1.65541 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 68 components and 1.65541 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.207888Jy  sigma=0.001448
! Fit after  self-cal, rms=0.207927Jy  sigma=0.001447
! 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.207927Jy  sigma=0.001447
! Fit after  self-cal, rms=0.207790Jy  sigma=0.001447
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.34 mas, bmaj=6.537 mas, bpa=-3.931 degrees
! Estimated noise=816.663 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000999018 Jy
! Component: 100  -  total flux cleaned = -0.000655022 Jy
! Component: 150  -  total flux cleaned = -0.000206704 Jy
! Component: 200  -  total flux cleaned = 0.000209858 Jy
! Total flux subtracted in 200 components = 0.000209858 Jy
! Clean residual min=-0.011990 max=0.015723 Jy/beam
! Clean residual mean=0.000276 rms=0.004067 Jy/beam
! Combined flux in latest and established models = 1.65562 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 73 components and 1.65562 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.207485Jy  sigma=0.001444
! Fit after  self-cal, rms=0.207453Jy  sigma=0.001444
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.000665511 Jy
! Component: 100  -  total flux cleaned = 0.00117724 Jy
! Component: 150  -  total flux cleaned = 0.00139891 Jy
! Component: 200  -  total flux cleaned = 0.00160169 Jy
! Total flux subtracted in 200 components = 0.00160169 Jy
! Clean residual min=-0.011796 max=0.015682 Jy/beam
! Clean residual mean=0.000275 rms=0.004048 Jy/beam
! Combined flux in latest and established models = 1.65722 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 76 components and 1.65722 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.207290Jy  sigma=0.001443
! Fit after  self-cal, rms=0.207270Jy  sigma=0.001442
! 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.207270Jy  sigma=0.001442
! Fit after  self-cal, rms=0.207263Jy  sigma=0.001442
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.343 mas, bmaj=6.532 mas, bpa=-3.939 degrees
! Estimated noise=816.63 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000277308 Jy
! Component: 100  -  total flux cleaned = -4.07764e-05 Jy
! Component: 150  -  total flux cleaned = 0.000268653 Jy
! Component: 200  -  total flux cleaned = 0.000549787 Jy
! Total flux subtracted in 200 components = 0.000549787 Jy
! Clean residual min=-0.011506 max=0.015460 Jy/beam
! Clean residual mean=0.000263 rms=0.004031 Jy/beam
! Combined flux in latest and established models = 1.65777 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 78 components and 1.65777 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.207115Jy  sigma=0.001441
! Fit after  self-cal, rms=0.207103Jy  sigma=0.001440
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 = 8.92388e-05 Jy
! Component: 100  -  total flux cleaned = 0.000456595 Jy
! Component: 150  -  total flux cleaned = 0.000694975 Jy
! Component: 200  -  total flux cleaned = 0.000841388 Jy
! Total flux subtracted in 200 components = 0.000841388 Jy
! Clean residual min=-0.011382 max=0.015451 Jy/beam
! Clean residual mean=0.000263 rms=0.004021 Jy/beam
! Combined flux in latest and established models = 1.65861 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 81 components and 1.65861 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.207014Jy  sigma=0.001440
! Fit after  self-cal, rms=0.207008Jy  sigma=0.001440
! 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.207008Jy  sigma=0.001440
! Fit after  self-cal, rms=0.207058Jy  sigma=0.001439
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=6.362 mas, bmaj=10.8 mas, bpa=-7.585 degrees
! Estimated noise=1133 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00269401 Jy
! Component: 100  -  total flux cleaned = 0.00276978 Jy
! Component: 150  -  total flux cleaned = 0.00276834 Jy
! Component: 200  -  total flux cleaned = 0.00283294 Jy
! Total flux subtracted in 200 components = 0.00283294 Jy
! Clean residual min=-0.025825 max=0.036474 Jy/beam
! Clean residual mean=0.000798 rms=0.010858 Jy/beam
! Combined flux in latest and established models = 1.66145 Jy
selfcal
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 85 components and 1.66145 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.207074Jy  sigma=0.001439
! Fit after  self-cal, rms=0.207074Jy  sigma=0.001439
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.000277009 Jy
! Component: 100  -  total flux cleaned = 0.000474919 Jy
! Component: 150  -  total flux cleaned = 0.000531213 Jy
! Component: 200  -  total flux cleaned = 0.000584393 Jy
! Total flux subtracted in 200 components = 0.000584393 Jy
! Clean residual min=-0.025825 max=0.036368 Jy/beam
! Clean residual mean=0.000797 rms=0.010851 Jy/beam
! Combined flux in latest and established models = 1.66203 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 86 components and 1.66203 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.207099Jy  sigma=0.001439
! Fit after  self-cal, rms=0.207100Jy  sigma=0.001439
! 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.345 mas, bmaj=6.529 mas, bpa=-3.957 degrees
! Estimated noise=816.911 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.345 x 6.529 at -3.957 degrees (North through East)
! Clean map  min=-0.011457  max=1.0711 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.207100Jy  sigma=0.001439
! Fit after  self-cal, rms=0.196950Jy  sigma=0.001343
! Inverting map and beam 
! Estimated beam: bmin=2.343 mas, bmaj=6.524 mas, bpa=-3.947 degrees
! Estimated noise=816.114 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000793295 Jy
! Component: 100  -  total flux cleaned = 0.000500449 Jy
! Component: 150  -  total flux cleaned = 0.000587585 Jy
! Component: 200  -  total flux cleaned = 0.000509402 Jy
! Total flux subtracted in 200 components = 0.000509402 Jy
! Clean residual min=-0.011447 max=0.015296 Jy/beam
! Clean residual mean=0.000258 rms=0.003986 Jy/beam
! Combined flux in latest and established models = 1.66254 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 91 components and 1.66254 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.196819Jy  sigma=0.001342
! Fit after  self-cal, rms=0.196823Jy  sigma=0.001342
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000116866 Jy
! Component: 100  -  total flux cleaned = 3.49372e-05 Jy
! Component: 150  -  total flux cleaned = -3.07482e-05 Jy
! Component: 200  -  total flux cleaned = 2.90194e-05 Jy
! Total flux subtracted in 200 components = 2.90194e-05 Jy
! Clean residual min=-0.011436 max=0.015310 Jy/beam
! Clean residual mean=0.000258 rms=0.003983 Jy/beam
! Combined flux in latest and established models = 1.66257 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 97 components and 1.66257 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.196759Jy  sigma=0.001342
! Fit after  self-cal, rms=0.196760Jy  sigma=0.001342
! 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.196760Jy  sigma=0.001342
! Fit after  self-cal, rms=0.196865Jy  sigma=0.001341
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.865 mas, bmaj=4.636 mas, bpa=-3.137 degrees
! Estimated noise=1334.99 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.790606 Jy
! Component: 100  -  total flux cleaned = 1.05367 Jy
! Component: 150  -  total flux cleaned = 1.21999 Jy
! Component: 200  -  total flux cleaned = 1.33478 Jy
! Total flux subtracted in 200 components = 1.33478 Jy
! Clean residual min=-0.024768 max=0.063325 Jy/beam
! Clean residual mean=0.000396 rms=0.008582 Jy/beam
! Combined flux in latest and established models = 1.33478 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 1.33478 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.345 mas, bmaj=6.522 mas, bpa=-3.969 degrees
! Estimated noise=816.519 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.120816 Jy
! Component: 100  -  total flux cleaned = 0.189875 Jy
! Component: 150  -  total flux cleaned = 0.232442 Jy
! Component: 200  -  total flux cleaned = 0.260305 Jy
! Total flux subtracted in 200 components = 0.260305 Jy
! Clean residual min=-0.014461 max=0.016619 Jy/beam
! Clean residual mean=0.000263 rms=0.004790 Jy/beam
! Combined flux in latest and established models = 1.59508 Jy
! Adding 53 model components to the UV plane model.
! The established model now contains 60 components and 1.59508 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=6.363 mas, bmaj=10.79 mas, bpa=-7.558 degrees
! Estimated noise=1132.47 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0345033 Jy
! Component: 100  -  total flux cleaned = 0.0495483 Jy
! Component: 150  -  total flux cleaned = 0.0572941 Jy
! Component: 200  -  total flux cleaned = 0.0608014 Jy
! Total flux subtracted in 200 components = 0.0608014 Jy
! Clean residual min=-0.026477 max=0.035528 Jy/beam
! Clean residual mean=0.000797 rms=0.010871 Jy/beam
! Combined flux in latest and established models = 1.65588 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.000661962 Jy
! Component: 100  -  total flux cleaned = 0.00139059 Jy
! Component: 150  -  total flux cleaned = 0.00194633 Jy
! Component: 200  -  total flux cleaned = 0.00255863 Jy
! Total flux subtracted in 200 components = 0.00255863 Jy
! Clean residual min=-0.026167 max=0.035611 Jy/beam
! Clean residual mean=0.000793 rms=0.010842 Jy/beam
! Combined flux in latest and established models = 1.65844 Jy
! Adding 42 model components to the UV plane model.
! The established model now contains 86 components and 1.65844 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.345 mas, bmaj=6.522 mas, bpa=-3.969 degrees
! Estimated noise=816.519 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00187084 Jy
! Component: 100  -  total flux cleaned = -0.000300901 Jy
! Component: 150  -  total flux cleaned = 0.000842015 Jy
! Component: 200  -  total flux cleaned = 0.00134623 Jy
! Total flux subtracted in 200 components = 0.00134623 Jy
! Clean residual min=-0.010988 max=0.015678 Jy/beam
! Clean residual mean=0.000251 rms=0.003994 Jy/beam
! Combined flux in latest and established models = 1.65979 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 90 components and 1.65979 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.197152Jy  sigma=0.001344
! Fit after  self-cal, rms=0.197058Jy  sigma=0.001343
wmodel J0204+1514_S_2001_10_29_pus_map.mod
! Writing 90 model components to file: J0204+1514_S_2001_10_29_pus_map.mod
wobs J0204+1514_S_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J0204+1514_S_2001_10_29_pus_uvs.fits
wwins J0204+1514_S_2001_10_29_pus_map.win
! wwins: Wrote 2 windows to J0204+1514_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.0068197 Jy
! Component: 100  -  total flux cleaned = 0.0128003 Jy
! Component: 150  -  total flux cleaned = 0.0182861 Jy
! Component: 200  -  total flux cleaned = 0.0228105 Jy
! Component: 250  -  total flux cleaned = 0.0263224 Jy
! Component: 300  -  total flux cleaned = 0.0300659 Jy
! Component: 350  -  total flux cleaned = 0.0331332 Jy
! Component: 400  -  total flux cleaned = 0.0361025 Jy
! Component: 450  -  total flux cleaned = 0.0389787 Jy
! Component: 500  -  total flux cleaned = 0.0407838 Jy
! Component: 550  -  total flux cleaned = 0.0427023 Jy
! Component: 600  -  total flux cleaned = 0.0439475 Jy
! Component: 650  -  total flux cleaned = 0.045765 Jy
! Component: 700  -  total flux cleaned = 0.0469468 Jy
! Component: 750  -  total flux cleaned = 0.0488144 Jy
! Component: 800  -  total flux cleaned = 0.050073 Jy
! Component: 850  -  total flux cleaned = 0.0513066 Jy
! Component: 900  -  total flux cleaned = 0.0527854 Jy
! Component: 950  -  total flux cleaned = 0.0542299 Jy
! Component: 1000  -  total flux cleaned = 0.0552635 Jy
! Component: 1050  -  total flux cleaned = 0.0565249 Jy
! Component: 1100  -  total flux cleaned = 0.0575152 Jy
! Component: 1150  -  total flux cleaned = 0.0587298 Jy
! Component: 1200  -  total flux cleaned = 0.0597988 Jy
! Component: 1250  -  total flux cleaned = 0.0608493 Jy
! Component: 1300  -  total flux cleaned = 0.0617695 Jy
! Component: 1350  -  total flux cleaned = 0.0627847 Jy
! Component: 1400  -  total flux cleaned = 0.0637805 Jy
! Component: 1450  -  total flux cleaned = 0.0646508 Jy
! Component: 1500  -  total flux cleaned = 0.064972 Jy
! Component: 1550  -  total flux cleaned = 0.0656065 Jy
! Component: 1600  -  total flux cleaned = 0.0661277 Jy
! Component: 1650  -  total flux cleaned = 0.0668455 Jy
! Component: 1700  -  total flux cleaned = 0.0673489 Jy
! Component: 1750  -  total flux cleaned = 0.0678453 Jy
! Component: 1800  -  total flux cleaned = 0.0683367 Jy
! Component: 1850  -  total flux cleaned = 0.0692053 Jy
! Component: 1900  -  total flux cleaned = 0.0699675 Jy
! Component: 1950  -  total flux cleaned = 0.07072 Jy
! Component: 2000  -  total flux cleaned = 0.0716475 Jy
! Total flux subtracted in 2048 components = 0.0724714 Jy
! Clean residual min=-0.005305 max=0.006294 Jy/beam
! Clean residual mean=0.000219 rms=0.002091 Jy/beam
! Combined flux in latest and established models = 1.73226 Jy
keep
! Adding 198 model components to the UV plane model.
! The established model now contains 288 components and 1.73226 Jy
![Exited script file: muppet]
wmap "J0204+1514_S_2001_10_29_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.345 x 6.522 at -3.969 degrees (North through East)
! Clean map  min=-0.0073835  max=1.0758 Jy/beam
! Writing clean map to FITS file: J0204+1514_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 1.0758 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00207493 
device "J0204+1514_S_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J0204+1514_S_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.578619 0.578619 1.15724 2.31448 4.62895 9.2579 18.5158 37.0316 74.0632
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0062 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.075 
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.345 x 6.522 at -3.969 degrees (North through East)
! Clean map  min=-0.0073835  max=1.0758 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0204+1514_S_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J0204+1514_S_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0204+1514_S_2001_10_29_pus_uvs.log closed on Wed Feb 27 17:48:55 2008