! Started logfile: J0555+3948_S_2003_09_17_pus_uvs.log on Tue May 22 12:13:14 2007
obs J0555+3948_S_2003_09_17_pus_uva.fits
! Reading UV FITS file: J0555+3948_S_2003_09_17_pus_uva.fits
! AN table 1: 68 integrations on 120 of 120 possible baselines.
! AN table 2: 121 integrations on 120 of 120 possible baselines.
! AN table 3: 143 integrations on 120 of 120 possible baselines.
! AN table 4: 63 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.111139 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0555+3948
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! 
! 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.23697e+09        8e+06          1        8e+06
!  02        2  2.26697e+09        8e+06          1        8e+06
!  03        3  2.35697e+09        8e+06          1        8e+06
!  04        4  2.37697e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1732 lines of history.
! 
! Reading 21072 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 
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 721 telescope corrections were flagged in sub-array 1.
!  A total of 1326 telescope corrections were flagged in sub-array 2.
!  A total of 1837 telescope corrections were flagged in sub-array 3.
!  A total of 734 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 721 telescope corrections were flagged in sub-array 1.
!  A total of 1326 telescope corrections were flagged in sub-array 2.
!  A total of 1837 telescope corrections were flagged in sub-array 3.
!  A total of 734 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 721 telescope corrections were flagged in sub-array 1.
!  A total of 1326 telescope corrections were flagged in sub-array 2.
!  A total of 1837 telescope corrections were flagged in sub-array 3.
!  A total of 734 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 721 telescope corrections were flagged in sub-array 1.
!  A total of 1326 telescope corrections were flagged in sub-array 2.
!  A total of 1837 telescope corrections were flagged in sub-array 3.
!  A total of 734 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=2.535550Jy  sigma=0.015738
! Fit after  self-cal, rms=2.083762Jy  sigma=0.013433
! 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.077 mas, bmaj=2.921 mas, bpa=14.06 degrees
! Estimated noise=1360.92 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 = 2.2105 Jy
! Component: 100  -  total flux cleaned = 2.8087 Jy
! Total flux subtracted in 100 components = 2.8087 Jy
! Clean residual min=-0.094247 max=0.264304 Jy/beam
! Clean residual mean=-0.000048 rms=0.024030 Jy/beam
! Combined flux in latest and established models = 2.8087 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 2.8087 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.669201Jy  sigma=0.004129
! Fit after  self-cal, rms=0.669118Jy  sigma=0.004128
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.28349 Jy
! Component: 100  -  total flux cleaned = 0.437809 Jy
! Total flux subtracted in 100 components = 0.437809 Jy
! Clean residual min=-0.067829 max=0.081985 Jy/beam
! Clean residual mean=0.000006 rms=0.015392 Jy/beam
! Combined flux in latest and established models = 3.24651 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 16 components and 3.24651 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.536311Jy  sigma=0.002840
! Fit after  self-cal, rms=0.536160Jy  sigma=0.002839
! 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.439 mas, bmaj=3.426 mas, bpa=16.42 degrees
! Estimated noise=867.792 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.127103 Jy
! Component: 100  -  total flux cleaned = 0.195832 Jy
! Component: 150  -  total flux cleaned = 0.235722 Jy
! Component: 200  -  total flux cleaned = 0.259249 Jy
! Total flux subtracted in 200 components = 0.259249 Jy
! Clean residual min=-0.047548 max=0.050810 Jy/beam
! Clean residual mean=-0.000399 rms=0.012264 Jy/beam
! Combined flux in latest and established models = 3.50576 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 27 components and 3.50576 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.518376Jy  sigma=0.002511
! Fit after  self-cal, rms=0.518299Jy  sigma=0.002511
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.02     GC        1.00     HN        1.46     KP        0.96     
!   LA        1.01     MK        0.96     NL        1.02     NY        1.01     
!   ON        1.02     OV        0.86     PT        1.02     SC        1.00*    
!   TS        1.04     KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.95     GC        0.97     HN        0.96     KP        1.12     
!   LA        0.95     MK        1.00*    NL        0.98     NY        1.02     
!   ON        1.05     OV        1.00*    PT        1.05     SC        0.98     
!   TS        0.98     KK        1.00*    WZ        1.01     WF        1.01     
! 
!  A total of 129 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.00*    GC        1.00     HN        0.98     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        1.03     
!   ON        0.99     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.15     KK        1.00*    WZ        1.01     WF        0.98     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.01     GC        0.98     HN        0.92     KP        0.95     
!   LA        0.97     MK        1.00*    NL        1.01     NY        1.01     
!   ON        1.00*    OV        1.05     PT        0.98     SC        0.98     
!   TS        1.06     KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.03     GC        0.95     HN        1.58     KP        1.05     
!   LA        1.02     MK        1.03     NL        1.05     NY        1.02     
!   ON        1.01     OV        1.05     PT        1.00     SC        1.00*    
!   TS        1.02     KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.95     GC        0.92     HN        1.02     KP        1.19     
!   LA        0.95     MK        1.00*    NL        1.02     NY        1.03     
!   ON        1.00     OV        1.00*    PT        1.01     SC        1.02     
!   TS        0.97     KK        1.00*    WZ        0.98     WF        0.98     
! 
!  A total of 129 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.00*    GC        0.94     HN        1.02     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        1.03     
!   ON        0.97     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.15     KK        1.00*    WZ        0.98     WF        0.97     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.01     GC        0.94     HN        1.01     KP        1.02     
!   LA        0.98     MK        1.00*    NL        1.04     NY        1.02     
!   ON        1.00*    OV        0.95     PT        0.96     SC        1.02     
!   TS        1.05     KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.97     GC        1.01     HN        1.57     KP        1.03     
!   LA        0.96     MK        0.98     NL        0.97     NY        1.00     
!   ON        0.99     OV        1.23     PT        1.02     SC        1.00*    
!   TS        1.04     KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.92     GC        0.98     HN        1.00     KP        1.18     
!   LA        0.90     MK        1.00*    NL        0.94     NY        0.97     
!   ON        0.99     OV        1.00*    PT        1.03     SC        1.02     
!   TS        0.98     KK        1.00*    WZ        0.96     WF        0.99     
! 
!  A total of 129 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.00*    GC        0.99     HN        1.00     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        0.98     
!   ON        0.99     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.17     KK        1.00*    WZ        0.96     WF        0.98     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.97     GC        0.99     HN        1.00     KP        0.99     
!   LA        0.92     MK        1.00*    NL        0.96     NY        0.96     
!   ON        1.00*    OV        0.95     PT        0.98     SC        1.02     
!   TS        1.07     KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00     GC        1.03     HN        1.50     KP        1.02     
!   LA        1.00     MK        0.92     NL        0.99     NY        0.95     
!   ON        0.99     OV        1.25     PT        0.96     SC        1.00*    
!   TS        1.74     KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.91     GC        1.00     HN        0.94     KP        1.15     
!   LA        0.94     MK        1.00*    NL        0.96     NY        0.97     
!   ON        0.98     OV        1.00*    PT        0.99     SC        1.01     
!   TS        1.06     KK        1.00*    WZ        0.99     WF        0.98     
! 
!  A total of 129 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.00*    GC        1.00     HN        0.98     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        0.97     
!   ON        0.96     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.13     KK        1.00*    WZ        0.98     WF        1.00     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.95     GC        0.99     HN        0.82     KP        0.99     
!   LA        0.95     MK        1.00*    NL        0.98     NY        0.95     
!   ON        1.00*    OV        0.96     PT        0.93     SC        1.01     
!   TS        1.05     KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Fit before self-cal, rms=0.518299Jy  sigma=0.002511
! Fit after  self-cal, rms=0.410382Jy  sigma=0.001600
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.46 mas, bmaj=3.437 mas, bpa=16.6 degrees
! Estimated noise=873.393 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.0256251 Jy
! Component: 100  -  total flux cleaned = -0.0263996 Jy
! Component: 150  -  total flux cleaned = -0.0274587 Jy
! Component: 200  -  total flux cleaned = -0.0278622 Jy
! Total flux subtracted in 200 components = -0.0278622 Jy
! Clean residual min=-0.015190 max=0.014872 Jy/beam
! Clean residual mean=0.000020 rms=0.003451 Jy/beam
! Combined flux in latest and established models = 3.4779 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 38 components and 3.4779 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.407173Jy  sigma=0.001579
! Fit after  self-cal, rms=0.407484Jy  sigma=0.001578
! 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.407484Jy  sigma=0.001578
! Fit after  self-cal, rms=0.404966Jy  sigma=0.001534
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.468 mas, bmaj=3.437 mas, bpa=16.19 degrees
! Estimated noise=874.063 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0149341 Jy
! Component: 100  -  total flux cleaned = -0.0158099 Jy
! Component: 150  -  total flux cleaned = -0.016491 Jy
! Component: 200  -  total flux cleaned = -0.0170359 Jy
! Total flux subtracted in 200 components = -0.0170359 Jy
! Clean residual min=-0.012837 max=0.011344 Jy/beam
! Clean residual mean=0.000111 rms=0.002606 Jy/beam
! Combined flux in latest and established models = 3.46086 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 42 components and 3.46086 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.403616Jy  sigma=0.001526
! Fit after  self-cal, rms=0.403619Jy  sigma=0.001526
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.000278159 Jy
! Component: 100  -  total flux cleaned = -0.000682049 Jy
! Component: 150  -  total flux cleaned = -0.000689057 Jy
! Component: 200  -  total flux cleaned = -0.000872447 Jy
! Total flux subtracted in 200 components = -0.000872447 Jy
! Clean residual min=-0.011953 max=0.011574 Jy/beam
! Clean residual mean=0.000122 rms=0.002562 Jy/beam
! Combined flux in latest and established models = 3.45999 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 45 components and 3.45999 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.403378Jy  sigma=0.001524
! Fit after  self-cal, rms=0.403372Jy  sigma=0.001524
! 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.403372Jy  sigma=0.001524
! Fit after  self-cal, rms=0.396030Jy  sigma=0.001494
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.479 mas, bmaj=3.439 mas, bpa=16.12 degrees
! Estimated noise=875.56 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00946745 Jy
! Component: 100  -  total flux cleaned = -0.00996051 Jy
! Component: 150  -  total flux cleaned = -0.0105699 Jy
! Component: 200  -  total flux cleaned = -0.0109187 Jy
! Total flux subtracted in 200 components = -0.0109187 Jy
! Clean residual min=-0.011019 max=0.008032 Jy/beam
! Clean residual mean=-0.000060 rms=0.001964 Jy/beam
! Combined flux in latest and established models = 3.44907 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 50 components and 3.44907 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.395486Jy  sigma=0.001491
! Fit after  self-cal, rms=0.395446Jy  sigma=0.001491
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.000514161 Jy
! Component: 100  -  total flux cleaned = -0.000964631 Jy
! Component: 150  -  total flux cleaned = -0.00138905 Jy
! Component: 200  -  total flux cleaned = -0.00179382 Jy
! Total flux subtracted in 200 components = -0.00179382 Jy
! Clean residual min=-0.009814 max=0.007966 Jy/beam
! Clean residual mean=-0.000037 rms=0.001933 Jy/beam
! Combined flux in latest and established models = 3.44728 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 52 components and 3.44728 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.395316Jy  sigma=0.001490
! Fit after  self-cal, rms=0.395311Jy  sigma=0.001490
! 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.395311Jy  sigma=0.001490
! Fit after  self-cal, rms=0.395857Jy  sigma=0.001488
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.338 mas, bmaj=9.039 mas, bpa=31.25 degrees
! Estimated noise=1300.13 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0117979 Jy
! Component: 100  -  total flux cleaned = -0.0154915 Jy
! Component: 150  -  total flux cleaned = -0.0167142 Jy
! Component: 200  -  total flux cleaned = -0.0167923 Jy
! Total flux subtracted in 200 components = -0.0167923 Jy
! Clean residual min=-0.006921 max=0.008181 Jy/beam
! Clean residual mean=0.000291 rms=0.002609 Jy/beam
! Combined flux in latest and established models = 3.43049 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 57 components and 3.43048 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.395833Jy  sigma=0.001489
! Fit after  self-cal, rms=0.395813Jy  sigma=0.001489
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.000229026 Jy
! Component: 100  -  total flux cleaned = -0.0002314 Jy
! Component: 150  -  total flux cleaned = -0.000257646 Jy
! Component: 200  -  total flux cleaned = -0.000282473 Jy
! Total flux subtracted in 200 components = -0.000282473 Jy
! Clean residual min=-0.006877 max=0.008281 Jy/beam
! Clean residual mean=0.000302 rms=0.002615 Jy/beam
! Combined flux in latest and established models = 3.4302 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 59 components and 3.4302 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.395812Jy  sigma=0.001489
! Fit after  self-cal, rms=0.395808Jy  sigma=0.001489
! 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.485 mas, bmaj=3.441 mas, bpa=16.05 degrees
! Estimated noise=876.18 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.485 x 3.441 at 16.05 degrees (North through East)
! Clean map  min=-0.0072286  max=2.9757 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.395808Jy  sigma=0.001489
! Fit after  self-cal, rms=2.071110Jy  sigma=0.001127
! Inverting map and beam 
! Estimated beam: bmin=2.485 mas, bmaj=3.446 mas, bpa=16.09 degrees
! Estimated noise=874.904 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00682617 Jy
! Component: 100  -  total flux cleaned = -0.00725174 Jy
! Component: 150  -  total flux cleaned = -0.00760096 Jy
! Component: 200  -  total flux cleaned = -0.0077513 Jy
! Total flux subtracted in 200 components = -0.0077513 Jy
! Clean residual min=-0.009563 max=0.006461 Jy/beam
! Clean residual mean=-0.000005 rms=0.001494 Jy/beam
! Combined flux in latest and established models = 3.42245 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 59 components and 3.42245 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.071146Jy  sigma=0.001125
! Fit after  self-cal, rms=2.071415Jy  sigma=0.001124
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000286237 Jy
! Component: 100  -  total flux cleaned = -0.000286171 Jy
! Component: 150  -  total flux cleaned = -0.000511939 Jy
! Component: 200  -  total flux cleaned = -0.000720941 Jy
! Total flux subtracted in 200 components = -0.000720941 Jy
! Clean residual min=-0.008865 max=0.006354 Jy/beam
! Clean residual mean=0.000004 rms=0.001469 Jy/beam
! Combined flux in latest and established models = 3.42173 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 59 components and 3.42173 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.071446Jy  sigma=0.001124
! Fit after  self-cal, rms=2.071499Jy  sigma=0.001124
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.071499Jy  sigma=0.001124
! Fit after  self-cal, rms=2.024843Jy  sigma=0.001123
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.127 mas, bmaj=2.943 mas, bpa=14.69 degrees
! Estimated noise=1405.04 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.25169 Jy
! Component: 100  -  total flux cleaned = 2.81269 Jy
! Component: 150  -  total flux cleaned = 3.06527 Jy
! Component: 200  -  total flux cleaned = 3.19607 Jy
! Total flux subtracted in 200 components = 3.19607 Jy
! Clean residual min=-0.021778 max=0.068389 Jy/beam
! Clean residual mean=-0.000023 rms=0.006844 Jy/beam
! Combined flux in latest and established models = 3.19607 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 14 model components to the UV plane model.
! The established model now contains 14 components and 3.19607 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.49 mas, bmaj=3.446 mas, bpa=16 degrees
! Estimated noise=875.486 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.109319 Jy
! Component: 100  -  total flux cleaned = 0.166346 Jy
! Component: 150  -  total flux cleaned = 0.196441 Jy
! Component: 200  -  total flux cleaned = 0.212398 Jy
! Total flux subtracted in 200 components = 0.212398 Jy
! Clean residual min=-0.008106 max=0.009509 Jy/beam
! Clean residual mean=0.000130 rms=0.001981 Jy/beam
! Combined flux in latest and established models = 3.40846 Jy
! Adding 14 model components to the UV plane model.
! The established model now contains 22 components and 3.40846 Jy
! Inverting map 
! Added new window around map position (13.5, 6.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00676716 Jy
! Component: 100  -  total flux cleaned = 0.00870074 Jy
! Component: 150  -  total flux cleaned = 0.00928092 Jy
! Component: 200  -  total flux cleaned = 0.00955465 Jy
! Total flux subtracted in 200 components = 0.00955465 Jy
! Clean residual min=-0.009922 max=0.007767 Jy/beam
! Clean residual mean=0.000007 rms=0.001844 Jy/beam
! Combined flux in latest and established models = 3.41802 Jy
! Adding 15 model components to the UV plane model.
! The established model now contains 29 components and 3.41802 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=8.348 mas, bmaj=9.046 mas, bpa=30.62 degrees
! Estimated noise=1294.26 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00388986 Jy
! Component: 100  -  total flux cleaned = -0.00514745 Jy
! Component: 150  -  total flux cleaned = -0.00529151 Jy
! Component: 200  -  total flux cleaned = -0.00537908 Jy
! Total flux subtracted in 200 components = -0.00537908 Jy
! Clean residual min=-0.005783 max=0.006948 Jy/beam
! Clean residual mean=0.000257 rms=0.002053 Jy/beam
! Combined flux in latest and established models = 3.41264 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 = -3.97148e-05 Jy
! Component: 100  -  total flux cleaned = -0.000121378 Jy
! Component: 150  -  total flux cleaned = -0.000162177 Jy
! Component: 200  -  total flux cleaned = -0.000235605 Jy
! Total flux subtracted in 200 components = -0.000235605 Jy
! Clean residual min=-0.005740 max=0.006988 Jy/beam
! Clean residual mean=0.000267 rms=0.002054 Jy/beam
! Combined flux in latest and established models = 3.4124 Jy
! Adding 7 model components to the UV plane model.
! The established model now contains 36 components and 3.4124 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.49 mas, bmaj=3.446 mas, bpa=16 degrees
! Estimated noise=875.486 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00371849 Jy
! Component: 100  -  total flux cleaned = 0.00466399 Jy
! Component: 150  -  total flux cleaned = 0.0046684 Jy
! Component: 200  -  total flux cleaned = 0.00447486 Jy
! Total flux subtracted in 200 components = 0.00447486 Jy
! Clean residual min=-0.010271 max=0.007688 Jy/beam
! Clean residual mean=0.000023 rms=0.001769 Jy/beam
! Combined flux in latest and established models = 3.41688 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 45 components and 3.41688 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.025291Jy  sigma=0.001136
! Fit after  self-cal, rms=2.024409Jy  sigma=0.001136
wmodel J0555+3948_S_2003_09_17_pus_map.mod
! Writing 45 model components to file: J0555+3948_S_2003_09_17_pus_map.mod
wobs J0555+3948_S_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J0555+3948_S_2003_09_17_pus_uvs.fits
wwins J0555+3948_S_2003_09_17_pus_map.win
! wwins: Wrote 2 windows to J0555+3948_S_2003_09_17_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.00403016 Jy
! Component: 100  -  total flux cleaned = -0.00535995 Jy
! Component: 150  -  total flux cleaned = -0.00522705 Jy
! Component: 200  -  total flux cleaned = -0.00535528 Jy
! Component: 250  -  total flux cleaned = -0.00511053 Jy
! Component: 300  -  total flux cleaned = -0.00487222 Jy
! Component: 350  -  total flux cleaned = -0.00440899 Jy
! Component: 400  -  total flux cleaned = -0.0039609 Jy
! Component: 450  -  total flux cleaned = -0.00363388 Jy
! Component: 500  -  total flux cleaned = -0.00320533 Jy
! Component: 550  -  total flux cleaned = -0.00299574 Jy
! Component: 600  -  total flux cleaned = -0.00268882 Jy
! Component: 650  -  total flux cleaned = -0.00269012 Jy
! Component: 700  -  total flux cleaned = -0.00259091 Jy
! Component: 750  -  total flux cleaned = -0.00249297 Jy
! Component: 800  -  total flux cleaned = -0.00230179 Jy
! Component: 850  -  total flux cleaned = -0.00230176 Jy
! Component: 900  -  total flux cleaned = -0.00230157 Jy
! Component: 950  -  total flux cleaned = -0.00230158 Jy
! Component: 1000  -  total flux cleaned = -0.00239085 Jy
! Component: 1050  -  total flux cleaned = -0.00230148 Jy
! Component: 1100  -  total flux cleaned = -0.00221366 Jy
! Component: 1150  -  total flux cleaned = -0.00221452 Jy
! Component: 1200  -  total flux cleaned = -0.00221361 Jy
! Component: 1250  -  total flux cleaned = -0.00221287 Jy
! Component: 1300  -  total flux cleaned = -0.00196227 Jy
! Component: 1350  -  total flux cleaned = -0.00204597 Jy
! Component: 1400  -  total flux cleaned = -0.00212804 Jy
! Component: 1450  -  total flux cleaned = -0.00188476 Jy
! Component: 1500  -  total flux cleaned = -0.0019653 Jy
! Component: 1550  -  total flux cleaned = -0.00188576 Jy
! Component: 1600  -  total flux cleaned = -0.002043 Jy
! Component: 1650  -  total flux cleaned = -0.00204215 Jy
! Component: 1700  -  total flux cleaned = -0.00196488 Jy
! Component: 1750  -  total flux cleaned = -0.00196502 Jy
! Component: 1800  -  total flux cleaned = -0.0020413 Jy
! Component: 1850  -  total flux cleaned = -0.00211614 Jy
! Component: 1900  -  total flux cleaned = -0.00211602 Jy
! Component: 1950  -  total flux cleaned = -0.00189585 Jy
! Component: 2000  -  total flux cleaned = -0.00211532 Jy
! Total flux subtracted in 2048 components = -0.00204308 Jy
! Clean residual min=-0.004281 max=0.004221 Jy/beam
! Clean residual mean=0.000043 rms=0.001279 Jy/beam
! Combined flux in latest and established models = 3.41484 Jy
keep
! Adding 138 model components to the UV plane model.
! The established model now contains 180 components and 3.41484 Jy
wmap "J0555+3948_S_2003_09_17_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.49 x 3.446 at 16 degrees (North through East)
! Clean map  min=-0.0054273  max=2.9785 Jy/beam
! Writing clean map to FITS file: J0555+3948_S_2003_09_17_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 2.97848 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00127826 
device "J0555+3948_S_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J0555+3948_S_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.12875 0.12875 0.257499 0.514998 1.03 2.05999 4.11999 8.23997 16.4799 32.9599 65.9198
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0038 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.978 
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.49 x 3.446 at 16 degrees (North through East)
! Clean map  min=-0.0054273  max=2.9785 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0555+3948_S_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J0555+3948_S_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0555+3948_S_2003_09_17_pus_uvs.log closed on Tue May 22 12:14:55 2007