! Started logfile: J1159+2914_S_2003_09_17_pus_uvs.log on Mon May 21 21:42:23 2007
obs J1159+2914_S_2003_09_17_pus_uva.fits
! Reading UV FITS file: J1159+2914_S_2003_09_17_pus_uva.fits
! AN table 1: 126 integrations on 120 of 120 possible baselines.
! AN table 2: 32 integrations on 120 of 120 possible baselines.
! AN table 3: 140 integrations on 120 of 120 possible baselines.
! AN table 4: 271 integrations on 120 of 120 possible baselines.
! AN table 5: 24 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.08724 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1159+2914
! 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 24832 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 1332 telescope corrections were flagged in sub-array 1.
!  A total of 458 telescope corrections were flagged in sub-array 2.
!  A total of 1789 telescope corrections were flagged in sub-array 3.
!  A total of 3395 telescope corrections were flagged in sub-array 4.
!  A total of 259 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 1332 telescope corrections were flagged in sub-array 1.
!  A total of 458 telescope corrections were flagged in sub-array 2.
!  A total of 1789 telescope corrections were flagged in sub-array 3.
!  A total of 3395 telescope corrections were flagged in sub-array 4.
!  A total of 259 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 1332 telescope corrections were flagged in sub-array 1.
!  A total of 458 telescope corrections were flagged in sub-array 2.
!  A total of 1789 telescope corrections were flagged in sub-array 3.
!  A total of 3395 telescope corrections were flagged in sub-array 4.
!  A total of 259 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 1332 telescope corrections were flagged in sub-array 1.
!  A total of 458 telescope corrections were flagged in sub-array 2.
!  A total of 1789 telescope corrections were flagged in sub-array 3.
!  A total of 3395 telescope corrections were flagged in sub-array 4.
!  A total of 259 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=1.158920Jy  sigma=0.006754
! Fit after  self-cal, rms=0.427201Jy  sigma=0.002462
! 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.97 mas, bmaj=3.404 mas, bpa=0.6935 degrees
! Estimated noise=1208.95 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.827086 Jy
! Component: 100  -  total flux cleaned = 1.01853 Jy
! Total flux subtracted in 100 components = 1.01853 Jy
! Clean residual min=-0.033312 max=0.076258 Jy/beam
! Clean residual mean=0.000062 rms=0.009313 Jy/beam
! Combined flux in latest and established models = 1.01853 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 11 components and 1.01853 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.421071Jy  sigma=0.002403
! Fit after  self-cal, rms=0.420947Jy  sigma=0.002402
! Inverting map 
! Added new window around map position (0, 3.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0931659 Jy
! Component: 100  -  total flux cleaned = 0.15706 Jy
! Total flux subtracted in 100 components = 0.15706 Jy
! Clean residual min=-0.028975 max=0.045112 Jy/beam
! Clean residual mean=0.000143 rms=0.007635 Jy/beam
! Combined flux in latest and established models = 1.17559 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 36 components and 1.17559 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.391135Jy  sigma=0.002117
! Fit after  self-cal, rms=0.390687Jy  sigma=0.002116
! 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.169 mas, bmaj=3.8 mas, bpa=0.3311 degrees
! Estimated noise=770.763 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.0873091 Jy
! Component: 100  -  total flux cleaned = 0.144976 Jy
! Component: 150  -  total flux cleaned = 0.184824 Jy
! Component: 200  -  total flux cleaned = 0.212504 Jy
! Total flux subtracted in 200 components = 0.212504 Jy
! Clean residual min=-0.025898 max=0.053109 Jy/beam
! Clean residual mean=0.001525 rms=0.008645 Jy/beam
! Combined flux in latest and established models = 1.38809 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 62 components and 1.38809 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.372370Jy  sigma=0.001907
! Fit after  self-cal, rms=0.371007Jy  sigma=0.001900
! Inverting map 
! Added new window around map position (3.5, 5.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0494883 Jy
! Component: 100  -  total flux cleaned = 0.0788908 Jy
! Component: 150  -  total flux cleaned = 0.0997676 Jy
! Component: 200  -  total flux cleaned = 0.115193 Jy
! Total flux subtracted in 200 components = 0.115193 Jy
! Clean residual min=-0.025132 max=0.034995 Jy/beam
! Clean residual mean=0.001300 rms=0.007248 Jy/beam
! Combined flux in latest and established models = 1.50328 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 90 components and 1.50328 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.364703Jy  sigma=0.001838
! Fit after  self-cal, rms=0.363586Jy  sigma=0.001830
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 75 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.93     GC        1.03     HN        1.13     KP        0.94     
!   LA        0.96     MK        0.97     NL        0.94     NY        1.01     
!   ON        1.28     OV        1.37     PT        0.97     SC        0.98     
!   TS        1.06     KK        0.94     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.96     GC        1.00*    HN        1.00*    KP        0.96     
!   LA        0.95     MK        1.00*    NL        1.05     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        0.96     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 75 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.00*    GC        2.56     HN        1.23     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        0.99     
!   ON        1.05     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.05     KK        1.00*    WZ        0.98     WF        1.00*    
! 
!  A total of 462 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.09     GC        0.96     HN        0.84     KP        0.93     
!   LA        0.94     MK        1.00*    NL        1.01     NY        0.99     
!   ON        0.97     OV        0.91     PT        0.96     SC        0.87     
!   TS        1.00*    KK        1.00*    WZ        0.99     WF        0.90     
! 
!  A total of 12 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        1.00*    GC        0.98     HN        1.00*    KP        0.85     
!   LA        1.00*    MK        0.83     NL        1.00*    NY        0.95     
!   ON        1.00*    OV        2.02     PT        1.00*    SC        1.00*    
!   TS        1.06     KK        0.94     WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 75 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.93     GC        0.98     HN        1.04     KP        1.01     
!   LA        0.99     MK        1.02     NL        0.98     NY        1.02     
!   ON        1.20     OV        1.06     PT        0.94     SC        1.04     
!   TS        1.05     KK        0.96     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.93     GC        1.00*    HN        1.00*    KP        1.05     
!   LA        0.98     MK        1.00*    NL        1.10     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        0.95     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 75 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.00*    GC        2.38     HN        1.30     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        0.97     
!   ON        1.02     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.05     KK        1.00*    WZ        0.95     WF        1.00*    
! 
!  A total of 462 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.10     GC        0.94     HN        0.99     KP        1.03     
!   LA        0.94     MK        1.00*    NL        1.05     NY        1.00     
!   ON        0.97     OV        0.96     PT        0.93     SC        0.95     
!   TS        1.00*    KK        1.00*    WZ        0.97     WF        0.98     
! 
!  A total of 12 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        1.00*    GC        0.97     HN        1.00*    KP        0.73     
!   LA        1.00*    MK        0.90     NL        1.00*    NY        1.02     
!   ON        1.00*    OV        1.84     PT        1.00*    SC        1.00*    
!   TS        1.03     KK        0.95     WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 75 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.90     GC        1.04     HN        1.06     KP        1.00     
!   LA        0.95     MK        0.98     NL        0.92     NY        1.00     
!   ON        1.21     OV        1.12     PT        1.00     SC        1.05     
!   TS        1.08     KK        0.99     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.94     GC        1.00*    HN        1.00*    KP        1.03     
!   LA        0.95     MK        1.00*    NL        1.04     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        0.99     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 75 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.00*    GC        2.27     HN        1.28     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        0.94     
!   ON        1.05     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.03     KK        1.00*    WZ        0.98     WF        1.00*    
! 
!  A total of 462 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.03     GC        0.98     HN        0.99     KP        1.02     
!   LA        0.92     MK        1.00*    NL        0.99     NY        0.95     
!   ON        1.00     OV        0.97     PT        0.98     SC        0.95     
!   TS        1.00*    KK        1.00*    WZ        0.95     WF        1.04     
! 
!  A total of 12 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        1.00*    GC        0.99     HN        1.00*    KP        0.85     
!   LA        1.00*    MK        0.90     NL        1.00*    NY        0.94     
!   ON        1.00*    OV        1.92     PT        1.00*    SC        1.00*    
!   TS        1.06     KK        0.95     WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 75 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.92     GC        1.04     HN        2.16     KP        1.01     
!   LA        1.00     MK        0.93     NL        0.93     NY        0.99     
!   ON        1.14     OV        1.16     PT        0.95     SC        1.01     
!   TS        1.11     KK        1.06     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.95     GC        1.00*    HN        1.00*    KP        1.05     
!   LA        0.98     MK        1.00*    NL        1.06     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        0.96     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 75 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.00*    GC        2.42     HN        1.21     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        0.92     
!   ON        1.02     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.06     KK        1.00*    WZ        0.98     WF        1.00*    
! 
!  A total of 462 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.07     GC        0.94     HN        0.63     KP        1.04     
!   LA        0.96     MK        1.00*    NL        1.00     NY        0.97     
!   ON        0.98     OV        0.94     PT        0.94     SC        0.88     
!   TS        1.00*    KK        1.00*    WZ        1.01     WF        0.92     
! 
!  A total of 12 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        1.00*    GC        1.00     HN        1.00*    KP        0.75     
!   LA        1.00*    MK        0.82     NL        1.00*    NY        0.98     
!   ON        1.00*    OV        2.19     PT        1.00*    SC        1.00*    
!   TS        1.02     KK        1.03     WZ        1.00*    WF        1.00*    
! 
! 
! Fit before self-cal, rms=0.363586Jy  sigma=0.001830
! Fit after  self-cal, rms=0.337375Jy  sigma=0.001485
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.173 mas, bmaj=3.82 mas, bpa=-0.6643 degrees
! Estimated noise=779.607 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 (8.5, 9).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00217927 Jy
! Component: 100  -  total flux cleaned = 0.00149082 Jy
! Component: 150  -  total flux cleaned = 0.00257029 Jy
! Component: 200  -  total flux cleaned = 0.0034516 Jy
! Total flux subtracted in 200 components = 0.0034516 Jy
! Clean residual min=-0.010968 max=0.015440 Jy/beam
! Clean residual mean=0.000740 rms=0.003515 Jy/beam
! Combined flux in latest and established models = 1.50674 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 107 components and 1.50674 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.334839Jy  sigma=0.001463
! Fit after  self-cal, rms=0.335940Jy  sigma=0.001460
! 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.335940Jy  sigma=0.001460
! Fit after  self-cal, rms=0.328314Jy  sigma=0.001336
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.174 mas, bmaj=3.829 mas, bpa=-0.5574 degrees
! Estimated noise=777.845 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00246576 Jy
! Component: 100  -  total flux cleaned = -0.00160365 Jy
! Component: 150  -  total flux cleaned = 0.000236831 Jy
! Component: 200  -  total flux cleaned = 0.00151614 Jy
! Total flux subtracted in 200 components = 0.00151614 Jy
! Clean residual min=-0.008185 max=0.010263 Jy/beam
! Clean residual mean=0.000471 rms=0.002370 Jy/beam
! Combined flux in latest and established models = 1.50825 Jy
selfcal
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 127 components and 1.50825 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.327186Jy  sigma=0.001327
! Fit after  self-cal, rms=0.327290Jy  sigma=0.001326
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, 18.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0110165 Jy
! Component: 100  -  total flux cleaned = 0.0146491 Jy
! Component: 150  -  total flux cleaned = 0.0169178 Jy
! Component: 200  -  total flux cleaned = 0.0189739 Jy
! Total flux subtracted in 200 components = 0.0189739 Jy
! Clean residual min=-0.007406 max=0.008545 Jy/beam
! Clean residual mean=0.000431 rms=0.002138 Jy/beam
! Combined flux in latest and established models = 1.52723 Jy
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 153 components and 1.52723 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.326597Jy  sigma=0.001320
! Fit after  self-cal, rms=0.326584Jy  sigma=0.001319
! 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.326584Jy  sigma=0.001319
! Fit after  self-cal, rms=0.326691Jy  sigma=0.001310
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.177 mas, bmaj=3.839 mas, bpa=-0.5588 degrees
! Estimated noise=776.61 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00348565 Jy
! Component: 100  -  total flux cleaned = -0.00254981 Jy
! Component: 150  -  total flux cleaned = -0.00121802 Jy
! Component: 200  -  total flux cleaned = 0.000435237 Jy
! Total flux subtracted in 200 components = 0.000435237 Jy
! Clean residual min=-0.006574 max=0.007326 Jy/beam
! Clean residual mean=0.000318 rms=0.001852 Jy/beam
! Combined flux in latest and established models = 1.52766 Jy
selfcal
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 161 components and 1.52766 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.326083Jy  sigma=0.001305
! Fit after  self-cal, rms=0.326082Jy  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.00278639 Jy
! Component: 100  -  total flux cleaned = 0.00451956 Jy
! Component: 150  -  total flux cleaned = 0.00607717 Jy
! Component: 200  -  total flux cleaned = 0.00714158 Jy
! Total flux subtracted in 200 components = 0.00714158 Jy
! Clean residual min=-0.006360 max=0.007254 Jy/beam
! Clean residual mean=0.000299 rms=0.001767 Jy/beam
! Combined flux in latest and established models = 1.5348 Jy
! Performing phase self-cal
! Adding 41 model components to the UV plane model.
! The established model now contains 174 components and 1.5348 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.325809Jy  sigma=0.001303
! Fit after  self-cal, rms=0.325822Jy  sigma=0.001302
! 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.325822Jy  sigma=0.001302
! Fit after  self-cal, rms=0.325925Jy  sigma=0.001301
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.734 mas, bmaj=9.708 mas, bpa=0.2307 degrees
! Estimated noise=1205.23 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00716331 Jy
! Component: 100  -  total flux cleaned = 0.0099966 Jy
! Component: 150  -  total flux cleaned = 0.0117597 Jy
! Component: 200  -  total flux cleaned = 0.012895 Jy
! Total flux subtracted in 200 components = 0.012895 Jy
! Clean residual min=-0.008140 max=0.011549 Jy/beam
! Clean residual mean=0.000860 rms=0.003091 Jy/beam
! Combined flux in latest and established models = 1.5477 Jy
selfcal
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 198 components and 1.5477 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.325792Jy  sigma=0.001301
! Fit after  self-cal, rms=0.325721Jy  sigma=0.001300
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.00286874 Jy
! Component: 100  -  total flux cleaned = 0.00377385 Jy
! Component: 150  -  total flux cleaned = 0.00433524 Jy
! Component: 200  -  total flux cleaned = 0.00460545 Jy
! Total flux subtracted in 200 components = 0.00460545 Jy
! Clean residual min=-0.008268 max=0.011335 Jy/beam
! Clean residual mean=0.000814 rms=0.003038 Jy/beam
! Combined flux in latest and established models = 1.5523 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 205 components and 1.5523 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.325659Jy  sigma=0.001300
! Fit after  self-cal, rms=0.325669Jy  sigma=0.001300
! 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.182 mas, bmaj=3.846 mas, bpa=-0.5799 degrees
! Estimated noise=775.877 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.182 x 3.846 at -0.5799 degrees (North through East)
! Clean map  min=-0.0053308  max=1.0552 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.325669Jy  sigma=0.001300
! Fit after  self-cal, rms=0.340313Jy  sigma=0.001140
! Inverting map and beam 
! Estimated beam: bmin=2.178 mas, bmaj=3.849 mas, bpa=-0.6018 degrees
! Estimated noise=772.951 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00344858 Jy
! Component: 100  -  total flux cleaned = -0.00476172 Jy
! Component: 150  -  total flux cleaned = -0.00591854 Jy
! Component: 200  -  total flux cleaned = -0.0065117 Jy
! Total flux subtracted in 200 components = -0.0065117 Jy
! Clean residual min=-0.004649 max=0.005915 Jy/beam
! Clean residual mean=0.000182 rms=0.001361 Jy/beam
! Combined flux in latest and established models = 1.54579 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 221 components and 1.54579 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.340126Jy  sigma=0.001138
! Fit after  self-cal, rms=0.340159Jy  sigma=0.001138
! Inverting map 
! Added new window around map position (19, -10.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00403852 Jy
! Component: 100  -  total flux cleaned = 0.00504807 Jy
! Component: 150  -  total flux cleaned = 0.00555892 Jy
! Component: 200  -  total flux cleaned = 0.00567637 Jy
! Total flux subtracted in 200 components = 0.00567637 Jy
! Clean residual min=-0.004324 max=0.005288 Jy/beam
! Clean residual mean=0.000156 rms=0.001283 Jy/beam
! Combined flux in latest and established models = 1.55147 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 232 components and 1.55147 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.340007Jy  sigma=0.001136
! Fit after  self-cal, rms=0.340003Jy  sigma=0.001136
! 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.340003Jy  sigma=0.001136
! Fit after  self-cal, rms=0.345973Jy  sigma=0.001136
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.003 mas, bmaj=3.405 mas, bpa=0.3241 degrees
! Estimated noise=1155.49 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.821329 Jy
! Component: 100  -  total flux cleaned = 1.00923 Jy
! Component: 150  -  total flux cleaned = 1.09001 Jy
! Component: 200  -  total flux cleaned = 1.14702 Jy
! Total flux subtracted in 200 components = 1.14702 Jy
! Clean residual min=-0.010747 max=0.033653 Jy/beam
! Clean residual mean=-0.000001 rms=0.004383 Jy/beam
! Combined flux in latest and established models = 1.14702 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 35 model components to the UV plane model.
! The established model now contains 35 components and 1.14702 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.18 mas, bmaj=3.853 mas, bpa=-0.6385 degrees
! Estimated noise=772.429 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.082387 Jy
! Component: 100  -  total flux cleaned = 0.140669 Jy
! Component: 150  -  total flux cleaned = 0.185132 Jy
! Component: 200  -  total flux cleaned = 0.219908 Jy
! Total flux subtracted in 200 components = 0.219908 Jy
! Clean residual min=-0.008068 max=0.020651 Jy/beam
! Clean residual mean=0.000647 rms=0.004124 Jy/beam
! Combined flux in latest and established models = 1.36693 Jy
! Adding 96 model components to the UV plane model.
! The established model now contains 118 components and 1.36693 Jy
! Inverting map 
! Added new window around map position (3.5, 12).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.027485 Jy
! Component: 100  -  total flux cleaned = 0.0493949 Jy
! Component: 150  -  total flux cleaned = 0.0671661 Jy
! Component: 200  -  total flux cleaned = 0.0817357 Jy
! Total flux subtracted in 200 components = 0.0817357 Jy
! Clean residual min=-0.005841 max=0.010858 Jy/beam
! Clean residual mean=0.000419 rms=0.002295 Jy/beam
! Combined flux in latest and established models = 1.44866 Jy
! Adding 97 model components to the UV plane model.
! The established model now contains 193 components and 1.44866 Jy
! Inverting map 
! Added new window around map position (-3, 3.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0126127 Jy
! Component: 100  -  total flux cleaned = 0.0230562 Jy
! Component: 150  -  total flux cleaned = 0.0319709 Jy
! Component: 200  -  total flux cleaned = 0.0397594 Jy
! Total flux subtracted in 200 components = 0.0397594 Jy
! Clean residual min=-0.004953 max=0.005864 Jy/beam
! Clean residual mean=0.000310 rms=0.001642 Jy/beam
! Combined flux in latest and established models = 1.48842 Jy
! Adding 78 model components to the UV plane model.
! The established model now contains 247 components and 1.48842 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.735 mas, bmaj=9.725 mas, bpa=0.1705 degrees
! Estimated noise=1197.2 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0198411 Jy
! Component: 100  -  total flux cleaned = 0.032791 Jy
! Component: 150  -  total flux cleaned = 0.0422858 Jy
! Component: 200  -  total flux cleaned = 0.0494351 Jy
! Total flux subtracted in 200 components = 0.0494351 Jy
! Clean residual min=-0.005959 max=0.010212 Jy/beam
! Clean residual mean=0.000663 rms=0.002605 Jy/beam
! Combined flux in latest and established models = 1.53786 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.00543452 Jy
! Component: 100  -  total flux cleaned = 0.00959228 Jy
! Component: 150  -  total flux cleaned = 0.0127863 Jy
! Component: 200  -  total flux cleaned = 0.0152513 Jy
! Total flux subtracted in 200 components = 0.0152513 Jy
! Clean residual min=-0.005647 max=0.009295 Jy/beam
! Clean residual mean=0.000481 rms=0.002203 Jy/beam
! Combined flux in latest and established models = 1.55311 Jy
! Adding 120 model components to the UV plane model.
! The established model now contains 347 components and 1.55311 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.18 mas, bmaj=3.853 mas, bpa=-0.6385 degrees
! Estimated noise=772.429 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00135885 Jy
! Component: 100  -  total flux cleaned = -0.00113616 Jy
! Component: 150  -  total flux cleaned = -0.00082299 Jy
! Component: 200  -  total flux cleaned = -0.000352025 Jy
! Total flux subtracted in 200 components = -0.000352025 Jy
! Clean residual min=-0.003677 max=0.004612 Jy/beam
! Clean residual mean=0.000122 rms=0.001140 Jy/beam
! Combined flux in latest and established models = 1.55276 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 364 components and 1.55276 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.345649Jy  sigma=0.001133
! Fit after  self-cal, rms=0.345671Jy  sigma=0.001132
wmodel J1159+2914_S_2003_09_17_pus_map.mod
! Writing 364 model components to file: J1159+2914_S_2003_09_17_pus_map.mod
wobs J1159+2914_S_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J1159+2914_S_2003_09_17_pus_uvs.fits
wwins J1159+2914_S_2003_09_17_pus_map.win
! wwins: Wrote 8 windows to J1159+2914_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.00213382 Jy
! Component: 100  -  total flux cleaned = 0.00410728 Jy
! Component: 150  -  total flux cleaned = 0.00574505 Jy
! Component: 200  -  total flux cleaned = 0.00673951 Jy
! Component: 250  -  total flux cleaned = 0.00721811 Jy
! Component: 300  -  total flux cleaned = 0.00781385 Jy
! Component: 350  -  total flux cleaned = 0.00839208 Jy
! Component: 400  -  total flux cleaned = 0.00876907 Jy
! Component: 450  -  total flux cleaned = 0.00920072 Jy
! Component: 500  -  total flux cleaned = 0.00980334 Jy
! Component: 550  -  total flux cleaned = 0.0103347 Jy
! Component: 600  -  total flux cleaned = 0.0108565 Jy
! Component: 650  -  total flux cleaned = 0.0112561 Jy
! Component: 700  -  total flux cleaned = 0.0117614 Jy
! Component: 750  -  total flux cleaned = 0.0122036 Jy
! Component: 800  -  total flux cleaned = 0.0126393 Jy
! Component: 850  -  total flux cleaned = 0.0130689 Jy
! Component: 900  -  total flux cleaned = 0.0135457 Jy
! Component: 950  -  total flux cleaned = 0.0139641 Jy
! Component: 1000  -  total flux cleaned = 0.0142229 Jy
! Component: 1050  -  total flux cleaned = 0.0146829 Jy
! Component: 1100  -  total flux cleaned = 0.0150865 Jy
! Component: 1150  -  total flux cleaned = 0.0153855 Jy
! Component: 1200  -  total flux cleaned = 0.0157802 Jy
! Component: 1250  -  total flux cleaned = 0.016122 Jy
! Component: 1300  -  total flux cleaned = 0.0165567 Jy
! Component: 1350  -  total flux cleaned = 0.0169384 Jy
! Component: 1400  -  total flux cleaned = 0.0172696 Jy
! Component: 1450  -  total flux cleaned = 0.0176447 Jy
! Component: 1500  -  total flux cleaned = 0.0181093 Jy
! Component: 1550  -  total flux cleaned = 0.0185691 Jy
! Component: 1600  -  total flux cleaned = 0.0189793 Jy
! Component: 1650  -  total flux cleaned = 0.0192959 Jy
! Component: 1700  -  total flux cleaned = 0.0194757 Jy
! Component: 1750  -  total flux cleaned = 0.0197877 Jy
! Component: 1800  -  total flux cleaned = 0.0200533 Jy
! Component: 1850  -  total flux cleaned = 0.0204048 Jy
! Component: 1900  -  total flux cleaned = 0.0206662 Jy
! Component: 1950  -  total flux cleaned = 0.0208397 Jy
! Component: 2000  -  total flux cleaned = 0.0210975 Jy
! Total flux subtracted in 2048 components = 0.0213962 Jy
! Clean residual min=-0.002700 max=0.002384 Jy/beam
! Clean residual mean=0.000064 rms=0.000840 Jy/beam
! Combined flux in latest and established models = 1.57415 Jy
keep
! Adding 163 model components to the UV plane model.
! The established model now contains 527 components and 1.57415 Jy
wmap "J1159+2914_S_2003_09_17_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.18 x 3.853 at -0.6385 degrees (North through East)
! Clean map  min=-0.0030328  max=1.0546 Jy/beam
! Writing clean map to FITS file: J1159+2914_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.05463 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000837672 
device "J1159+2914_S_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J1159+2914_S_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.238284 0.238284 0.476567 0.953135 1.90627 3.81254 7.62508 15.2502 30.5003 61.0006
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0025 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.054 
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.18 x 3.853 at -0.6385 degrees (North through East)
! Clean map  min=-0.0030328  max=1.0546 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1159+2914_S_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J1159+2914_S_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1159+2914_S_2003_09_17_pus_uvs.log closed on Mon May 21 21:44:42 2007