! Started logfile: J1159+2914_S_2003_05_07_pus_uvs.log on Sun Dec 24 10:32:43 2006
obs J1159+2914_S_2003_05_07_pus_uva.fits
! Reading UV FITS file: J1159+2914_S_2003_05_07_pus_uva.fits
! AN table 1: 225 integrations on 171 of 171 possible baselines.
! AN table 2: 61 integrations on 171 of 171 possible baselines.
! AN table 3: 87 integrations on 171 of 171 possible baselines.
! AN table 4: 11 integrations on 171 of 171 possible baselines.
! AN table 5: 18 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.0975532 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1159+2914
! 
! 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 1680 lines of history.
! 
! Reading 26824 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
float field_size
field_size = 512
float field_cell
field_cell = 0.5
float 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 3173 telescope corrections were flagged in sub-array 1.
!  A total of 1117 telescope corrections were flagged in sub-array 2.
!  A total of 1419 telescope corrections were flagged in sub-array 3.
!  A total of 209 telescope corrections were flagged in sub-array 4.
!  A total of 146 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 3173 telescope corrections were flagged in sub-array 1.
!  A total of 1117 telescope corrections were flagged in sub-array 2.
!  A total of 1419 telescope corrections were flagged in sub-array 3.
!  A total of 209 telescope corrections were flagged in sub-array 4.
!  A total of 146 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 3173 telescope corrections were flagged in sub-array 1.
!  A total of 1117 telescope corrections were flagged in sub-array 2.
!  A total of 1419 telescope corrections were flagged in sub-array 3.
!  A total of 209 telescope corrections were flagged in sub-array 4.
!  A total of 146 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 3173 telescope corrections were flagged in sub-array 1.
!  A total of 1117 telescope corrections were flagged in sub-array 2.
!  A total of 1419 telescope corrections were flagged in sub-array 3.
!  A total of 209 telescope corrections were flagged in sub-array 4.
!  A total of 146 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=1.165938Jy  sigma=0.008241
! Fit after  self-cal, rms=0.587941Jy  sigma=0.003795
! 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.012 mas, bmaj=3.597 mas, bpa=-13.84 degrees
! Estimated noise=1249.23 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.926965 Jy
! Component: 100  -  total flux cleaned = 1.16476 Jy
! Total flux subtracted in 100 components = 1.16476 Jy
! Clean residual min=-0.044769 max=0.106508 Jy/beam
! Clean residual mean=0.000383 rms=0.012554 Jy/beam
! Combined flux in latest and established models = 1.16476 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 11 components and 1.16476 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.522467Jy  sigma=0.003105
! Fit after  self-cal, rms=0.522297Jy  sigma=0.003105
! Inverting map 
! Added new window around map position (0, 4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.127265 Jy
! Component: 100  -  total flux cleaned = 0.208122 Jy
! Total flux subtracted in 100 components = 0.208122 Jy
! Clean residual min=-0.044867 max=0.056382 Jy/beam
! Clean residual mean=0.000286 rms=0.010092 Jy/beam
! Combined flux in latest and established models = 1.37288 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 25 components and 1.37288 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.474723Jy  sigma=0.002503
! Fit after  self-cal, rms=0.474335Jy  sigma=0.002502
! 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.756 mas, bmaj=4.871 mas, bpa=-15.58 degrees
! Estimated noise=675.522 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.100081 Jy
! Component: 100  -  total flux cleaned = 0.151846 Jy
! Component: 150  -  total flux cleaned = 0.182365 Jy
! Component: 200  -  total flux cleaned = 0.200785 Jy
! Total flux subtracted in 200 components = 0.200785 Jy
! Clean residual min=-0.032532 max=0.055485 Jy/beam
! Clean residual mean=0.001649 rms=0.011971 Jy/beam
! Combined flux in latest and established models = 1.57367 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 52 components and 1.57367 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.461859Jy  sigma=0.002246
! Fit after  self-cal, rms=0.460868Jy  sigma=0.002241
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 72 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.98     GG        1.00*    HN        1.06     
!   KK        0.96     KP        0.91     LA        0.99     MA        1.00*    
!   MC        1.49     MK        0.95     NL        0.87     ON        0.96     
!   OV        1.13     PT        0.94     SC        0.85     TC        1.02     
!   TS        1.00*    WF        1.09     WZ        1.02     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        0.90     
!   MC        0.94     MK        1.00*    NL        1.00*    ON        1.15     
!   OV        1.00*    PT        1.00*    SC        0.90     TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        0.86     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.08     GG        1.00*    HN        1.00*    
!   KK        1.00     KP        1.09     LA        1.10     MA        1.13     
!   MC        1.84     MK        0.97     NL        1.14     ON        1.08     
!   OV        2.85     PT        1.08     SC        1.00*    TC        1.00*    
!   TS        1.20     WF        1.00*    WZ        1.00     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.01     FD        0.98     GG        1.00*    HN        1.03     
!   KK        1.13     KP        0.87     LA        1.03     MA        1.00*    
!   MC        1.00*    MK        1.09     NL        1.04     ON        0.94     
!   OV        1.02     PT        0.98     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.09     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 72 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.07     FD        1.01     GG        1.00*    HN        1.01     
!   KK        1.01     KP        0.90     LA        0.94     MA        1.00*    
!   MC        1.03     MK        0.98     NL        0.89     ON        1.07     
!   OV        1.00     PT        0.92     SC        0.85     TC        1.06     
!   TS        1.00*    WF        1.05     WZ        1.01     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.05     
!   MC        1.06     MK        1.00*    NL        1.00*    ON        1.15     
!   OV        1.00*    PT        1.00*    SC        0.98     TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        0.82     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.11     FD        1.10     GG        1.00*    HN        1.00*    
!   KK        1.05     KP        1.06     LA        1.06     MA        1.24     
!   MC        1.04     MK        1.03     NL        1.15     ON        1.20     
!   OV        1.77     PT        1.05     SC        1.00*    TC        1.00*    
!   TS        1.18     WF        1.00*    WZ        1.05     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.08     FD        1.02     GG        1.00*    HN        1.04     
!   KK        1.17     KP        0.93     LA        0.98     MA        1.00*    
!   MC        1.00*    MK        1.18     NL        1.07     ON        1.01     
!   OV        1.07     PT        0.98     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.07     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 72 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.98     GG        1.00*    HN        1.04     
!   KK        0.99     KP        0.92     LA        0.95     MA        1.00*    
!   MC        1.01     MK        0.94     NL        0.90     ON        1.12     
!   OV        0.98     PT        0.96     SC        0.96     TC        0.97     
!   TS        1.00*    WF        1.04     WZ        1.04     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.22     
!   MC        0.92     MK        1.00*    NL        1.00*    ON        1.19     
!   OV        1.00*    PT        1.00*    SC        1.01     TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        0.89     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.05     GG        1.00*    HN        1.00*    
!   KK        1.03     KP        1.11     LA        1.07     MA        1.19     
!   MC        1.11     MK        0.99     NL        1.18     ON        1.27     
!   OV        2.72     PT        1.11     SC        1.00*    TC        1.00*    
!   TS        1.20     WF        1.00*    WZ        1.10     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.04     FD        0.97     GG        1.00*    HN        1.05     
!   KK        1.13     KP        0.96     LA        1.00     MA        1.00*    
!   MC        1.00*    MK        1.12     NL        1.09     ON        1.00     
!   OV        1.07     PT        1.01     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.06     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 72 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.98     GG        1.00*    HN        1.16     
!   KK        0.99     KP        0.90     LA        0.95     MA        1.00*    
!   MC        1.02     MK        0.98     NL        0.84     ON        1.01     
!   OV        0.97     PT        0.91     SC        0.96     TC        0.97     
!   TS        1.00*    WF        1.06     WZ        1.01     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        0.97     
!   MC        0.97     MK        1.00*    NL        1.00*    ON        0.99     
!   OV        1.00*    PT        1.00*    SC        1.02     TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        0.88     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.07     FD        1.08     GG        1.00*    HN        1.00*    
!   KK        1.04     KP        1.06     LA        1.08     MA        1.14     
!   MC        1.09     MK        1.04     NL        1.11     ON        1.17     
!   OV        3.94     PT        1.04     SC        1.00*    TC        1.00*    
!   TS        1.20     WF        1.00*    WZ        1.04     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.02     FD        0.96     GG        1.00*    HN        1.05     
!   KK        1.12     KP        0.92     LA        1.01     MA        1.00*    
!   MC        1.00*    MK        1.19     NL        1.02     ON        0.86     
!   OV        1.03     PT        0.97     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.07     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.460868Jy  sigma=0.002241
! Fit after  self-cal, rms=0.441233Jy  sigma=0.001912
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.814 mas, bmaj=4.909 mas, bpa=-15.73 degrees
! Estimated noise=676.598 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 (3.5, 6.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.027926 Jy
! Component: 100  -  total flux cleaned = 0.0268236 Jy
! Component: 150  -  total flux cleaned = 0.025998 Jy
! Component: 200  -  total flux cleaned = 0.0253119 Jy
! Total flux subtracted in 200 components = 0.0253119 Jy
! Clean residual min=-0.030523 max=0.029342 Jy/beam
! Clean residual mean=0.000561 rms=0.008727 Jy/beam
! Combined flux in latest and established models = 1.59898 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 72 components and 1.59898 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.436706Jy  sigma=0.001853
! Fit after  self-cal, rms=0.436565Jy  sigma=0.001849
! 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.436565Jy  sigma=0.001849
! Fit after  self-cal, rms=0.422304Jy  sigma=0.001452
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.815 mas, bmaj=4.919 mas, bpa=-15.68 degrees
! Estimated noise=674.962 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0272067 Jy
! Component: 100  -  total flux cleaned = 0.034417 Jy
! Component: 150  -  total flux cleaned = 0.036843 Jy
! Component: 200  -  total flux cleaned = 0.0388805 Jy
! Total flux subtracted in 200 components = 0.0388805 Jy
! Clean residual min=-0.007445 max=0.019296 Jy/beam
! Clean residual mean=0.001892 rms=0.003215 Jy/beam
! Combined flux in latest and established models = 1.63786 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 97 components and 1.63786 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.420584Jy  sigma=0.001417
! Fit after  self-cal, rms=0.420453Jy  sigma=0.001413
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 (2, 26).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0167879 Jy
! Component: 100  -  total flux cleaned = 0.0235975 Jy
! Component: 150  -  total flux cleaned = 0.0290892 Jy
! Component: 200  -  total flux cleaned = 0.0315612 Jy
! Total flux subtracted in 200 components = 0.0315612 Jy
! Clean residual min=-0.009491 max=0.013089 Jy/beam
! Clean residual mean=0.001468 rms=0.002687 Jy/beam
! Combined flux in latest and established models = 1.66942 Jy
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 125 components and 1.66942 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.419579Jy  sigma=0.001397
! Fit after  self-cal, rms=0.419466Jy  sigma=0.001396
! Inverting map 
! Added new window around map position (9, 10.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00816393 Jy
! Component: 100  -  total flux cleaned = 0.0102117 Jy
! Component: 150  -  total flux cleaned = 0.0111934 Jy
! Component: 200  -  total flux cleaned = 0.0125429 Jy
! Total flux subtracted in 200 components = 0.0125429 Jy
! Clean residual min=-0.009335 max=0.011193 Jy/beam
! Clean residual mean=0.001288 rms=0.002441 Jy/beam
! Combined flux in latest and established models = 1.68196 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 135 components and 1.68196 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.418929Jy  sigma=0.001390
! Fit after  self-cal, rms=0.418852Jy  sigma=0.001389
! Inverting map 
! Added new window around map position (8, 56).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00718994 Jy
! Component: 100  -  total flux cleaned = 0.0101358 Jy
! Component: 150  -  total flux cleaned = 0.012239 Jy
! Component: 200  -  total flux cleaned = 0.0135863 Jy
! Total flux subtracted in 200 components = 0.0135863 Jy
! Clean residual min=-0.009289 max=0.009031 Jy/beam
! Clean residual mean=0.001105 rms=0.002286 Jy/beam
! Combined flux in latest and established models = 1.69555 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 147 components and 1.69555 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.418433Jy  sigma=0.001385
! Fit after  self-cal, rms=0.418415Jy  sigma=0.001385
! 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.418415Jy  sigma=0.001385
! Fit after  self-cal, rms=0.415713Jy  sigma=0.001364
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.818 mas, bmaj=4.923 mas, bpa=-15.51 degrees
! Estimated noise=674.432 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00811569 Jy
! Component: 100  -  total flux cleaned = 0.0120051 Jy
! Component: 150  -  total flux cleaned = 0.0153885 Jy
! Component: 200  -  total flux cleaned = 0.0175 Jy
! Total flux subtracted in 200 components = 0.0175 Jy
! Clean residual min=-0.005610 max=0.007310 Jy/beam
! Clean residual mean=0.000925 rms=0.001730 Jy/beam
! Combined flux in latest and established models = 1.71305 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 163 components and 1.71305 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.415367Jy  sigma=0.001359
! Fit after  self-cal, rms=0.415295Jy  sigma=0.001358
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.00233362 Jy
! Component: 100  -  total flux cleaned = 0.00447066 Jy
! Component: 150  -  total flux cleaned = 0.00618828 Jy
! Component: 200  -  total flux cleaned = 0.0068988 Jy
! Total flux subtracted in 200 components = 0.0068988 Jy
! Clean residual min=-0.005815 max=0.007075 Jy/beam
! Clean residual mean=0.000829 rms=0.001657 Jy/beam
! Combined flux in latest and established models = 1.71995 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 176 components and 1.71995 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.415138Jy  sigma=0.001356
! Fit after  self-cal, rms=0.415118Jy  sigma=0.001356
! Inverting map 
! Added new window around map position (-11, 33).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00741533 Jy
! Component: 100  -  total flux cleaned = 0.00995626 Jy
! Component: 150  -  total flux cleaned = 0.0117068 Jy
! Component: 200  -  total flux cleaned = 0.0123681 Jy
! Total flux subtracted in 200 components = 0.0123681 Jy
! Clean residual min=-0.006179 max=0.005588 Jy/beam
! Clean residual mean=0.000662 rms=0.001546 Jy/beam
! Combined flux in latest and established models = 1.73232 Jy
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 197 components and 1.73232 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.414898Jy  sigma=0.001354
! Fit after  self-cal, rms=0.414893Jy  sigma=0.001354
! 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.414893Jy  sigma=0.001354
! Fit after  self-cal, rms=0.415271Jy  sigma=0.001351
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.307 mas, bmaj=10.38 mas, bpa=1.898 degrees
! Estimated noise=820.749 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00833301 Jy
! Component: 100  -  total flux cleaned = 0.0130865 Jy
! Component: 150  -  total flux cleaned = 0.0151653 Jy
! Component: 200  -  total flux cleaned = 0.0167538 Jy
! Total flux subtracted in 200 components = 0.0167538 Jy
! Clean residual min=-0.006148 max=0.006407 Jy/beam
! Clean residual mean=0.001194 rms=0.001991 Jy/beam
! Combined flux in latest and established models = 1.74907 Jy
selfcal
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 229 components and 1.74907 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.415180Jy  sigma=0.001350
! Fit after  self-cal, rms=0.415158Jy  sigma=0.001350
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.00180644 Jy
! Component: 100  -  total flux cleaned = 0.00273412 Jy
! Component: 150  -  total flux cleaned = 0.00354102 Jy
! Component: 200  -  total flux cleaned = 0.00415968 Jy
! Total flux subtracted in 200 components = 0.00415968 Jy
! Clean residual min=-0.006524 max=0.006397 Jy/beam
! Clean residual mean=0.001062 rms=0.001999 Jy/beam
! Combined flux in latest and established models = 1.75323 Jy
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 249 components and 1.75323 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.415108Jy  sigma=0.001350
! Fit after  self-cal, rms=0.415097Jy  sigma=0.001350
! 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.82 mas, bmaj=4.928 mas, bpa=-15.38 degrees
! Estimated noise=674.593 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.82 x 4.928 at -15.38 degrees (North through East)
! Clean map  min=-0.0048861  max=1.2521 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.415097Jy  sigma=0.001350
! Fit after  self-cal, rms=0.505857Jy  sigma=0.001191
! Inverting map and beam 
! Estimated beam: bmin=2.819 mas, bmaj=4.925 mas, bpa=-15.39 degrees
! Estimated noise=673.575 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00197308 Jy
! Component: 100  -  total flux cleaned = 0.0027459 Jy
! Component: 150  -  total flux cleaned = 0.00330194 Jy
! Component: 200  -  total flux cleaned = 0.00355824 Jy
! Total flux subtracted in 200 components = 0.00355824 Jy
! Clean residual min=-0.004542 max=0.005522 Jy/beam
! Clean residual mean=0.000511 rms=0.001150 Jy/beam
! Combined flux in latest and established models = 1.75679 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 265 components and 1.75679 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.505752Jy  sigma=0.001190
! Fit after  self-cal, rms=0.505741Jy  sigma=0.001189
! Inverting map 
! Added new window around map position (8.5, 38).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00468414 Jy
! Component: 100  -  total flux cleaned = 0.00563243 Jy
! Component: 150  -  total flux cleaned = 0.00623728 Jy
! Component: 200  -  total flux cleaned = 0.00645754 Jy
! Total flux subtracted in 200 components = 0.00645754 Jy
! Clean residual min=-0.004601 max=0.004658 Jy/beam
! Clean residual mean=0.000425 rms=0.001089 Jy/beam
! Combined flux in latest and established models = 1.76325 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 275 components and 1.76325 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.505627Jy  sigma=0.001188
! Fit after  self-cal, rms=0.505624Jy  sigma=0.001188
! Inverting map 
! Added new window around map position (-19.5, 59.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00249037 Jy
! Component: 100  -  total flux cleaned = 0.00304404 Jy
! Component: 150  -  total flux cleaned = 0.0036524 Jy
! Component: 200  -  total flux cleaned = 0.00374685 Jy
! Total flux subtracted in 200 components = 0.00374685 Jy
! Clean residual min=-0.004507 max=0.004393 Jy/beam
! Clean residual mean=0.000376 rms=0.001058 Jy/beam
! Combined flux in latest and established models = 1.76699 Jy
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 286 components and 1.76699 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.505547Jy  sigma=0.001187
! Fit after  self-cal, rms=0.505539Jy  sigma=0.001187
! 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.505539Jy  sigma=0.001187
! Fit after  self-cal, rms=0.579674Jy  sigma=0.001187
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.064 mas, bmaj=3.624 mas, bpa=-14.34 degrees
! Estimated noise=1280.22 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.941403 Jy
! Component: 100  -  total flux cleaned = 1.17295 Jy
! Component: 150  -  total flux cleaned = 1.28053 Jy
! Component: 200  -  total flux cleaned = 1.35164 Jy
! Total flux subtracted in 200 components = 1.35164 Jy
! Clean residual min=-0.013651 max=0.040387 Jy/beam
! Clean residual mean=0.000303 rms=0.004764 Jy/beam
! Combined flux in latest and established models = 1.35164 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 31 model components to the UV plane model.
! The established model now contains 31 components and 1.35164 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.82 mas, bmaj=4.925 mas, bpa=-15.35 degrees
! Estimated noise=673.028 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.113749 Jy
! Component: 100  -  total flux cleaned = 0.182456 Jy
! Component: 150  -  total flux cleaned = 0.227965 Jy
! Component: 200  -  total flux cleaned = 0.259484 Jy
! Total flux subtracted in 200 components = 0.259484 Jy
! Clean residual min=-0.005134 max=0.017851 Jy/beam
! Clean residual mean=0.002526 rms=0.004358 Jy/beam
! Combined flux in latest and established models = 1.61113 Jy
! Adding 98 model components to the UV plane model.
! The established model now contains 115 components and 1.61113 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.295 mas, bmaj=10.37 mas, bpa=1.895 degrees
! Estimated noise=819.587 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0416524 Jy
! Component: 100  -  total flux cleaned = 0.0686122 Jy
! Component: 150  -  total flux cleaned = 0.0884013 Jy
! Component: 200  -  total flux cleaned = 0.103445 Jy
! Total flux subtracted in 200 components = 0.103445 Jy
! Clean residual min=-0.004385 max=0.010000 Jy/beam
! Clean residual mean=0.002527 rms=0.003177 Jy/beam
! Combined flux in latest and established models = 1.71457 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.011751 Jy
! Component: 100  -  total flux cleaned = 0.0210691 Jy
! Component: 150  -  total flux cleaned = 0.0285191 Jy
! Component: 200  -  total flux cleaned = 0.0345275 Jy
! Total flux subtracted in 200 components = 0.0345275 Jy
! Clean residual min=-0.004399 max=0.005857 Jy/beam
! Clean residual mean=0.001460 rms=0.001655 Jy/beam
! Combined flux in latest and established models = 1.7491 Jy
! Adding 185 model components to the UV plane model.
! The established model now contains 290 components and 1.7491 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.82 mas, bmaj=4.925 mas, bpa=-15.35 degrees
! Estimated noise=673.028 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00543317 Jy
! Component: 100  -  total flux cleaned = 0.00844426 Jy
! Component: 150  -  total flux cleaned = 0.0107833 Jy
! Component: 200  -  total flux cleaned = 0.0123597 Jy
! Total flux subtracted in 200 components = 0.0123597 Jy
! Clean residual min=-0.004000 max=0.005156 Jy/beam
! Clean residual mean=0.000476 rms=0.001037 Jy/beam
! Combined flux in latest and established models = 1.76146 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 311 components and 1.76146 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.579946Jy  sigma=0.001189
! Fit after  self-cal, rms=0.579959Jy  sigma=0.001188
wmodel J1159+2914_S_2003_05_07_pus_map.mod
! Writing 311 model components to file: J1159+2914_S_2003_05_07_pus_map.mod
wobs J1159+2914_S_2003_05_07_pus_uvs.fits
! Writing UV FITS file: J1159+2914_S_2003_05_07_pus_uvs.fits
wwins J1159+2914_S_2003_05_07_pus_map.win
! wwins: Wrote 9 windows to J1159+2914_S_2003_05_07_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.00226573 Jy
! Component: 100  -  total flux cleaned = 0.0036726 Jy
! Component: 150  -  total flux cleaned = 0.00462391 Jy
! Component: 200  -  total flux cleaned = 0.00559844 Jy
! Component: 250  -  total flux cleaned = 0.00647094 Jy
! Component: 300  -  total flux cleaned = 0.00750946 Jy
! Component: 350  -  total flux cleaned = 0.0084527 Jy
! Component: 400  -  total flux cleaned = 0.00942982 Jy
! Component: 450  -  total flux cleaned = 0.01032 Jy
! Component: 500  -  total flux cleaned = 0.0111313 Jy
! Component: 550  -  total flux cleaned = 0.0119836 Jy
! Component: 600  -  total flux cleaned = 0.012931 Jy
! Component: 650  -  total flux cleaned = 0.0138611 Jy
! Component: 700  -  total flux cleaned = 0.0147746 Jy
! Component: 750  -  total flux cleaned = 0.0156738 Jy
! Component: 800  -  total flux cleaned = 0.0165074 Jy
! Component: 850  -  total flux cleaned = 0.01738 Jy
! Component: 900  -  total flux cleaned = 0.0179875 Jy
! Component: 950  -  total flux cleaned = 0.0186872 Jy
! Component: 1000  -  total flux cleaned = 0.0193287 Jy
! Component: 1050  -  total flux cleaned = 0.0198649 Jy
! Component: 1100  -  total flux cleaned = 0.020347 Jy
! Component: 1150  -  total flux cleaned = 0.0208241 Jy
! Component: 1200  -  total flux cleaned = 0.0213432 Jy
! Component: 1250  -  total flux cleaned = 0.0218098 Jy
! Component: 1300  -  total flux cleaned = 0.0222716 Jy
! Component: 1350  -  total flux cleaned = 0.0227288 Jy
! Component: 1400  -  total flux cleaned = 0.0231365 Jy
! Component: 1450  -  total flux cleaned = 0.0235402 Jy
! Component: 1500  -  total flux cleaned = 0.0238963 Jy
! Component: 1550  -  total flux cleaned = 0.0242493 Jy
! Component: 1600  -  total flux cleaned = 0.0246433 Jy
! Component: 1650  -  total flux cleaned = 0.0250772 Jy
! Component: 1700  -  total flux cleaned = 0.0252926 Jy
! Component: 1750  -  total flux cleaned = 0.0256776 Jy
! Component: 1800  -  total flux cleaned = 0.0259748 Jy
! Component: 1850  -  total flux cleaned = 0.026312 Jy
! Component: 1900  -  total flux cleaned = 0.0266047 Jy
! Component: 1950  -  total flux cleaned = 0.026854 Jy
! Component: 2000  -  total flux cleaned = 0.027102 Jy
! Total flux subtracted in 2048 components = 0.0274304 Jy
! Clean residual min=-0.002044 max=0.002686 Jy/beam
! Clean residual mean=0.000184 rms=0.000743 Jy/beam
! Combined flux in latest and established models = 1.78889 Jy
keep
! Adding 149 model components to the UV plane model.
! The established model now contains 459 components and 1.78889 Jy
wmap "J1159+2914_S_2003_05_07_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.82 x 4.925 at -15.35 degrees (North through East)
! Clean map  min=-0.0032599  max=1.2551 Jy/beam
! Writing clean map to FITS file: J1159+2914_S_2003_05_07_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.25508 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00074336 
device "J1159+2914_S_2003_05_07_pus\_map.eps/VPS"
! Attempting to open device: 'J1159+2914_S_2003_05_07_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.177684 0.177684 0.355369 0.710738 1.42148 2.84295 5.6859 11.3718 22.7436 45.4872 90.9744
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0022 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.255 
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.82 x 4.925 at -15.35 degrees (North through East)
! Clean map  min=-0.0032599  max=1.2551 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1159+2914_S_2003_05_07_pus\_map.gif/vgif"
! Attempting to open device: 'J1159+2914_S_2003_05_07_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1159+2914_S_2003_05_07_pus_uvs.log closed on Sun Dec 24 10:35:08 2006