! Started logfile: J0956+2515_S_2003_09_17_pus_uvs.log on Mon May 21 21:25:26 2007
obs J0956+2515_S_2003_09_17_pus_uva.fits
! Reading UV FITS file: J0956+2515_S_2003_09_17_pus_uva.fits
! AN table 1: 808 integrations on 120 of 120 possible baselines.
! AN table 2: 208 integrations on 120 of 120 possible baselines.
! AN table 3: 484 integrations on 120 of 120 possible baselines.
! AN table 4: 438 integrations on 120 of 120 possible baselines.
! AN table 5: 104 integrations on 120 of 120 possible baselines.
! AN table 6: 18 integrations on 120 of 120 possible baselines.
! AN table 7: 19 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.0296857 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0956+2515
! 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.
! 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 29624 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 11808 telescope corrections were flagged in sub-array 1.
!  A total of 3271 telescope corrections were flagged in sub-array 2.
!  A total of 6705 telescope corrections were flagged in sub-array 3.
!  A total of 5893 telescope corrections were flagged in sub-array 4.
!  A total of 1469 telescope corrections were flagged in sub-array 5.
!  A total of 288 telescope corrections were flagged in sub-array 6.
!  A total of 304 telescope corrections were flagged in sub-array 7.
! 
! Correcting IF 2.
!  A total of 11808 telescope corrections were flagged in sub-array 1.
!  A total of 3271 telescope corrections were flagged in sub-array 2.
!  A total of 6705 telescope corrections were flagged in sub-array 3.
!  A total of 5893 telescope corrections were flagged in sub-array 4.
!  A total of 1469 telescope corrections were flagged in sub-array 5.
!  A total of 288 telescope corrections were flagged in sub-array 6.
!  A total of 304 telescope corrections were flagged in sub-array 7.
! 
! Correcting IF 3.
!  A total of 11808 telescope corrections were flagged in sub-array 1.
!  A total of 3271 telescope corrections were flagged in sub-array 2.
!  A total of 6705 telescope corrections were flagged in sub-array 3.
!  A total of 5893 telescope corrections were flagged in sub-array 4.
!  A total of 1469 telescope corrections were flagged in sub-array 5.
!  A total of 288 telescope corrections were flagged in sub-array 6.
!  A total of 304 telescope corrections were flagged in sub-array 7.
! 
! Correcting IF 4.
!  A total of 11808 telescope corrections were flagged in sub-array 1.
!  A total of 3271 telescope corrections were flagged in sub-array 2.
!  A total of 6705 telescope corrections were flagged in sub-array 3.
!  A total of 5893 telescope corrections were flagged in sub-array 4.
!  A total of 1469 telescope corrections were flagged in sub-array 5.
!  A total of 288 telescope corrections were flagged in sub-array 6.
!  A total of 304 telescope corrections were flagged in sub-array 7.
! 
! Fit before self-cal, rms=0.988974Jy  sigma=0.006257
! Fit after  self-cal, rms=0.434586Jy  sigma=0.001882
! 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.667 mas, bmaj=6.292 mas, bpa=26.25 degrees
! Estimated noise=1178.76 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.673536 Jy
! Component: 100  -  total flux cleaned = 0.835419 Jy
! Total flux subtracted in 100 components = 0.835419 Jy
! Clean residual min=-0.021616 max=0.061704 Jy/beam
! Clean residual mean=0.000284 rms=0.007054 Jy/beam
! Combined flux in latest and established models = 0.835419 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.835419 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.417013Jy  sigma=0.001489
! Fit after  self-cal, rms=0.417110Jy  sigma=0.001489
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0615917 Jy
! Component: 100  -  total flux cleaned = 0.0927659 Jy
! Total flux subtracted in 100 components = 0.0927659 Jy
! Clean residual min=-0.014967 max=0.018155 Jy/beam
! Clean residual mean=0.000103 rms=0.004759 Jy/beam
! Combined flux in latest and established models = 0.928185 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 21 components and 0.928185 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.406316Jy  sigma=0.001325
! Fit after  self-cal, rms=0.406421Jy  sigma=0.001325
! 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.759 mas, bmaj=6.728 mas, bpa=20.16 degrees
! Estimated noise=664.891 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.0260024 Jy
! Component: 100  -  total flux cleaned = 0.0399574 Jy
! Component: 150  -  total flux cleaned = 0.0484742 Jy
! Component: 200  -  total flux cleaned = 0.0536821 Jy
! Total flux subtracted in 200 components = 0.0536821 Jy
! Clean residual min=-0.012577 max=0.014453 Jy/beam
! Clean residual mean=-0.000332 rms=0.003775 Jy/beam
! Combined flux in latest and established models = 0.981867 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 38 components and 0.981867 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.404913Jy  sigma=0.001299
! Fit after  self-cal, rms=0.405044Jy  sigma=0.001299
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 138 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.09     GC        1.02     HN        1.00*    KP        0.97     
!   LA        1.01     MK        1.00*    NL        0.98     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        0.98     SC        0.99     
!   TS        1.01     KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 291 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.13     GC        0.98     HN        0.98     KP        0.96     
!   LA        0.99     MK        1.00*    NL        0.94     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        0.97     SC        0.98     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 201 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.02     GC        1.00*    HN        0.99     KP        0.99     
!   LA        1.06     MK        1.00*    NL        1.00*    NY        0.97     
!   ON        0.98     OV        1.48     PT        1.00*    SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        0.98     WF        0.97     
! 
!  A total of 15 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.97     GC        1.00*    HN        1.00*    KP        0.93     
!   LA        0.94     MK        1.00*    NL        0.98     NY        1.00*    
!   ON        1.00*    OV        0.94     PT        0.96     SC        1.10     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 6:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 7:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 138 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.05     GC        1.00     HN        1.00*    KP        1.05     
!   LA        1.04     MK        1.00*    NL        1.04     NY        1.00*    
!   ON        1.00*    OV        0.96     PT        0.98     SC        1.01     
!   TS        1.01     KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 291 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.18     GC        0.95     HN        1.01     KP        1.04     
!   LA        0.98     MK        1.00*    NL        0.99     NY        1.00*    
!   ON        1.00*    OV        0.94     PT        0.96     SC        1.04     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 201 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.11     GC        1.00*    HN        1.05     KP        1.00     
!   LA        1.02     MK        1.00*    NL        1.00*    NY        0.96     
!   ON        0.97     OV        0.99     PT        1.00*    SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        0.98     WF        0.94     
! 
!  A total of 15 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.99     GC        1.00*    HN        1.00*    KP        1.02     
!   LA        0.97     MK        1.00*    NL        1.03     NY        1.00*    
!   ON        1.00*    OV        0.94     PT        0.95     SC        1.17     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 6:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 7:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 138 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.02     GC        1.05     HN        1.00*    KP        1.04     
!   LA        0.99     MK        1.00*    NL        0.96     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        1.04     SC        1.02     
!   TS        1.06     KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 291 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.12     GC        1.02     HN        1.05     KP        1.02     
!   LA        0.96     MK        1.00*    NL        0.94     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        1.00     SC        1.07     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 201 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.08     GC        1.00*    HN        1.07     KP        1.02     
!   LA        1.04     MK        1.00*    NL        1.00*    NY        0.95     
!   ON        1.00     OV        1.02     PT        1.00*    SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        0.96     WF        1.03     
! 
!  A total of 15 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.96     GC        1.00*    HN        1.00*    KP        1.01     
!   LA        0.93     MK        1.00*    NL        0.97     NY        1.00*    
!   ON        1.00*    OV        0.95     PT        1.01     SC        1.17     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 6:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 7:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 138 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.07     GC        1.07     HN        1.00*    KP        1.05     
!   LA        0.98     MK        1.00*    NL        1.00     NY        1.00*    
!   ON        1.00*    OV        0.97     PT        0.97     SC        1.02     
!   TS        1.08     KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 291 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.08     GC        1.04     HN        0.94     KP        1.04     
!   LA        1.01     MK        1.00*    NL        0.97     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.95     SC        1.00     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 201 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.13     GC        1.00*    HN        1.06     KP        1.08     
!   LA        1.07     MK        1.00*    NL        1.00*    NY        0.97     
!   ON        0.97     OV        1.21     PT        1.00*    SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        0.99     WF        0.96     
! 
!  A total of 15 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.97     GC        1.00*    HN        1.00*    KP        1.00     
!   LA        0.97     MK        1.00*    NL        1.02     NY        1.00*    
!   ON        1.00*    OV        0.94     PT        0.95     SC        1.09     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 6:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 7:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
! 
! Fit before self-cal, rms=0.405044Jy  sigma=0.001299
! Fit after  self-cal, rms=0.394896Jy  sigma=0.001217
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.749 mas, bmaj=7.043 mas, bpa=19.59 degrees
! Estimated noise=713.006 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.00109245 Jy
! Component: 100  -  total flux cleaned = -0.00108668 Jy
! Component: 150  -  total flux cleaned = -0.00100285 Jy
! Component: 200  -  total flux cleaned = -0.000938806 Jy
! Total flux subtracted in 200 components = -0.000938806 Jy
! Clean residual min=-0.006943 max=0.008012 Jy/beam
! Clean residual mean=-0.000087 rms=0.002148 Jy/beam
! Combined flux in latest and established models = 0.980928 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 56 components and 0.980928 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.394789Jy  sigma=0.001216
! Fit after  self-cal, rms=0.394436Jy  sigma=0.001216
! 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.394436Jy  sigma=0.001216
! Fit after  self-cal, rms=0.393308Jy  sigma=0.001190
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.753 mas, bmaj=7.041 mas, bpa=19.63 degrees
! Estimated noise=714.754 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000875374 Jy
! Component: 100  -  total flux cleaned = -0.000977458 Jy
! Component: 150  -  total flux cleaned = -0.00112566 Jy
! Component: 200  -  total flux cleaned = -0.00131057 Jy
! Total flux subtracted in 200 components = -0.00131057 Jy
! Clean residual min=-0.004190 max=0.006065 Jy/beam
! Clean residual mean=-0.000099 rms=0.001538 Jy/beam
! Combined flux in latest and established models = 0.979618 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 67 components and 0.979618 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.393179Jy  sigma=0.001189
! Fit after  self-cal, rms=0.393114Jy  sigma=0.001189
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.000701622 Jy
! Component: 100  -  total flux cleaned = -0.000649673 Jy
! Component: 150  -  total flux cleaned = -0.000564499 Jy
! Component: 200  -  total flux cleaned = -0.000527549 Jy
! Total flux subtracted in 200 components = -0.000527549 Jy
! Clean residual min=-0.004114 max=0.005996 Jy/beam
! Clean residual mean=-0.000098 rms=0.001530 Jy/beam
! Combined flux in latest and established models = 0.97909 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 72 components and 0.97909 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.393072Jy  sigma=0.001189
! Fit after  self-cal, rms=0.393063Jy  sigma=0.001189
! 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.393063Jy  sigma=0.001189
! Fit after  self-cal, rms=0.393539Jy  sigma=0.001173
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.758 mas, bmaj=7.047 mas, bpa=19.67 degrees
! Estimated noise=715.727 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00115143 Jy
! Component: 100  -  total flux cleaned = -0.00147272 Jy
! Component: 150  -  total flux cleaned = -0.00159967 Jy
! Component: 200  -  total flux cleaned = -0.00167368 Jy
! Total flux subtracted in 200 components = -0.00167368 Jy
! Clean residual min=-0.003556 max=0.004176 Jy/beam
! Clean residual mean=-0.000009 rms=0.001041 Jy/beam
! Combined flux in latest and established models = 0.977416 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 86 components and 0.977416 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.393496Jy  sigma=0.001173
! Fit after  self-cal, rms=0.393459Jy  sigma=0.001173
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.00021774 Jy
! Component: 100  -  total flux cleaned = -0.000254094 Jy
! Component: 150  -  total flux cleaned = -0.000286479 Jy
! Component: 200  -  total flux cleaned = -0.000315115 Jy
! Total flux subtracted in 200 components = -0.000315115 Jy
! Clean residual min=-0.003592 max=0.004061 Jy/beam
! Clean residual mean=-0.000008 rms=0.001032 Jy/beam
! Combined flux in latest and established models = 0.977101 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 87 components and 0.977101 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.393439Jy  sigma=0.001173
! Fit after  self-cal, rms=0.393434Jy  sigma=0.001173
! 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.393434Jy  sigma=0.001173
! Fit after  self-cal, rms=0.393861Jy  sigma=0.001173
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.61 mas, bmaj=11.56 mas, bpa=22.2 degrees
! Estimated noise=935.37 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000488151 Jy
! Component: 100  -  total flux cleaned = -0.000564654 Jy
! Component: 150  -  total flux cleaned = -0.000592958 Jy
! Component: 200  -  total flux cleaned = -0.000659359 Jy
! Total flux subtracted in 200 components = -0.000659359 Jy
! Clean residual min=-0.003929 max=0.006199 Jy/beam
! Clean residual mean=-0.000029 rms=0.001537 Jy/beam
! Combined flux in latest and established models = 0.976442 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 91 components and 0.976442 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.393868Jy  sigma=0.001173
! Fit after  self-cal, rms=0.393857Jy  sigma=0.001173
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 = -1.3903e-05 Jy
! Component: 100  -  total flux cleaned = -2.05988e-05 Jy
! Component: 150  -  total flux cleaned = -4.53843e-05 Jy
! Component: 200  -  total flux cleaned = -6.186e-05 Jy
! Total flux subtracted in 200 components = -6.186e-05 Jy
! Clean residual min=-0.003947 max=0.006169 Jy/beam
! Clean residual mean=-0.000025 rms=0.001533 Jy/beam
! Combined flux in latest and established models = 0.97638 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 91 components and 0.97638 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.393862Jy  sigma=0.001173
! Fit after  self-cal, rms=0.393861Jy  sigma=0.001173
! 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.762 mas, bmaj=7.05 mas, bpa=19.69 degrees
! Estimated noise=716.456 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.762 x 7.05 at 19.69 degrees (North through East)
! Clean map  min=-0.0033838  max=0.86401 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.393861Jy  sigma=0.001173
! Fit after  self-cal, rms=0.503466Jy  sigma=0.000931
! Inverting map and beam 
! Estimated beam: bmin=2.762 mas, bmaj=7.052 mas, bpa=19.66 degrees
! Estimated noise=715.687 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00129334 Jy
! Component: 100  -  total flux cleaned = -0.00139078 Jy
! Component: 150  -  total flux cleaned = -0.00144709 Jy
! Component: 200  -  total flux cleaned = -0.00154848 Jy
! Total flux subtracted in 200 components = -0.00154848 Jy
! Clean residual min=-0.003313 max=0.003277 Jy/beam
! Clean residual mean=-0.000138 rms=0.000841 Jy/beam
! Combined flux in latest and established models = 0.974832 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 96 components and 0.974832 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.503447Jy  sigma=0.000931
! Fit after  self-cal, rms=0.503464Jy  sigma=0.000931
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000224331 Jy
! Component: 100  -  total flux cleaned = -0.000248184 Jy
! Component: 150  -  total flux cleaned = -0.000290887 Jy
! Component: 200  -  total flux cleaned = -0.000310301 Jy
! Total flux subtracted in 200 components = -0.000310301 Jy
! Clean residual min=-0.003255 max=0.003309 Jy/beam
! Clean residual mean=-0.000134 rms=0.000837 Jy/beam
! Combined flux in latest and established models = 0.974521 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 97 components and 0.974521 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.503454Jy  sigma=0.000931
! Fit after  self-cal, rms=0.503446Jy  sigma=0.000931
! 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.503446Jy  sigma=0.000931
! Fit after  self-cal, rms=0.595348Jy  sigma=0.000931
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.611 mas, bmaj=6.647 mas, bpa=26.09 degrees
! Estimated noise=1258.8 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.680107 Jy
! Component: 100  -  total flux cleaned = 0.841614 Jy
! Component: 150  -  total flux cleaned = 0.902829 Jy
! Component: 200  -  total flux cleaned = 0.930501 Jy
! Total flux subtracted in 200 components = 0.930501 Jy
! Clean residual min=-0.007217 max=0.013815 Jy/beam
! Clean residual mean=0.000127 rms=0.002020 Jy/beam
! Combined flux in latest and established models = 0.930501 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 18 model components to the UV plane model.
! The established model now contains 18 components and 0.930501 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.764 mas, bmaj=7.053 mas, bpa=19.67 degrees
! Estimated noise=715.711 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.0210248 Jy
! Component: 100  -  total flux cleaned = 0.0319393 Jy
! Component: 150  -  total flux cleaned = 0.0380388 Jy
! Component: 200  -  total flux cleaned = 0.041289 Jy
! Total flux subtracted in 200 components = 0.041289 Jy
! Clean residual min=-0.004204 max=0.004244 Jy/beam
! Clean residual mean=-0.000111 rms=0.001048 Jy/beam
! Combined flux in latest and established models = 0.97179 Jy
! Adding 28 model components to the UV plane model.
! The established model now contains 44 components and 0.97179 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.61 mas, bmaj=11.58 mas, bpa=22.14 degrees
! Estimated noise=933.992 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00196771 Jy
! Component: 100  -  total flux cleaned = 0.00204841 Jy
! Component: 150  -  total flux cleaned = 0.00200059 Jy
! Component: 200  -  total flux cleaned = 0.00188256 Jy
! Total flux subtracted in 200 components = 0.00188256 Jy
! Clean residual min=-0.003827 max=0.004801 Jy/beam
! Clean residual mean=-0.000336 rms=0.001324 Jy/beam
! Combined flux in latest and established models = 0.973673 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 = -6.39763e-05 Jy
! Component: 100  -  total flux cleaned = -0.000146057 Jy
! Component: 150  -  total flux cleaned = -0.00019361 Jy
! Component: 200  -  total flux cleaned = -0.000236661 Jy
! Total flux subtracted in 200 components = -0.000236661 Jy
! Clean residual min=-0.003864 max=0.004708 Jy/beam
! Clean residual mean=-0.000328 rms=0.001301 Jy/beam
! Combined flux in latest and established models = 0.973436 Jy
! Adding 13 model components to the UV plane model.
! The established model now contains 56 components and 0.973436 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.764 mas, bmaj=7.053 mas, bpa=19.67 degrees
! Estimated noise=715.711 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 7.78371e-07 Jy
! Component: 100  -  total flux cleaned = -1.89175e-10 Jy
! Component: 150  -  total flux cleaned = -7.23081e-05 Jy
! Component: 200  -  total flux cleaned = -7.21934e-05 Jy
! Total flux subtracted in 200 components = -7.21934e-05 Jy
! Clean residual min=-0.003200 max=0.003859 Jy/beam
! Clean residual mean=-0.000137 rms=0.000942 Jy/beam
! Combined flux in latest and established models = 0.973364 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 63 components and 0.973364 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.595384Jy  sigma=0.000932
! Fit after  self-cal, rms=0.595418Jy  sigma=0.000932
wmodel J0956+2515_S_2003_09_17_pus_map.mod
! Writing 63 model components to file: J0956+2515_S_2003_09_17_pus_map.mod
wobs J0956+2515_S_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J0956+2515_S_2003_09_17_pus_uvs.fits
wwins J0956+2515_S_2003_09_17_pus_map.win
! wwins: Wrote 1 windows to J0956+2515_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.00144604 Jy
! Component: 100  -  total flux cleaned = 0.00122444 Jy
! Component: 150  -  total flux cleaned = 0.00111907 Jy
! Component: 200  -  total flux cleaned = 0.000814263 Jy
! Component: 250  -  total flux cleaned = 0.000669179 Jy
! Component: 300  -  total flux cleaned = 0.000670158 Jy
! Component: 350  -  total flux cleaned = 0.000580531 Jy
! Component: 400  -  total flux cleaned = 0.00045148 Jy
! Component: 450  -  total flux cleaned = 0.000283371 Jy
! Component: 500  -  total flux cleaned = 3.83838e-05 Jy
! Component: 550  -  total flux cleaned = -0.000160236 Jy
! Component: 600  -  total flux cleaned = -0.000393073 Jy
! Component: 650  -  total flux cleaned = -0.000695531 Jy
! Component: 700  -  total flux cleaned = -0.000991695 Jy
! Component: 750  -  total flux cleaned = -0.0012817 Jy
! Component: 800  -  total flux cleaned = -0.0015655 Jy
! Component: 850  -  total flux cleaned = -0.00180844 Jy
! Component: 900  -  total flux cleaned = -0.00208058 Jy
! Component: 950  -  total flux cleaned = -0.00238117 Jy
! Component: 1000  -  total flux cleaned = -0.0026105 Jy
! Component: 1050  -  total flux cleaned = -0.00293167 Jy
! Component: 1100  -  total flux cleaned = -0.00315222 Jy
! Component: 1150  -  total flux cleaned = -0.00339956 Jy
! Component: 1200  -  total flux cleaned = -0.00358168 Jy
! Component: 1250  -  total flux cleaned = -0.0037613 Jy
! Component: 1300  -  total flux cleaned = -0.00402628 Jy
! Component: 1350  -  total flux cleaned = -0.004229 Jy
! Component: 1400  -  total flux cleaned = -0.00448551 Jy
! Component: 1450  -  total flux cleaned = -0.00465395 Jy
! Component: 1500  -  total flux cleaned = -0.00487537 Jy
! Component: 1550  -  total flux cleaned = -0.00509367 Jy
! Component: 1600  -  total flux cleaned = -0.00528198 Jy
! Component: 1650  -  total flux cleaned = -0.00549415 Jy
! Component: 1700  -  total flux cleaned = -0.00570315 Jy
! Component: 1750  -  total flux cleaned = -0.00585758 Jy
! Component: 1800  -  total flux cleaned = -0.00606078 Jy
! Component: 1850  -  total flux cleaned = -0.00623629 Jy
! Component: 1900  -  total flux cleaned = -0.00640926 Jy
! Component: 1950  -  total flux cleaned = -0.00660414 Jy
! Component: 2000  -  total flux cleaned = -0.00672459 Jy
! Total flux subtracted in 2048 components = -0.0068673 Jy
! Clean residual min=-0.001345 max=0.001377 Jy/beam
! Clean residual mean=-0.000077 rms=0.000485 Jy/beam
! Combined flux in latest and established models = 0.966497 Jy
keep
! Adding 152 model components to the UV plane model.
! The established model now contains 215 components and 0.966497 Jy
wmap "J0956+2515_S_2003_09_17_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.764 x 7.053 at 19.67 degrees (North through East)
! Clean map  min=-0.0022743  max=0.8659 Jy/beam
! Writing clean map to FITS file: J0956+2515_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 0.8659 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00048225 
device "J0956+2515_S_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J0956+2515_S_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.16708 0.16708 0.334161 0.668322 1.33664 2.67329 5.34657 10.6931 21.3863 42.7726 85.5452
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0014 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.865 
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.764 x 7.053 at 19.67 degrees (North through East)
! Clean map  min=-0.0022743  max=0.8659 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0956+2515_S_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J0956+2515_S_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0956+2515_S_2003_09_17_pus_uvs.log closed on Mon May 21 21:30:40 2007