! Started logfile: J0958+4725_S_2001_07_05_pus_uvs.log on Fri Aug 10 00:50:18 2007
obs J0958+4725_S_2001_07_05_pus_uva.fits
! Reading UV FITS file: J0958+4725_S_2001_07_05_pus_uva.fits
! AN table 1: 295 integrations on 171 of 171 possible baselines.
! AN table 2: 104 integrations on 171 of 171 possible baselines.
! AN table 3: 18 integrations on 171 of 171 possible baselines.
! AN table 4: 81 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.277649 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0958+4725
! 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.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 1774 lines of history.
! 
! Reading 94576 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 2866 telescope corrections were flagged in sub-array 1.
!  A total of 986 telescope corrections were flagged in sub-array 2.
!  A total of 329 telescope corrections were flagged in sub-array 3.
!  A total of 873 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 2866 telescope corrections were flagged in sub-array 1.
!  A total of 986 telescope corrections were flagged in sub-array 2.
!  A total of 329 telescope corrections were flagged in sub-array 3.
!  A total of 873 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 2867 telescope corrections were flagged in sub-array 1.
!  A total of 986 telescope corrections were flagged in sub-array 2.
!  A total of 329 telescope corrections were flagged in sub-array 3.
!  A total of 873 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 2867 telescope corrections were flagged in sub-array 1.
!  A total of 986 telescope corrections were flagged in sub-array 2.
!  A total of 329 telescope corrections were flagged in sub-array 3.
!  A total of 873 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.767000Jy  sigma=0.005621
! Fit after  self-cal, rms=0.310207Jy  sigma=0.002104
! 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.936 mas, bmaj=2.452 mas, bpa=-4.467 degrees
! Estimated noise=597.535 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.675047 Jy
! Component: 100  -  total flux cleaned = 0.825013 Jy
! Total flux subtracted in 100 components = 0.825013 Jy
! Clean residual min=-0.012374 max=0.051245 Jy/beam
! Clean residual mean=0.000040 rms=0.003514 Jy/beam
! Combined flux in latest and established models = 0.825013 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 0.825013 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.285253Jy  sigma=0.001928
! Fit after  self-cal, rms=0.285244Jy  sigma=0.001928
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0546689 Jy
! Component: 100  -  total flux cleaned = 0.0855382 Jy
! Total flux subtracted in 100 components = 0.0855382 Jy
! Clean residual min=-0.011435 max=0.016785 Jy/beam
! Clean residual mean=0.000008 rms=0.002922 Jy/beam
! Combined flux in latest and established models = 0.910551 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 15 components and 0.910551 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.274045Jy  sigma=0.001802
! Fit after  self-cal, rms=0.273990Jy  sigma=0.001801
! 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.318 mas, bmaj=2.868 mas, bpa=5.738 degrees
! Estimated noise=299.16 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.0234462 Jy
! Component: 100  -  total flux cleaned = 0.0343302 Jy
! Component: 150  -  total flux cleaned = 0.0382283 Jy
! Component: 200  -  total flux cleaned = 0.0392228 Jy
! Total flux subtracted in 200 components = 0.0392228 Jy
! Clean residual min=-0.013799 max=0.008530 Jy/beam
! Clean residual mean=0.000054 rms=0.002282 Jy/beam
! Combined flux in latest and established models = 0.949774 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 23 components and 0.949774 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.272464Jy  sigma=0.001781
! Fit after  self-cal, rms=0.272440Jy  sigma=0.001781
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.03     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.03     KK        0.98     KP        0.96     
!   LA        1.10     MC        1.06     MK        0.98     NL        1.01     
!   NY        0.97     OV        1.01     PT        1.00     SC        0.96     
!   TS        0.99     WF        1.01     WZ        0.96     
! 
!  A total of 96 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.96     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        0.92     KK        0.99     KP        0.91     
!   LA        0.97     MC        1.08     MK        0.99     NL        0.97     
!   NY        0.97     OV        0.96     PT        0.94     SC        0.98     
!   TS        0.99     WF        1.00     WZ        1.09     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.20     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        0.98     MC        1.00*    MK        1.00*    NL        1.00*    
!   NY        1.02     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    WF        1.09     WZ        0.91     
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        0.96     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.00*    KP        1.00*    
!   LA        0.98     MC        1.06     MK        1.03     NL        0.97     
!   NY        0.96     OV        0.93     PT        0.93     SC        0.94     
!   TS        1.00*    WF        1.02     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.04     GC        0.96     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        0.98     KP        0.98     
!   LA        1.06     MC        1.05     MK        0.96     NL        0.98     
!   NY        0.97     OV        1.03     PT        1.03     SC        0.99     
!   TS        0.98     WF        1.00     WZ        0.94     
! 
!  A total of 96 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.94     FD        0.97     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.91     KK        0.99     KP        0.76     
!   LA        0.93     MC        0.97     MK        0.97     NL        0.94     
!   NY        0.96     OV        0.98     PT        0.97     SC        1.01     
!   TS        0.99     WF        0.98     WZ        1.07     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        0.98     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.05     MC        1.00*    MK        1.00*    NL        1.00*    
!   NY        1.08     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    WF        0.89     WZ        0.85     
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        0.97     GC        0.95     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.00*    KP        1.00*    
!   LA        0.95     MC        0.89     MK        1.00     NL        0.95     
!   NY        0.95     OV        0.96     PT        0.96     SC        0.95     
!   TS        1.00*    WF        1.01     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.99     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.09     KK        1.02     KP        1.04     
!   LA        1.08     MC        1.54     MK        0.99     NL        1.03     
!   NY        0.96     OV        1.05     PT        1.02     SC        0.98     
!   TS        0.99     WF        0.98     WZ        0.94     
! 
!  A total of 96 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.93     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.02     KP        0.99     
!   LA        0.97     MC        1.30     MK        1.01     NL        1.01     
!   NY        0.97     OV        1.02     PT        0.98     SC        1.00     
!   TS        1.01     WF        0.98     WZ        1.09     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        0.89     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.12     MC        1.00*    MK        1.00*    NL        1.00*    
!   NY        1.08     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    WF        0.87     WZ        1.06     
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        0.91     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.00*    KP        1.00*    
!   LA        1.01     MC        1.32     MK        1.03     NL        1.00     
!   NY        0.97     OV        0.97     PT        0.98     SC        0.95     
!   TS        1.00*    WF        0.96     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.02     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        0.98     KP        1.02     
!   LA        1.08     MC        1.37     MK        0.99     NL        1.02     
!   NY        0.98     OV        1.01     PT        1.05     SC        1.01     
!   TS        0.99     WF        1.01     WZ        0.94     
! 
!  A total of 96 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.94     FD        0.95     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.89     KK        0.99     KP        0.99     
!   LA        0.97     MC        1.41     MK        0.99     NL        0.97     
!   NY        0.99     OV        0.94     PT        1.11     SC        1.00     
!   TS        1.01     WF        1.01     WZ        1.07     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.05     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00     MC        1.00*    MK        1.00*    NL        1.00*    
!   NY        0.95     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    WF        1.02     WZ        0.97     
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        0.94     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        0.92     KK        1.00*    KP        1.00*    
!   LA        0.96     MC        0.81     MK        1.02     NL        0.97     
!   NY        0.99     OV        0.92     PT        1.00     SC        0.96     
!   TS        1.00*    WF        0.99     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.272440Jy  sigma=0.001781
! Fit after  self-cal, rms=0.294353Jy  sigma=0.001651
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.343 mas, bmaj=2.887 mas, bpa=3.457 degrees
! Estimated noise=301.892 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.00559242 Jy
! Component: 100  -  total flux cleaned = -0.00585384 Jy
! Component: 150  -  total flux cleaned = -0.00602644 Jy
! Component: 200  -  total flux cleaned = -0.00616274 Jy
! Total flux subtracted in 200 components = -0.00616274 Jy
! Clean residual min=-0.004144 max=0.005331 Jy/beam
! Clean residual mean=0.000146 rms=0.001016 Jy/beam
! Combined flux in latest and established models = 0.943611 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 31 components and 0.943611 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.294235Jy  sigma=0.001650
! Fit after  self-cal, rms=0.294647Jy  sigma=0.001649
! Inverting map 
! Added new window around map position (5, -4.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00543938 Jy
! Component: 100  -  total flux cleaned = 0.00833136 Jy
! Component: 150  -  total flux cleaned = 0.00894061 Jy
! Component: 200  -  total flux cleaned = 0.00902799 Jy
! Total flux subtracted in 200 components = 0.00902799 Jy
! Clean residual min=-0.003858 max=0.004577 Jy/beam
! Clean residual mean=0.000089 rms=0.000969 Jy/beam
! Combined flux in latest and established models = 0.952639 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 47 components and 0.952639 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.294540Jy  sigma=0.001648
! Fit after  self-cal, rms=0.294528Jy  sigma=0.001648
! 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.294528Jy  sigma=0.001648
! Fit after  self-cal, rms=0.308145Jy  sigma=0.001583
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.346 mas, bmaj=2.898 mas, bpa=2.583 degrees
! Estimated noise=302.282 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00375579 Jy
! Component: 100  -  total flux cleaned = -0.00354377 Jy
! Component: 150  -  total flux cleaned = -0.00307912 Jy
! Component: 200  -  total flux cleaned = -0.00276822 Jy
! Total flux subtracted in 200 components = -0.00276822 Jy
! Clean residual min=-0.002853 max=0.002548 Jy/beam
! Clean residual mean=0.000005 rms=0.000616 Jy/beam
! Combined flux in latest and established models = 0.949871 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 54 components and 0.949871 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.308056Jy  sigma=0.001582
! Fit after  self-cal, rms=0.308345Jy  sigma=0.001581
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.000412049 Jy
! Component: 100  -  total flux cleaned = 0.000647672 Jy
! Component: 150  -  total flux cleaned = 0.000698381 Jy
! Component: 200  -  total flux cleaned = 0.000695487 Jy
! Total flux subtracted in 200 components = 0.000695487 Jy
! Clean residual min=-0.002876 max=0.002588 Jy/beam
! Clean residual mean=-0.000000 rms=0.000612 Jy/beam
! Combined flux in latest and established models = 0.950566 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 67 components and 0.950566 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.308327Jy  sigma=0.001581
! Fit after  self-cal, rms=0.308324Jy  sigma=0.001581
! 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.308324Jy  sigma=0.001581
! Fit after  self-cal, rms=0.311227Jy  sigma=0.001580
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.348 mas, bmaj=2.901 mas, bpa=2.125 degrees
! Estimated noise=302.18 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00291388 Jy
! Component: 100  -  total flux cleaned = -0.00284446 Jy
! Component: 150  -  total flux cleaned = -0.00272899 Jy
! Component: 200  -  total flux cleaned = -0.00272957 Jy
! Total flux subtracted in 200 components = -0.00272957 Jy
! Clean residual min=-0.002831 max=0.002456 Jy/beam
! Clean residual mean=0.000010 rms=0.000585 Jy/beam
! Combined flux in latest and established models = 0.947837 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 71 components and 0.947837 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.311187Jy  sigma=0.001580
! Fit after  self-cal, rms=0.311219Jy  sigma=0.001580
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 = 9.9641e-05 Jy
! Component: 100  -  total flux cleaned = 9.99917e-05 Jy
! Component: 150  -  total flux cleaned = 9.9536e-05 Jy
! Component: 200  -  total flux cleaned = 9.96405e-05 Jy
! Total flux subtracted in 200 components = 9.96405e-05 Jy
! Clean residual min=-0.002838 max=0.002472 Jy/beam
! Clean residual mean=0.000009 rms=0.000582 Jy/beam
! Combined flux in latest and established models = 0.947936 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 78 components and 0.947936 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.311207Jy  sigma=0.001580
! Fit after  self-cal, rms=0.311206Jy  sigma=0.001580
! 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.311206Jy  sigma=0.001580
! Fit after  self-cal, rms=0.312246Jy  sigma=0.001579
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.765 mas, bmaj=8.717 mas, bpa=52.67 degrees
! Estimated noise=489.756 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00163088 Jy
! Component: 100  -  total flux cleaned = -0.00173302 Jy
! Component: 150  -  total flux cleaned = -0.00179702 Jy
! Component: 200  -  total flux cleaned = -0.00183446 Jy
! Total flux subtracted in 200 components = -0.00183446 Jy
! Clean residual min=-0.002088 max=0.002470 Jy/beam
! Clean residual mean=0.000050 rms=0.000728 Jy/beam
! Combined flux in latest and established models = 0.946102 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 84 components and 0.946102 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.312239Jy  sigma=0.001579
! Fit after  self-cal, rms=0.312253Jy  sigma=0.001579
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 = -6.19777e-05 Jy
! Component: 100  -  total flux cleaned = -7.21475e-05 Jy
! Component: 150  -  total flux cleaned = -8.89453e-05 Jy
! Component: 200  -  total flux cleaned = -0.000108336 Jy
! Total flux subtracted in 200 components = -0.000108336 Jy
! Clean residual min=-0.002082 max=0.002508 Jy/beam
! Clean residual mean=0.000051 rms=0.000729 Jy/beam
! Combined flux in latest and established models = 0.945993 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 87 components and 0.945993 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.312253Jy  sigma=0.001579
! Fit after  self-cal, rms=0.312253Jy  sigma=0.001579
! 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.35 mas, bmaj=2.903 mas, bpa=1.811 degrees
! Estimated noise=302.091 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.35 x 2.903 at 1.811 degrees (North through East)
! Clean map  min=-0.0024534  max=0.87544 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.312253Jy  sigma=0.001579
! Fit after  self-cal, rms=0.591988Jy  sigma=0.001434
! Inverting map and beam 
! Estimated beam: bmin=2.349 mas, bmaj=2.904 mas, bpa=1.774 degrees
! Estimated noise=301.846 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000731645 Jy
! Component: 100  -  total flux cleaned = -0.000634364 Jy
! Component: 150  -  total flux cleaned = -0.000549828 Jy
! Component: 200  -  total flux cleaned = -0.000471276 Jy
! Total flux subtracted in 200 components = -0.000471276 Jy
! Clean residual min=-0.002050 max=0.001983 Jy/beam
! Clean residual mean=0.000038 rms=0.000472 Jy/beam
! Combined flux in latest and established models = 0.945522 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 94 components and 0.945522 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.591977Jy  sigma=0.001434
! Fit after  self-cal, rms=0.591978Jy  sigma=0.001434
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000108069 Jy
! Component: 100  -  total flux cleaned = 0.000144405 Jy
! Component: 150  -  total flux cleaned = 0.000178899 Jy
! Component: 200  -  total flux cleaned = 0.000212877 Jy
! Total flux subtracted in 200 components = 0.000212877 Jy
! Clean residual min=-0.002023 max=0.002011 Jy/beam
! Clean residual mean=0.000037 rms=0.000470 Jy/beam
! Combined flux in latest and established models = 0.945735 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 96 components and 0.945735 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.591969Jy  sigma=0.001434
! Fit after  self-cal, rms=0.591968Jy  sigma=0.001434
! 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.591968Jy  sigma=0.001434
! Fit after  self-cal, rms=0.631847Jy  sigma=0.001434
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.948 mas, bmaj=2.494 mas, bpa=-5.017 degrees
! Estimated noise=600.29 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.673669 Jy
! Component: 100  -  total flux cleaned = 0.821247 Jy
! Component: 150  -  total flux cleaned = 0.868685 Jy
! Component: 200  -  total flux cleaned = 0.891982 Jy
! Total flux subtracted in 200 components = 0.891982 Jy
! Clean residual min=-0.004439 max=0.011032 Jy/beam
! Clean residual mean=0.000022 rms=0.001133 Jy/beam
! Combined flux in latest and established models = 0.891982 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 8 model components to the UV plane model.
! The established model now contains 8 components and 0.891982 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.349 mas, bmaj=2.905 mas, bpa=1.646 degrees
! Estimated noise=301.699 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.0192017 Jy
! Component: 100  -  total flux cleaned = 0.0297188 Jy
! Component: 150  -  total flux cleaned = 0.0367394 Jy
! Component: 200  -  total flux cleaned = 0.041772 Jy
! Total flux subtracted in 200 components = 0.041772 Jy
! Clean residual min=-0.001790 max=0.003311 Jy/beam
! Clean residual mean=0.000105 rms=0.000536 Jy/beam
! Combined flux in latest and established models = 0.933754 Jy
! Adding 33 model components to the UV plane model.
! The established model now contains 36 components and 0.933754 Jy
! Inverting map 
! Added new window around map position (2.5, 0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00377136 Jy
! Component: 100  -  total flux cleaned = 0.00650165 Jy
! Component: 150  -  total flux cleaned = 0.00853674 Jy
! Component: 200  -  total flux cleaned = 0.00955613 Jy
! Total flux subtracted in 200 components = 0.00955613 Jy
! Clean residual min=-0.001884 max=0.002112 Jy/beam
! Clean residual mean=0.000048 rms=0.000469 Jy/beam
! Combined flux in latest and established models = 0.94331 Jy
! Adding 28 model components to the UV plane model.
! The established model now contains 52 components and 0.94331 Jy
! Inverting map 
! Added new window around map position (57, 13.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00161689 Jy
! Component: 100  -  total flux cleaned = 0.00222514 Jy
! Component: 150  -  total flux cleaned = 0.0026338 Jy
! Component: 200  -  total flux cleaned = 0.00288388 Jy
! Total flux subtracted in 200 components = 0.00288388 Jy
! Clean residual min=-0.001894 max=0.001891 Jy/beam
! Clean residual mean=0.000034 rms=0.000461 Jy/beam
! Combined flux in latest and established models = 0.946194 Jy
! Adding 34 model components to the UV plane model.
! The established model now contains 67 components and 0.946194 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.764 mas, bmaj=8.713 mas, bpa=52.47 degrees
! Estimated noise=489.195 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000721219 Jy
! Component: 100  -  total flux cleaned = 0.000853937 Jy
! Component: 150  -  total flux cleaned = 0.000914075 Jy
! Component: 200  -  total flux cleaned = 0.000966359 Jy
! Total flux subtracted in 200 components = 0.000966359 Jy
! Clean residual min=-0.001849 max=0.002057 Jy/beam
! Clean residual mean=0.000112 rms=0.000589 Jy/beam
! Combined flux in latest and established models = 0.947161 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 = 4.65365e-05 Jy
! Component: 100  -  total flux cleaned = 8.70808e-05 Jy
! Component: 150  -  total flux cleaned = 8.70003e-05 Jy
! Component: 200  -  total flux cleaned = 8.69198e-05 Jy
! Total flux subtracted in 200 components = 8.69198e-05 Jy
! Clean residual min=-0.001845 max=0.002078 Jy/beam
! Clean residual mean=0.000110 rms=0.000588 Jy/beam
! Combined flux in latest and established models = 0.947248 Jy
! Adding 31 model components to the UV plane model.
! The established model now contains 95 components and 0.947248 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.349 mas, bmaj=2.905 mas, bpa=1.646 degrees
! Estimated noise=301.699 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 9.1314e-05 Jy
! Component: 100  -  total flux cleaned = -1.93713e-05 Jy
! Component: 150  -  total flux cleaned = -1.95023e-05 Jy
! Component: 200  -  total flux cleaned = -5.12041e-05 Jy
! Total flux subtracted in 200 components = -5.12041e-05 Jy
! Clean residual min=-0.001874 max=0.001874 Jy/beam
! Clean residual mean=0.000030 rms=0.000458 Jy/beam
! Combined flux in latest and established models = 0.947196 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 106 components and 0.947196 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.631805Jy  sigma=0.001434
! Fit after  self-cal, rms=0.631801Jy  sigma=0.001434
wmodel J0958+4725_S_2001_07_05_pus_map.mod
! Writing 106 model components to file: J0958+4725_S_2001_07_05_pus_map.mod
wobs J0958+4725_S_2001_07_05_pus_uvs.fits
! Writing UV FITS file: J0958+4725_S_2001_07_05_pus_uvs.fits
wwins J0958+4725_S_2001_07_05_pus_map.win
! wwins: Wrote 4 windows to J0958+4725_S_2001_07_05_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.000169163 Jy
! Component: 100  -  total flux cleaned = 0.000427226 Jy
! Component: 150  -  total flux cleaned = 0.000614414 Jy
! Component: 200  -  total flux cleaned = 0.000827422 Jy
! Component: 250  -  total flux cleaned = 0.0010658 Jy
! Component: 300  -  total flux cleaned = 0.00127064 Jy
! Component: 350  -  total flux cleaned = 0.00152939 Jy
! Component: 400  -  total flux cleaned = 0.001784 Jy
! Component: 450  -  total flux cleaned = 0.00197916 Jy
! Component: 500  -  total flux cleaned = 0.00222704 Jy
! Component: 550  -  total flux cleaned = 0.00247171 Jy
! Component: 600  -  total flux cleaned = 0.00265958 Jy
! Component: 650  -  total flux cleaned = 0.00281897 Jy
! Component: 700  -  total flux cleaned = 0.00300324 Jy
! Component: 750  -  total flux cleaned = 0.00318558 Jy
! Component: 800  -  total flux cleaned = 0.00334029 Jy
! Component: 850  -  total flux cleaned = 0.00344243 Jy
! Component: 900  -  total flux cleaned = 0.00356893 Jy
! Component: 950  -  total flux cleaned = 0.00361919 Jy
! Component: 1000  -  total flux cleaned = 0.00369416 Jy
! Component: 1050  -  total flux cleaned = 0.00381763 Jy
! Component: 1100  -  total flux cleaned = 0.00386657 Jy
! Component: 1150  -  total flux cleaned = 0.0039152 Jy
! Component: 1200  -  total flux cleaned = 0.00401177 Jy
! Component: 1250  -  total flux cleaned = 0.00405957 Jy
! Component: 1300  -  total flux cleaned = 0.00413081 Jy
! Component: 1350  -  total flux cleaned = 0.00413068 Jy
! Component: 1400  -  total flux cleaned = 0.00420117 Jy
! Component: 1450  -  total flux cleaned = 0.00417788 Jy
! Component: 1500  -  total flux cleaned = 0.00420106 Jy
! Component: 1550  -  total flux cleaned = 0.00427041 Jy
! Component: 1600  -  total flux cleaned = 0.00429333 Jy
! Component: 1650  -  total flux cleaned = 0.00429339 Jy
! Component: 1700  -  total flux cleaned = 0.00436133 Jy
! Component: 1750  -  total flux cleaned = 0.00442897 Jy
! Component: 1800  -  total flux cleaned = 0.00442874 Jy
! Component: 1850  -  total flux cleaned = 0.00440665 Jy
! Component: 1900  -  total flux cleaned = 0.004451 Jy
! Component: 1950  -  total flux cleaned = 0.00456103 Jy
! Component: 2000  -  total flux cleaned = 0.00445146 Jy
! Total flux subtracted in 2048 components = 0.00456044 Jy
! Clean residual min=-0.001295 max=0.001241 Jy/beam
! Clean residual mean=0.000006 rms=0.000399 Jy/beam
! Combined flux in latest and established models = 0.951757 Jy
keep
! Adding 154 model components to the UV plane model.
! The established model now contains 260 components and 0.951757 Jy
wmap "J0958+4725_S_2001_07_05_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.349 x 2.905 at 1.646 degrees (North through East)
! Clean map  min=-0.0015739  max=0.87528 Jy/beam
! Writing clean map to FITS file: J0958+4725_S_2001_07_05_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.875275 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000399053 
device "J0958+4725_S_2001_07_05_pus\_map.eps/VPS"
! Attempting to open device: 'J0958+4725_S_2001_07_05_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.136775 0.136775 0.27355 0.5471 1.0942 2.1884 4.3768 8.7536 17.5072 35.0144 70.0288
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0011 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.875 
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.349 x 2.905 at 1.646 degrees (North through East)
! Clean map  min=-0.0015739  max=0.87528 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0958+4725_S_2001_07_05_pus\_map.gif/vgif"
! Attempting to open device: 'J0958+4725_S_2001_07_05_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0958+4725_S_2001_07_05_pus_uvs.log closed on Fri Aug 10 00:53:27 2007