! Started logfile: J0958+4725_S_2003_09_17_pus_uvs.log on Mon May 21 21:30:41 2007
obs J0958+4725_S_2003_09_17_pus_uva.fits
! Reading UV FITS file: J0958+4725_S_2003_09_17_pus_uva.fits
! AN table 1: 139 integrations on 120 of 120 possible baselines.
! AN table 2: 32 integrations on 120 of 120 possible baselines.
! AN table 3: 37 integrations on 120 of 120 possible baselines.
! AN table 4: 28 integrations on 120 of 120 possible baselines.
! AN table 5: 208 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.137744 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.
! 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 29356 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 1558 telescope corrections were flagged in sub-array 1.
!  A total of 188 telescope corrections were flagged in sub-array 2.
!  A total of 424 telescope corrections were flagged in sub-array 3.
!  A total of 363 telescope corrections were flagged in sub-array 4.
!  A total of 2371 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 1558 telescope corrections were flagged in sub-array 1.
!  A total of 188 telescope corrections were flagged in sub-array 2.
!  A total of 424 telescope corrections were flagged in sub-array 3.
!  A total of 363 telescope corrections were flagged in sub-array 4.
!  A total of 2371 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 1558 telescope corrections were flagged in sub-array 1.
!  A total of 188 telescope corrections were flagged in sub-array 2.
!  A total of 424 telescope corrections were flagged in sub-array 3.
!  A total of 363 telescope corrections were flagged in sub-array 4.
!  A total of 2371 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 1558 telescope corrections were flagged in sub-array 1.
!  A total of 188 telescope corrections were flagged in sub-array 2.
!  A total of 424 telescope corrections were flagged in sub-array 3.
!  A total of 363 telescope corrections were flagged in sub-array 4.
!  A total of 2371 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=1.164207Jy  sigma=0.007681
! Fit after  self-cal, rms=0.375913Jy  sigma=0.002031
! 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.844 mas, bmaj=2.532 mas, bpa=-2.091 degrees
! Estimated noise=1290 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.829576 Jy
! Component: 100  -  total flux cleaned = 1.01699 Jy
! Total flux subtracted in 100 components = 1.01699 Jy
! Clean residual min=-0.023607 max=0.069741 Jy/beam
! Clean residual mean=0.000208 rms=0.007346 Jy/beam
! Combined flux in latest and established models = 1.01699 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 1.01699 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.370563Jy  sigma=0.001975
! Fit after  self-cal, rms=0.370488Jy  sigma=0.001975
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.077372 Jy
! Component: 100  -  total flux cleaned = 0.123151 Jy
! Total flux subtracted in 100 components = 0.123151 Jy
! Clean residual min=-0.024048 max=0.031362 Jy/beam
! Clean residual mean=0.000126 rms=0.006081 Jy/beam
! Combined flux in latest and established models = 1.14014 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 11 components and 1.14014 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.346201Jy  sigma=0.001734
! Fit after  self-cal, rms=0.345952Jy  sigma=0.001734
! 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.153 mas, bmaj=2.983 mas, bpa=1.727 degrees
! Estimated noise=694.025 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.0570738 Jy
! Component: 100  -  total flux cleaned = 0.0897695 Jy
! Component: 150  -  total flux cleaned = 0.109529 Jy
! Component: 200  -  total flux cleaned = 0.121718 Jy
! Total flux subtracted in 200 components = 0.121718 Jy
! Clean residual min=-0.025640 max=0.021670 Jy/beam
! Clean residual mean=-0.000678 rms=0.005301 Jy/beam
! Combined flux in latest and established models = 1.26186 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 20 components and 1.26186 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.339138Jy  sigma=0.001634
! Fit after  self-cal, rms=0.338980Jy  sigma=0.001634
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 54 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00*    GC        1.09     HN        0.97     KP        1.00*    
!   LA        1.06     MK        1.00*    NL        1.04     NY        1.03     
!   ON        0.99     OV        1.00*    PT        1.08     SC        1.30     
!   TS        1.03     KK        1.00*    WZ        0.97     WF        1.03     
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.98     GC        1.05     HN        0.96     KP        0.95     
!   LA        0.97     MK        0.94     NL        1.01     NY        0.91     
!   ON        0.96     OV        0.87     PT        0.98     SC        1.01     
!   TS        0.95     KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.00*    GC        1.12     HN        0.97     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00     NY        1.05     
!   ON        0.98     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        0.96     KK        1.00*    WZ        1.00*    WF        1.00     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00*    GC        1.09     HN        0.96     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        0.99     NY        1.02     
!   ON        1.03     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.23     WF        1.00*    
! 
!  A total of 114 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        1.10     GC        1.02     HN        1.00     KP        0.84     
!   LA        0.96     MK        1.03     NL        0.97     NY        0.99     
!   ON        1.04     OV        1.00*    PT        0.95     SC        1.00*    
!   TS        1.03     KK        0.93     WZ        1.06     WF        0.97     
! 
! 
! Correcting IF 2.
!  A total of 54 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00*    GC        1.04     HN        1.04     KP        1.00*    
!   LA        1.07     MK        1.00*    NL        1.09     NY        1.05     
!   ON        0.94     OV        1.00*    PT        1.06     SC        1.13     
!   TS        1.02     KK        1.00*    WZ        0.94     WF        1.04     
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.98     GC        1.03     HN        1.01     KP        1.02     
!   LA        0.98     MK        0.98     NL        1.03     NY        0.96     
!   ON        0.96     OV        0.94     PT        0.97     SC        1.10     
!   TS        0.95     KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.00*    GC        0.97     HN        1.02     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.05     NY        1.08     
!   ON        0.96     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        0.95     KK        1.00*    WZ        1.00*    WF        0.98     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00*    GC        1.04     HN        1.05     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.06     NY        1.08     
!   ON        1.05     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.21     WF        1.00*    
! 
!  A total of 114 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        1.12     GC        0.98     HN        1.01     KP        0.94     
!   LA        0.96     MK        0.99     NL        1.01     NY        0.98     
!   ON        1.04     OV        1.00*    PT        0.91     SC        1.00*    
!   TS        1.02     KK        0.94     WZ        1.02     WF        0.96     
! 
! 
! Correcting IF 3.
!  A total of 54 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00*    GC        1.12     HN        1.03     KP        1.00*    
!   LA        0.98     MK        1.00*    NL        1.01     NY        0.98     
!   ON        0.94     OV        1.00*    PT        1.09     SC        1.13     
!   TS        1.05     KK        1.00*    WZ        0.92     WF        1.03     
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.93     GC        1.07     HN        0.99     KP        0.99     
!   LA        0.93     MK        0.94     NL        0.98     NY        0.89     
!   ON        0.92     OV        0.90     PT        0.99     SC        1.15     
!   TS        0.98     KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.00*    GC        1.09     HN        1.02     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        0.98     NY        1.02     
!   ON        0.97     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        0.98     KK        1.00*    WZ        1.00*    WF        1.03     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00*    GC        1.05     HN        1.05     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        0.92     NY        0.97     
!   ON        1.05     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.13     WF        1.00*    
! 
!  A total of 114 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        1.06     GC        1.09     HN        1.01     KP        0.95     
!   LA        0.91     MK        0.97     NL        0.91     NY        0.97     
!   ON        0.98     OV        1.00*    PT        0.94     SC        1.00*    
!   TS        1.51     KK        0.94     WZ        1.00     WF        0.99     
! 
! 
! Correcting IF 4.
!  A total of 54 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00*    GC        1.14     HN        0.95     KP        1.00*    
!   LA        1.05     MK        1.00*    NL        1.02     NY        0.99     
!   ON        0.94     OV        1.00*    PT        1.04     SC        1.06     
!   TS        1.03     KK        1.00*    WZ        0.96     WF        1.02     
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.96     GC        1.10     HN        0.94     KP        0.99     
!   LA        0.97     MK        0.87     NL        1.00     NY        0.89     
!   ON        0.97     OV        0.85     PT        0.95     SC        1.05     
!   TS        0.99     KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.00*    GC        1.06     HN        1.00     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.02     NY        1.00     
!   ON        0.97     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        0.94     KK        1.00*    WZ        1.00*    WF        0.96     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00*    GC        1.05     HN        0.92     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        0.97     NY        0.94     
!   ON        1.03     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.19     WF        1.00*    
! 
!  A total of 114 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        1.03     GC        1.08     HN        1.13     KP        0.94     
!   LA        0.95     MK        0.92     NL        0.93     NY        0.97     
!   ON        1.01     OV        1.00*    PT        0.90     SC        1.00*    
!   TS        1.01     KK        0.99     WZ        1.05     WF        0.98     
! 
! 
! Fit before self-cal, rms=0.338980Jy  sigma=0.001634
! Fit after  self-cal, rms=0.327443Jy  sigma=0.001454
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.194 mas, bmaj=2.999 mas, bpa=-0.1675 degrees
! Estimated noise=701.596 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.0130342 Jy
! Component: 100  -  total flux cleaned = -0.0148699 Jy
! Component: 150  -  total flux cleaned = -0.0165176 Jy
! Component: 200  -  total flux cleaned = -0.0179611 Jy
! Total flux subtracted in 200 components = -0.0179611 Jy
! Clean residual min=-0.015121 max=0.015912 Jy/beam
! Clean residual mean=-0.000099 rms=0.003376 Jy/beam
! Combined flux in latest and established models = 1.2439 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 26 components and 1.2439 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.326680Jy  sigma=0.001446
! Fit after  self-cal, rms=0.326777Jy  sigma=0.001446
! 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.326777Jy  sigma=0.001446
! Fit after  self-cal, rms=0.326271Jy  sigma=0.001427
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.204 mas, bmaj=3.013 mas, bpa=-0.4254 degrees
! Estimated noise=702.602 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.008126 Jy
! Component: 100  -  total flux cleaned = -0.0100104 Jy
! Component: 150  -  total flux cleaned = -0.0115187 Jy
! Component: 200  -  total flux cleaned = -0.0128828 Jy
! Total flux subtracted in 200 components = -0.0128828 Jy
! Clean residual min=-0.012448 max=0.014228 Jy/beam
! Clean residual mean=-0.000153 rms=0.003154 Jy/beam
! Combined flux in latest and established models = 1.23101 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 28 components and 1.23101 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.325882Jy  sigma=0.001422
! Fit after  self-cal, rms=0.325982Jy  sigma=0.001422
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 (3.5, 11.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00552505 Jy
! Component: 100  -  total flux cleaned = 0.00481938 Jy
! Component: 150  -  total flux cleaned = 0.00368351 Jy
! Component: 200  -  total flux cleaned = 0.0034454 Jy
! Total flux subtracted in 200 components = 0.0034454 Jy
! Clean residual min=-0.012253 max=0.012347 Jy/beam
! Clean residual mean=-0.000195 rms=0.003068 Jy/beam
! Combined flux in latest and established models = 1.23446 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 45 components and 1.23446 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.325177Jy  sigma=0.001416
! Fit after  self-cal, rms=0.325133Jy  sigma=0.001416
! 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.325133Jy  sigma=0.001416
! Fit after  self-cal, rms=0.326707Jy  sigma=0.001308
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.205 mas, bmaj=3.023 mas, bpa=-0.09354 degrees
! Estimated noise=703.132 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00871254 Jy
! Component: 100  -  total flux cleaned = -0.0111184 Jy
! Component: 150  -  total flux cleaned = -0.012112 Jy
! Component: 200  -  total flux cleaned = -0.0128301 Jy
! Total flux subtracted in 200 components = -0.0128301 Jy
! Clean residual min=-0.006378 max=0.005861 Jy/beam
! Clean residual mean=-0.000184 rms=0.001298 Jy/beam
! Combined flux in latest and established models = 1.22163 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 52 components and 1.22163 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.326354Jy  sigma=0.001306
! Fit after  self-cal, rms=0.326471Jy  sigma=0.001305
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.000248349 Jy
! Component: 100  -  total flux cleaned = -0.00048129 Jy
! Component: 150  -  total flux cleaned = -0.00058786 Jy
! Component: 200  -  total flux cleaned = -0.000690166 Jy
! Total flux subtracted in 200 components = -0.000690166 Jy
! Clean residual min=-0.006298 max=0.005745 Jy/beam
! Clean residual mean=-0.000176 rms=0.001280 Jy/beam
! Combined flux in latest and established models = 1.22094 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 60 components and 1.22094 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.326391Jy  sigma=0.001305
! Fit after  self-cal, rms=0.326387Jy  sigma=0.001305
! 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.326387Jy  sigma=0.001305
! Fit after  self-cal, rms=0.327624Jy  sigma=0.001304
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=6.865 mas, bmaj=11.31 mas, bpa=-31.42 degrees
! Estimated noise=1100.56 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00600299 Jy
! Component: 100  -  total flux cleaned = -0.00684235 Jy
! Component: 150  -  total flux cleaned = -0.00704912 Jy
! Component: 200  -  total flux cleaned = -0.00721073 Jy
! Total flux subtracted in 200 components = -0.00721073 Jy
! Clean residual min=-0.005566 max=0.006604 Jy/beam
! Clean residual mean=-0.000639 rms=0.001666 Jy/beam
! Combined flux in latest and established models = 1.21373 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 72 components and 1.21373 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.327548Jy  sigma=0.001303
! Fit after  self-cal, rms=0.327564Jy  sigma=0.001303
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000193897 Jy
! Component: 100  -  total flux cleaned = 0.000298561 Jy
! Component: 150  -  total flux cleaned = 0.000297585 Jy
! Component: 200  -  total flux cleaned = 0.000295714 Jy
! Total flux subtracted in 200 components = 0.000295714 Jy
! Clean residual min=-0.005542 max=0.006458 Jy/beam
! Clean residual mean=-0.000654 rms=0.001647 Jy/beam
! Combined flux in latest and established models = 1.21402 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 74 components and 1.21402 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.327564Jy  sigma=0.001303
! Fit after  self-cal, rms=0.327567Jy  sigma=0.001303
! 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.209 mas, bmaj=3.031 mas, bpa=-0.01273 degrees
! Estimated noise=703.111 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.209 x 3.031 at -0.01273 degrees (North through East)
! Clean map  min=-0.0055538  max=1.0996 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.327567Jy  sigma=0.001303
! Fit after  self-cal, rms=0.387641Jy  sigma=0.001102
! Inverting map and beam 
! Estimated beam: bmin=2.211 mas, bmaj=3.034 mas, bpa=0.05787 degrees
! Estimated noise=702 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00550134 Jy
! Component: 100  -  total flux cleaned = -0.00709072 Jy
! Component: 150  -  total flux cleaned = -0.00756416 Jy
! Component: 200  -  total flux cleaned = -0.00798613 Jy
! Total flux subtracted in 200 components = -0.00798613 Jy
! Clean residual min=-0.004299 max=0.004508 Jy/beam
! Clean residual mean=-0.000129 rms=0.000995 Jy/beam
! Combined flux in latest and established models = 1.20604 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 76 components and 1.20604 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.387528Jy  sigma=0.001100
! Fit after  self-cal, rms=0.387532Jy  sigma=0.001100
! Inverting map 
! Added new window around map position (33.5, -62.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00186022 Jy
! Component: 100  -  total flux cleaned = 0.00167935 Jy
! Component: 150  -  total flux cleaned = 0.00132879 Jy
! Component: 200  -  total flux cleaned = 0.00108193 Jy
! Total flux subtracted in 200 components = 0.00108193 Jy
! Clean residual min=-0.004315 max=0.003973 Jy/beam
! Clean residual mean=-0.000139 rms=0.000969 Jy/beam
! Combined flux in latest and established models = 1.20712 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 86 components and 1.20712 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.387466Jy  sigma=0.001100
! Fit after  self-cal, rms=0.387470Jy  sigma=0.001100
! 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.387470Jy  sigma=0.001100
! Fit after  self-cal, rms=0.391084Jy  sigma=0.001099
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.876 mas, bmaj=2.555 mas, bpa=-2.492 degrees
! Estimated noise=1306.62 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.844594 Jy
! Component: 100  -  total flux cleaned = 1.03032 Jy
! Component: 150  -  total flux cleaned = 1.09451 Jy
! Component: 200  -  total flux cleaned = 1.12722 Jy
! Total flux subtracted in 200 components = 1.12722 Jy
! Clean residual min=-0.007385 max=0.015901 Jy/beam
! Clean residual mean=0.000048 rms=0.002080 Jy/beam
! Combined flux in latest and established models = 1.12722 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 11 model components to the UV plane model.
! The established model now contains 11 components and 1.12722 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.215 mas, bmaj=3.038 mas, bpa=0.0168 degrees
! Estimated noise=701.761 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.0309631 Jy
! Component: 100  -  total flux cleaned = 0.0472495 Jy
! Component: 150  -  total flux cleaned = 0.0569566 Jy
! Component: 200  -  total flux cleaned = 0.063387 Jy
! Total flux subtracted in 200 components = 0.063387 Jy
! Clean residual min=-0.004273 max=0.006421 Jy/beam
! Clean residual mean=-0.000001 rms=0.001050 Jy/beam
! Combined flux in latest and established models = 1.19061 Jy
! Adding 18 model components to the UV plane model.
! The established model now contains 23 components and 1.19061 Jy
! Inverting map 
! Added new window around map position (4.5, -3.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00583909 Jy
! Component: 100  -  total flux cleaned = 0.00840419 Jy
! Component: 150  -  total flux cleaned = 0.010275 Jy
! Component: 200  -  total flux cleaned = 0.0117618 Jy
! Total flux subtracted in 200 components = 0.0117618 Jy
! Clean residual min=-0.004360 max=0.004243 Jy/beam
! Clean residual mean=-0.000139 rms=0.000915 Jy/beam
! Combined flux in latest and established models = 1.20237 Jy
! Adding 22 model components to the UV plane model.
! The established model now contains 37 components and 1.20237 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=6.87 mas, bmaj=11.33 mas, bpa=-31.38 degrees
! Estimated noise=1090.9 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00306959 Jy
! Component: 100  -  total flux cleaned = 0.00348315 Jy
! Component: 150  -  total flux cleaned = 0.00338256 Jy
! Component: 200  -  total flux cleaned = 0.00326104 Jy
! Total flux subtracted in 200 components = 0.00326104 Jy
! Clean residual min=-0.004847 max=0.003729 Jy/beam
! Clean residual mean=-0.000726 rms=0.001289 Jy/beam
! Combined flux in latest and established models = 1.20563 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.000138912 Jy
! Component: 100  -  total flux cleaned = -0.000231061 Jy
! Component: 150  -  total flux cleaned = -0.00031383 Jy
! Component: 200  -  total flux cleaned = -0.000338223 Jy
! Total flux subtracted in 200 components = -0.000338223 Jy
! Clean residual min=-0.004826 max=0.003799 Jy/beam
! Clean residual mean=-0.000712 rms=0.001279 Jy/beam
! Combined flux in latest and established models = 1.2053 Jy
! Adding 23 model components to the UV plane model.
! The established model now contains 59 components and 1.2053 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.215 mas, bmaj=3.038 mas, bpa=0.0168 degrees
! Estimated noise=701.761 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000584025 Jy
! Component: 100  -  total flux cleaned = -0.000395732 Jy
! Component: 150  -  total flux cleaned = -0.000138478 Jy
! Component: 200  -  total flux cleaned = -6.39563e-05 Jy
! Total flux subtracted in 200 components = -6.39563e-05 Jy
! Clean residual min=-0.004320 max=0.004147 Jy/beam
! Clean residual mean=-0.000175 rms=0.000888 Jy/beam
! Combined flux in latest and established models = 1.20523 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 75 components and 1.20523 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.390940Jy  sigma=0.001098
! Fit after  self-cal, rms=0.390951Jy  sigma=0.001097
wmodel J0958+4725_S_2003_09_17_pus_map.mod
! Writing 75 model components to file: J0958+4725_S_2003_09_17_pus_map.mod
wobs J0958+4725_S_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J0958+4725_S_2003_09_17_pus_uvs.fits
wwins J0958+4725_S_2003_09_17_pus_map.win
! wwins: Wrote 4 windows to J0958+4725_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.000683979 Jy
! Component: 100  -  total flux cleaned = -0.000811178 Jy
! Component: 150  -  total flux cleaned = -0.00128723 Jy
! Component: 200  -  total flux cleaned = -0.00174421 Jy
! Component: 250  -  total flux cleaned = -0.00235252 Jy
! Component: 300  -  total flux cleaned = -0.00299879 Jy
! Component: 350  -  total flux cleaned = -0.00357779 Jy
! Component: 400  -  total flux cleaned = -0.00419767 Jy
! Component: 450  -  total flux cleaned = -0.00465463 Jy
! Component: 500  -  total flux cleaned = -0.00515504 Jy
! Component: 550  -  total flux cleaned = -0.00559895 Jy
! Component: 600  -  total flux cleaned = -0.00598836 Jy
! Component: 650  -  total flux cleaned = -0.00642051 Jy
! Component: 700  -  total flux cleaned = -0.00675282 Jy
! Component: 750  -  total flux cleaned = -0.0070343 Jy
! Component: 800  -  total flux cleaned = -0.00735883 Jy
! Component: 850  -  total flux cleaned = -0.00745062 Jy
! Component: 900  -  total flux cleaned = -0.0076784 Jy
! Component: 950  -  total flux cleaned = -0.00790366 Jy
! Component: 1000  -  total flux cleaned = -0.00799254 Jy
! Component: 1050  -  total flux cleaned = -0.00816976 Jy
! Component: 1100  -  total flux cleaned = -0.00821373 Jy
! Component: 1150  -  total flux cleaned = -0.0083882 Jy
! Component: 1200  -  total flux cleaned = -0.00851796 Jy
! Component: 1250  -  total flux cleaned = -0.00877506 Jy
! Component: 1300  -  total flux cleaned = -0.00885997 Jy
! Component: 1350  -  total flux cleaned = -0.00907065 Jy
! Component: 1400  -  total flux cleaned = -0.00915441 Jy
! Component: 1450  -  total flux cleaned = -0.00932053 Jy
! Component: 1500  -  total flux cleaned = -0.00948555 Jy
! Component: 1550  -  total flux cleaned = -0.00956731 Jy
! Component: 1600  -  total flux cleaned = -0.00964881 Jy
! Component: 1650  -  total flux cleaned = -0.00981033 Jy
! Component: 1700  -  total flux cleaned = -0.00981031 Jy
! Component: 1750  -  total flux cleaned = -0.00996984 Jy
! Component: 1800  -  total flux cleaned = -0.0100095 Jy
! Component: 1850  -  total flux cleaned = -0.0101273 Jy
! Component: 1900  -  total flux cleaned = -0.0102834 Jy
! Component: 1950  -  total flux cleaned = -0.0103609 Jy
! Component: 2000  -  total flux cleaned = -0.0103995 Jy
! Total flux subtracted in 2048 components = -0.0104763 Jy
! Clean residual min=-0.002352 max=0.002419 Jy/beam
! Clean residual mean=-0.000062 rms=0.000707 Jy/beam
! Combined flux in latest and established models = 1.19476 Jy
keep
! Adding 157 model components to the UV plane model.
! The established model now contains 232 components and 1.19476 Jy
wmap "J0958+4725_S_2003_09_17_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.215 x 3.038 at 0.0168 degrees (North through East)
! Clean map  min=-0.0035375  max=1.101 Jy/beam
! Writing clean map to FITS file: J0958+4725_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 1.10102 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000706152 
device "J0958+4725_S_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J0958+4725_S_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.192408 0.192408 0.384815 0.76963 1.53926 3.07852 6.15704 12.3141 24.6282 49.2563 98.5127
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0021 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.101 
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.215 x 3.038 at 0.0168 degrees (North through East)
! Clean map  min=-0.0035375  max=1.101 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0958+4725_S_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J0958+4725_S_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0958+4725_S_2003_09_17_pus_uvs.log closed on Mon May 21 21:32:32 2007