! Started logfile: J0205+3212_S_2000_05_22_pus_uvs.log on Tue Nov 20 12:00:40 2007
obs J0205+3212_S_2000_05_22_pus_uva.fits
! Reading UV FITS file: J0205+3212_S_2000_05_22_pus_uva.fits
! AN table 1: 82 integrations on 190 of 190 possible baselines.
! AN table 2: 301 integrations on 190 of 190 possible baselines.
! AN table 3: 133 integrations on 190 of 190 possible baselines.
! AN table 4: 32 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.146427 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0205+3212
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2003 lines of history.
! 
! Reading 60984 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 J0205+3212_S_2000_05_22_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 1023 telescope corrections were flagged in sub-array 1.
!  A total of 4227 telescope corrections were flagged in sub-array 2.
!  A total of 1939 telescope corrections were flagged in sub-array 3.
!  A total of 380 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1023 telescope corrections were flagged in sub-array 1.
!  A total of 4104 telescope corrections were flagged in sub-array 2.
!  A total of 1939 telescope corrections were flagged in sub-array 3.
!  A total of 380 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1023 telescope corrections were flagged in sub-array 1.
!  A total of 4227 telescope corrections were flagged in sub-array 2.
!  A total of 1939 telescope corrections were flagged in sub-array 3.
!  A total of 380 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1023 telescope corrections were flagged in sub-array 1.
!  A total of 4095 telescope corrections were flagged in sub-array 2.
!  A total of 1939 telescope corrections were flagged in sub-array 3.
!  A total of 380 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.849193Jy  sigma=0.007852
! Fit after  self-cal, rms=0.738807Jy  sigma=0.006867
! 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=2.019 mas, bmaj=2.961 mas, bpa=3.231 degrees
! Estimated noise=617.675 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.210825 Jy
! Component: 100  -  total flux cleaned = 0.260479 Jy
! Total flux subtracted in 100 components = 0.260479 Jy
! Clean residual min=-0.010581 max=0.051005 Jy/beam
! Clean residual mean=0.000062 rms=0.002770 Jy/beam
! Combined flux in latest and established models = 0.260479 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 0.260479 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.214925Jy  sigma=0.001799
! Fit after  self-cal, rms=0.214902Jy  sigma=0.001799
! Inverting map 
! Added new window around map position (-0.5, 6.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.045663 Jy
! Component: 100  -  total flux cleaned = 0.0716503 Jy
! Total flux subtracted in 100 components = 0.0716503 Jy
! Clean residual min=-0.006939 max=0.017309 Jy/beam
! Clean residual mean=0.000046 rms=0.001965 Jy/beam
! Combined flux in latest and established models = 0.33213 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 21 components and 0.33213 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.198640Jy  sigma=0.001608
! Fit after  self-cal, rms=0.197067Jy  sigma=0.001594
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0234744 Jy
! Component: 100  -  total flux cleaned = 0.0398587 Jy
! Total flux subtracted in 100 components = 0.0398587 Jy
! Clean residual min=-0.005205 max=0.010918 Jy/beam
! Clean residual mean=0.000039 rms=0.001532 Jy/beam
! Combined flux in latest and established models = 0.371988 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 26 components and 0.371988 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.191308Jy  sigma=0.001524
! Fit after  self-cal, rms=0.190993Jy  sigma=0.001521
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0141294 Jy
! Component: 100  -  total flux cleaned = 0.0248888 Jy
! Total flux subtracted in 100 components = 0.0248888 Jy
! Clean residual min=-0.004641 max=0.009532 Jy/beam
! Clean residual mean=0.000035 rms=0.001361 Jy/beam
! Combined flux in latest and established models = 0.396877 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 38 components and 0.396877 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188476Jy  sigma=0.001490
! Fit after  self-cal, rms=0.188372Jy  sigma=0.001489
! Inverting map 
! Added new window around map position (-3, 10).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0104661 Jy
! Component: 100  -  total flux cleaned = 0.0186871 Jy
! Total flux subtracted in 100 components = 0.0186871 Jy
! Clean residual min=-0.004620 max=0.006225 Jy/beam
! Clean residual mean=0.000029 rms=0.001261 Jy/beam
! Combined flux in latest and established models = 0.415564 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 51 components and 0.415564 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.186902Jy  sigma=0.001471
! Fit after  self-cal, rms=0.186843Jy  sigma=0.001471
! 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.435 mas, bmaj=3.745 mas, bpa=1.921 degrees
! Estimated noise=320.325 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.0173236 Jy
! Component: 100  -  total flux cleaned = 0.0290798 Jy
! Component: 150  -  total flux cleaned = 0.0376226 Jy
! Component: 200  -  total flux cleaned = 0.0439409 Jy
! Total flux subtracted in 200 components = 0.0439409 Jy
! Clean residual min=-0.003391 max=0.008860 Jy/beam
! Clean residual mean=0.000390 rms=0.001419 Jy/beam
! Combined flux in latest and established models = 0.459505 Jy
! Performing phase self-cal
! Adding 41 model components to the UV plane model.
! The established model now contains 74 components and 0.459505 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.184883Jy  sigma=0.001448
! Fit after  self-cal, rms=0.184747Jy  sigma=0.001447
! Inverting map 
! Added new window around map position (-24.5, 18.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00976802 Jy
! Component: 100  -  total flux cleaned = 0.0164898 Jy
! Component: 150  -  total flux cleaned = 0.0218674 Jy
! Component: 200  -  total flux cleaned = 0.0262783 Jy
! Total flux subtracted in 200 components = 0.0262783 Jy
! Clean residual min=-0.003532 max=0.006792 Jy/beam
! Clean residual mean=0.000173 rms=0.001103 Jy/beam
! Combined flux in latest and established models = 0.485783 Jy
! Performing phase self-cal
! Adding 54 model components to the UV plane model.
! The established model now contains 115 components and 0.485783 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.184124Jy  sigma=0.001439
! Fit after  self-cal, rms=0.184061Jy  sigma=0.001438
! Inverting map 
! Added new window around map position (-6.5, 12.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00639472 Jy
! Component: 100  -  total flux cleaned = 0.0106166 Jy
! Component: 150  -  total flux cleaned = 0.0140958 Jy
! Component: 200  -  total flux cleaned = 0.0170222 Jy
! Total flux subtracted in 200 components = 0.0170222 Jy
! Clean residual min=-0.003310 max=0.004339 Jy/beam
! Clean residual mean=0.000034 rms=0.000954 Jy/beam
! Combined flux in latest and established models = 0.502806 Jy
! Performing phase self-cal
! Adding 53 model components to the UV plane model.
! The established model now contains 146 components and 0.502805 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.183773Jy  sigma=0.001435
! Fit after  self-cal, rms=0.183741Jy  sigma=0.001435
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.99     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        0.93     KK        1.07     KP        0.83     
!   MA        1.00*    MC        1.00*    MK        1.08     NL        0.97     
!   NY        1.04     OV        0.97     PT        0.90     SC        1.04     
!   TS        1.00*    WF        0.97     WZ        1.03     LA        1.00*    
! 
!  A total of 141 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.06     GC        1.09     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.01     KP        0.96     
!   MA        1.00*    MC        1.00*    MK        1.04     NL        1.03     
!   NY        1.05     OV        1.00     PT        0.98     SC        1.02     
!   TS        0.99     WF        1.06     WZ        1.05     LA        1.01     
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.00*    GC        1.00     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.00     KP        0.91     
!   MA        1.00*    MC        1.00*    MK        1.00     NL        0.96     
!   NY        0.99     OV        1.01     PT        0.98     SC        1.00     
!   TS        1.00*    WF        1.00     WZ        1.00*    LA        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.06     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.94     KP        1.05     
!   MA        1.00*    MC        1.00*    MK        1.05     NL        1.03     
!   NY        0.92     OV        1.05     PT        0.96     SC        1.00*    
!   TS        1.05     WF        1.00*    WZ        1.00*    LA        0.96     
! 
! 
! Correcting IF 2.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.02     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.09     KP        0.86     
!   MA        1.00*    MC        1.00*    MK        1.02     NL        0.96     
!   NY        1.00     OV        0.96     PT        0.91     SC        1.00     
!   TS        1.00*    WF        0.98     WZ        1.01     LA        1.00*    
! 
!  A total of 198 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.06     GC        1.12     GG        1.00*    
!   HH        1.07     HN        1.06     KK        0.98     KP        0.97     
!   MA        1.00*    MC        1.00*    MK        1.00     NL        1.04     
!   NY        1.03     OV        0.98     PT        1.00     SC        1.07     
!   TS        1.01     WF        0.98     WZ        1.10     LA        0.96     
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.00*    GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        0.98     KP        0.93     
!   MA        1.00*    MC        1.00*    MK        0.97     NL        1.00     
!   NY        1.07     OV        0.98     PT        0.96     SC        1.03     
!   TS        1.00*    WF        0.97     WZ        1.00*    LA        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.02     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.98     KP        1.04     
!   MA        1.00*    MC        1.00*    MK        0.99     NL        1.11     
!   NY        1.02     OV        1.00     PT        0.98     SC        1.00*    
!   TS        1.01     WF        1.00*    WZ        1.00*    LA        0.96     
! 
! 
! Correcting IF 3.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        0.98     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.05     KP        0.90     
!   MA        1.00*    MC        1.00*    MK        1.04     NL        0.94     
!   NY        1.01     OV        1.00     PT        0.98     SC        1.06     
!   TS        1.00*    WF        0.94     WZ        0.98     LA        1.00*    
! 
!  A total of 141 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.05     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        0.92     KP        0.98     
!   MA        1.00*    MC        1.00*    MK        0.96     NL        0.98     
!   NY        1.06     OV        1.00     PT        0.98     SC        1.06     
!   TS        1.01     WF        1.01     WZ        1.08     LA        1.01     
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.93     FD        1.00*    GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        0.96     KP        1.01     
!   MA        1.00*    MC        1.00*    MK        0.97     NL        0.95     
!   NY        0.99     OV        1.03     PT        0.96     SC        1.02     
!   TS        1.00*    WF        0.97     WZ        1.00*    LA        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.93     FD        1.03     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.95     KP        0.94     
!   MA        1.00*    MC        1.00*    MK        0.96     NL        1.06     
!   NY        0.95     OV        0.99     PT        0.99     SC        1.00*    
!   TS        1.06     WF        1.00*    WZ        1.00*    LA        1.03     
! 
! 
! Correcting IF 4.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.96     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.03     KP        0.92     
!   MA        1.00*    MC        1.00*    MK        1.08     NL        0.96     
!   NY        1.00     OV        0.95     PT        1.23     SC        1.00     
!   TS        1.00*    WF        0.96     WZ        1.01     LA        1.00*    
! 
!  A total of 207 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.03     GC        1.02     GG        1.00*    
!   HH        1.15     HN        1.02     KK        0.96     KP        0.98     
!   MA        1.00*    MC        1.00*    MK        1.00     NL        1.00     
!   NY        1.00     OV        0.99     PT        1.02     SC        1.07     
!   TS        1.01     WF        0.97     WZ        1.04     LA        1.01     
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.00*    GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        0.97     KP        0.99     
!   MA        1.00*    MC        1.00*    MK        1.01     NL        0.98     
!   NY        0.96     OV        1.02     PT        1.08     SC        1.02     
!   TS        1.00*    WF        0.97     WZ        1.00*    LA        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.03     GC        0.94     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.91     KP        1.02     
!   MA        1.00*    MC        1.00*    MK        1.07     NL        1.05     
!   NY        1.00     OV        0.94     PT        1.01     SC        1.00*    
!   TS        0.98     WF        1.00*    WZ        1.00*    LA        1.04     
! 
! 
! Fit before self-cal, rms=0.183741Jy  sigma=0.001435
! Fit after  self-cal, rms=0.184884Jy  sigma=0.001425
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.447 mas, bmaj=3.899 mas, bpa=0.3238 degrees
! Estimated noise=322.938 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.00303894 Jy
! Component: 100  -  total flux cleaned = 0.00481047 Jy
! Component: 150  -  total flux cleaned = 0.00629734 Jy
! Component: 200  -  total flux cleaned = 0.00750883 Jy
! Total flux subtracted in 200 components = 0.00750883 Jy
! Clean residual min=-0.003108 max=0.003453 Jy/beam
! Clean residual mean=-0.000022 rms=0.000822 Jy/beam
! Combined flux in latest and established models = 0.510314 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 169 components and 0.510314 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.184803Jy  sigma=0.001424
! Fit after  self-cal, rms=0.184828Jy  sigma=0.001424
! 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.184828Jy  sigma=0.001424
! Fit after  self-cal, rms=0.185048Jy  sigma=0.001411
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.451 mas, bmaj=3.908 mas, bpa=0.5625 degrees
! Estimated noise=323.131 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00263481 Jy
! Component: 100  -  total flux cleaned = 0.00384019 Jy
! Component: 150  -  total flux cleaned = 0.00474547 Jy
! Component: 200  -  total flux cleaned = 0.00520284 Jy
! Total flux subtracted in 200 components = 0.00520284 Jy
! Clean residual min=-0.001872 max=0.003091 Jy/beam
! Clean residual mean=0.000061 rms=0.000535 Jy/beam
! Combined flux in latest and established models = 0.515517 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 184 components and 0.515517 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.184996Jy  sigma=0.001411
! Fit after  self-cal, rms=0.185010Jy  sigma=0.001410
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 (-33, 15).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00279437 Jy
! Component: 100  -  total flux cleaned = 0.00380303 Jy
! Component: 150  -  total flux cleaned = 0.00436426 Jy
! Component: 200  -  total flux cleaned = 0.00491396 Jy
! Total flux subtracted in 200 components = 0.00491396 Jy
! Clean residual min=-0.001801 max=0.002523 Jy/beam
! Clean residual mean=0.000021 rms=0.000502 Jy/beam
! Combined flux in latest and established models = 0.520431 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 198 components and 0.520431 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.184961Jy  sigma=0.001410
! Fit after  self-cal, rms=0.184955Jy  sigma=0.001410
! Inverting map 
! Added new window around map position (-15.5, 16.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00281259 Jy
! Component: 100  -  total flux cleaned = 0.00436735 Jy
! Component: 150  -  total flux cleaned = 0.00469126 Jy
! Component: 200  -  total flux cleaned = 0.00478353 Jy
! Total flux subtracted in 200 components = 0.00478353 Jy
! Clean residual min=-0.001731 max=0.001693 Jy/beam
! Clean residual mean=-0.000013 rms=0.000464 Jy/beam
! Combined flux in latest and established models = 0.525215 Jy
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 224 components and 0.525215 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.184908Jy  sigma=0.001409
! Fit after  self-cal, rms=0.184902Jy  sigma=0.001409
! 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.184902Jy  sigma=0.001409
! Fit after  self-cal, rms=0.185302Jy  sigma=0.001409
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.452 mas, bmaj=3.909 mas, bpa=0.595 degrees
! Estimated noise=323.093 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00156619 Jy
! Component: 100  -  total flux cleaned = 0.00233617 Jy
! Component: 150  -  total flux cleaned = 0.00288402 Jy
! Component: 200  -  total flux cleaned = 0.00334073 Jy
! Total flux subtracted in 200 components = 0.00334073 Jy
! Clean residual min=-0.001708 max=0.001638 Jy/beam
! Clean residual mean=0.000010 rms=0.000439 Jy/beam
! Combined flux in latest and established models = 0.528555 Jy
selfcal
! Performing phase self-cal
! Adding 45 model components to the UV plane model.
! The established model now contains 237 components and 0.528555 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.185279Jy  sigma=0.001408
! Fit after  self-cal, rms=0.185283Jy  sigma=0.001408
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.000512898 Jy
! Component: 100  -  total flux cleaned = 0.000896232 Jy
! Component: 150  -  total flux cleaned = 0.00104057 Jy
! Component: 200  -  total flux cleaned = 0.0012115 Jy
! Total flux subtracted in 200 components = 0.0012115 Jy
! Clean residual min=-0.001707 max=0.001634 Jy/beam
! Clean residual mean=0.000001 rms=0.000434 Jy/beam
! Combined flux in latest and established models = 0.529767 Jy
! Performing phase self-cal
! Adding 49 model components to the UV plane model.
! The established model now contains 245 components and 0.529767 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.185268Jy  sigma=0.001408
! Fit after  self-cal, rms=0.185268Jy  sigma=0.001408
! 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.185268Jy  sigma=0.001408
! Fit after  self-cal, rms=0.185365Jy  sigma=0.001408
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.869 mas, bmaj=8.447 mas, bpa=6.625 degrees
! Estimated noise=448.962 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00114639 Jy
! Component: 100  -  total flux cleaned = 0.0016211 Jy
! Component: 150  -  total flux cleaned = 0.0018694 Jy
! Component: 200  -  total flux cleaned = 0.00199261 Jy
! Total flux subtracted in 200 components = 0.00199261 Jy
! Clean residual min=-0.001824 max=0.001846 Jy/beam
! Clean residual mean=-0.000001 rms=0.000557 Jy/beam
! Combined flux in latest and established models = 0.53176 Jy
selfcal
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 266 components and 0.53176 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.185359Jy  sigma=0.001408
! Fit after  self-cal, rms=0.185359Jy  sigma=0.001408
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.000242797 Jy
! Component: 100  -  total flux cleaned = 0.000351363 Jy
! Component: 150  -  total flux cleaned = 0.000399787 Jy
! Component: 200  -  total flux cleaned = 0.000444205 Jy
! Total flux subtracted in 200 components = 0.000444205 Jy
! Clean residual min=-0.001899 max=0.001841 Jy/beam
! Clean residual mean=-0.000010 rms=0.000559 Jy/beam
! Combined flux in latest and established models = 0.532204 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 277 components and 0.532204 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.185356Jy  sigma=0.001408
! Fit after  self-cal, rms=0.185355Jy  sigma=0.001408
! 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.453 mas, bmaj=3.909 mas, bpa=0.6148 degrees
! Estimated noise=323.099 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.453 x 3.909 at 0.6148 degrees (North through East)
! Clean map  min=-0.0014817  max=0.27973 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=2.033 mas, bmaj=3.038 mas, bpa=2.02 degrees
! Estimated noise=621.853 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.21089 Jy
! Component: 100  -  total flux cleaned = 0.279047 Jy
! Component: 150  -  total flux cleaned = 0.320351 Jy
! Component: 200  -  total flux cleaned = 0.349412 Jy
! Total flux subtracted in 200 components = 0.349412 Jy
! Clean residual min=-0.005551 max=0.016196 Jy/beam
! Clean residual mean=0.000065 rms=0.001575 Jy/beam
! Combined flux in latest and established models = 0.349412 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 15 model components to the UV plane model.
! The established model now contains 15 components and 0.349412 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.453 mas, bmaj=3.909 mas, bpa=0.6148 degrees
! Estimated noise=323.099 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.0398159 Jy
! Component: 100  -  total flux cleaned = 0.0652011 Jy
! Component: 150  -  total flux cleaned = 0.083 Jy
! Component: 200  -  total flux cleaned = 0.0965719 Jy
! Total flux subtracted in 200 components = 0.0965719 Jy
! Clean residual min=-0.002849 max=0.008315 Jy/beam
! Clean residual mean=0.000676 rms=0.001455 Jy/beam
! Combined flux in latest and established models = 0.445983 Jy
! Adding 68 model components to the UV plane model.
! The established model now contains 73 components and 0.445983 Jy
! Inverting map 
! Added new window around map position (-1, 3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.011086 Jy
! Component: 100  -  total flux cleaned = 0.0203892 Jy
! Component: 150  -  total flux cleaned = 0.0283043 Jy
! Component: 200  -  total flux cleaned = 0.0351396 Jy
! Total flux subtracted in 200 components = 0.0351396 Jy
! Clean residual min=-0.002299 max=0.004416 Jy/beam
! Clean residual mean=0.000401 rms=0.000907 Jy/beam
! Combined flux in latest and established models = 0.481123 Jy
! Adding 75 model components to the UV plane model.
! The established model now contains 133 components and 0.481123 Jy
! Inverting map 
! Added new window around map position (-26.5, 12.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00598331 Jy
! Component: 100  -  total flux cleaned = 0.0112366 Jy
! Component: 150  -  total flux cleaned = 0.0158656 Jy
! Component: 200  -  total flux cleaned = 0.0199625 Jy
! Total flux subtracted in 200 components = 0.0199625 Jy
! Clean residual min=-0.002031 max=0.002755 Jy/beam
! Clean residual mean=0.000244 rms=0.000647 Jy/beam
! Combined flux in latest and established models = 0.501086 Jy
! Adding 74 model components to the UV plane model.
! The established model now contains 175 components and 0.501086 Jy
! Inverting map 
! Added new window around map position (-11, 17.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00366055 Jy
! Component: 100  -  total flux cleaned = 0.00691381 Jy
! Component: 150  -  total flux cleaned = 0.00981768 Jy
! Component: 200  -  total flux cleaned = 0.0124176 Jy
! Total flux subtracted in 200 components = 0.0124176 Jy
! Clean residual min=-0.001894 max=0.001964 Jy/beam
! Clean residual mean=0.000146 rms=0.000518 Jy/beam
! Combined flux in latest and established models = 0.513503 Jy
! Adding 77 model components to the UV plane model.
! The established model now contains 206 components and 0.513503 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.869 mas, bmaj=8.447 mas, bpa=6.625 degrees
! Estimated noise=448.962 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0053456 Jy
! Component: 100  -  total flux cleaned = 0.00899487 Jy
! Component: 150  -  total flux cleaned = 0.0116428 Jy
! Component: 200  -  total flux cleaned = 0.0136158 Jy
! Total flux subtracted in 200 components = 0.0136158 Jy
! Clean residual min=-0.001648 max=0.001928 Jy/beam
! Clean residual mean=0.000113 rms=0.000596 Jy/beam
! Combined flux in latest and established models = 0.527119 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.00149361 Jy
! Component: 100  -  total flux cleaned = 0.00263507 Jy
! Component: 150  -  total flux cleaned = 0.00351081 Jy
! Component: 200  -  total flux cleaned = 0.00418428 Jy
! Total flux subtracted in 200 components = 0.00418428 Jy
! Clean residual min=-0.001779 max=0.001879 Jy/beam
! Clean residual mean=0.000010 rms=0.000554 Jy/beam
! Combined flux in latest and established models = 0.531303 Jy
! Adding 150 model components to the UV plane model.
! The established model now contains 330 components and 0.531303 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.453 mas, bmaj=3.909 mas, bpa=0.6148 degrees
! Estimated noise=323.099 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000100448 Jy
! Component: 100  -  total flux cleaned = 0.000181247 Jy
! Component: 150  -  total flux cleaned = 0.000256836 Jy
! Component: 200  -  total flux cleaned = 0.000257683 Jy
! Total flux subtracted in 200 components = 0.000257683 Jy
! Clean residual min=-0.001718 max=0.001836 Jy/beam
! Clean residual mean=0.000002 rms=0.000420 Jy/beam
! Combined flux in latest and established models = 0.531561 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 349 components and 0.531561 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.185315Jy  sigma=0.001408
! Fit after  self-cal, rms=0.185314Jy  sigma=0.001408
wmodel J0205+3212_S_2000_05_22_pus_map.mod
! Writing 349 model components to file: J0205+3212_S_2000_05_22_pus_map.mod
wobs J0205+3212_S_2000_05_22_pus_uvs.fits
! Writing UV FITS file: J0205+3212_S_2000_05_22_pus_uvs.fits
wwins J0205+3212_S_2000_05_22_pus_map.win
! wwins: Wrote 10 windows to J0205+3212_S_2000_05_22_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000211545 Jy
! Component: 100  -  total flux cleaned = 0.000183129 Jy
! Component: 150  -  total flux cleaned = 0.000211363 Jy
! Component: 200  -  total flux cleaned = 0.000157093 Jy
! Component: 250  -  total flux cleaned = 5.15619e-05 Jy
! Component: 300  -  total flux cleaned = 0.000102322 Jy
! Component: 350  -  total flux cleaned = 0.000102425 Jy
! Component: 400  -  total flux cleaned = 0.000176753 Jy
! Component: 450  -  total flux cleaned = 0.000225499 Jy
! Component: 500  -  total flux cleaned = 0.000297575 Jy
! Component: 550  -  total flux cleaned = 0.000321266 Jy
! Component: 600  -  total flux cleaned = 0.000368267 Jy
! Component: 650  -  total flux cleaned = 0.000414823 Jy
! Component: 700  -  total flux cleaned = 0.000460666 Jy
! Component: 750  -  total flux cleaned = 0.000505902 Jy
! Component: 800  -  total flux cleaned = 0.000483486 Jy
! Component: 850  -  total flux cleaned = 0.000527819 Jy
! Component: 900  -  total flux cleaned = 0.000461851 Jy
! Component: 950  -  total flux cleaned = 0.000483681 Jy
! Component: 1000  -  total flux cleaned = 0.00041879 Jy
! Component: 1050  -  total flux cleaned = 0.000418895 Jy
! Component: 1100  -  total flux cleaned = 0.000440065 Jy
! Component: 1150  -  total flux cleaned = 0.000355676 Jy
! Component: 1200  -  total flux cleaned = 0.000334858 Jy
! Component: 1250  -  total flux cleaned = 0.000293446 Jy
! Component: 1300  -  total flux cleaned = 0.000314114 Jy
! Component: 1350  -  total flux cleaned = 0.000252646 Jy
! Component: 1400  -  total flux cleaned = 0.00023248 Jy
! Component: 1450  -  total flux cleaned = 0.000212274 Jy
! Component: 1500  -  total flux cleaned = 0.000212401 Jy
! Component: 1550  -  total flux cleaned = 0.000152584 Jy
! Component: 1600  -  total flux cleaned = 0.000172468 Jy
! Component: 1650  -  total flux cleaned = 9.3541e-05 Jy
! Component: 1700  -  total flux cleaned = 9.35844e-05 Jy
! Component: 1750  -  total flux cleaned = 3.51938e-05 Jy
! Component: 1800  -  total flux cleaned = 5.47478e-05 Jy
! Component: 1850  -  total flux cleaned = -2.96165e-06 Jy
! Component: 1900  -  total flux cleaned = -2.212e-05 Jy
! Component: 1950  -  total flux cleaned = -4.1055e-05 Jy
! Component: 2000  -  total flux cleaned = -5.99685e-05 Jy
! Total flux subtracted in 2048 components = -7.87665e-05 Jy
! Clean residual min=-0.001126 max=0.001206 Jy/beam
! Clean residual mean=-0.000002 rms=0.000358 Jy/beam
! Combined flux in latest and established models = 0.531482 Jy
keep
! Adding 145 model components to the UV plane model.
! The established model now contains 494 components and 0.531483 Jy
![Exited script file: muppet]
wmap "J0205+3212_S_2000_05_22_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.453 x 3.909 at 0.6148 degrees (North through East)
! Clean map  min=-0.0014814  max=0.28063 Jy/beam
! Writing clean map to FITS file: J0205+3212_S_2000_05_22_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.280633 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000358799 
device "J0205+3212_S_2000_05_22_pus\_map.eps/VPS"
! Attempting to open device: 'J0205+3212_S_2000_05_22_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.38356 0.38356 0.76712 1.53424 3.06848 6.13696 12.2739 24.5479 49.0957 98.1914
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.001 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.28 
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.453 x 3.909 at 0.6148 degrees (North through East)
! Clean map  min=-0.0014814  max=0.28063 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0205+3212_S_2000_05_22_pus\_map.gif/vgif"
! Attempting to open device: 'J0205+3212_S_2000_05_22_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0205+3212_S_2000_05_22_pus_uvs.log closed on Tue Nov 20 12:01:15 2007