! Started logfile: J1230+1223_S_2003_09_17_pus_uvs.log on Wed May 23 16:10:05 2007
obs J1230+1223_S_2003_09_17_pus_uva.fits
! Reading UV FITS file: J1230+1223_S_2003_09_17_pus_uva.fits
! AN table 1: 73 integrations on 120 of 120 possible baselines.
! AN table 2: 60 integrations on 120 of 120 possible baselines.
! AN table 3: 249 integrations on 120 of 120 possible baselines.
! AN table 4: 132 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.0611868 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1230+1223
! 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 1736 lines of history.
! 
! Reading 15096 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 = 1024 
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 = 1024x1024 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 1078 telescope corrections were flagged in sub-array 1.
!  A total of 708 telescope corrections were flagged in sub-array 2.
!  A total of 3543 telescope corrections were flagged in sub-array 3.
!  A total of 1505 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1078 telescope corrections were flagged in sub-array 1.
!  A total of 708 telescope corrections were flagged in sub-array 2.
!  A total of 3543 telescope corrections were flagged in sub-array 3.
!  A total of 1499 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1078 telescope corrections were flagged in sub-array 1.
!  A total of 708 telescope corrections were flagged in sub-array 2.
!  A total of 3543 telescope corrections were flagged in sub-array 3.
!  A total of 1497 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1078 telescope corrections were flagged in sub-array 1.
!  A total of 709 telescope corrections were flagged in sub-array 2.
!  A total of 3543 telescope corrections were flagged in sub-array 3.
!  A total of 1497 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.256376Jy  sigma=0.006968
! Fit after  self-cal, rms=0.806505Jy  sigma=0.004611
! 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.977 mas, bmaj=5.415 mas, bpa=1.834 degrees
! Estimated noise=1703.89 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.693668 Jy
! Component: 100  -  total flux cleaned = 1.00514 Jy
! Total flux subtracted in 100 components = 1.00514 Jy
! Clean residual min=-0.054643 max=0.207545 Jy/beam
! Clean residual mean=0.000209 rms=0.018771 Jy/beam
! Combined flux in latest and established models = 1.00514 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 1.00514 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.707253Jy  sigma=0.003587
! Fit after  self-cal, rms=0.704272Jy  sigma=0.003580
! Inverting map 
! Added new window around map position (-3, 0.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.212308 Jy
! Component: 100  -  total flux cleaned = 0.354263 Jy
! Total flux subtracted in 100 components = 0.354263 Jy
! Clean residual min=-0.042753 max=0.136230 Jy/beam
! Clean residual mean=0.000149 rms=0.013625 Jy/beam
! Combined flux in latest and established models = 1.35941 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 23 components and 1.35941 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.553052Jy  sigma=0.002758
! Fit after  self-cal, rms=0.550781Jy  sigma=0.002741
! Inverting map 
! Added new window around map position (3, -0.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.123666 Jy
! Component: 100  -  total flux cleaned = 0.209235 Jy
! Total flux subtracted in 100 components = 0.209235 Jy
! Clean residual min=-0.038963 max=0.088397 Jy/beam
! Clean residual mean=0.000117 rms=0.011063 Jy/beam
! Combined flux in latest and established models = 1.56864 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 47 components and 1.56864 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.484829Jy  sigma=0.002387
! Fit after  self-cal, rms=0.484535Jy  sigma=0.002384
! Inverting map 
! Added new window around map position (-6.5, 2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0890008 Jy
! Component: 100  -  total flux cleaned = 0.152447 Jy
! Total flux subtracted in 100 components = 0.152447 Jy
! Clean residual min=-0.035127 max=0.056203 Jy/beam
! Clean residual mean=0.000082 rms=0.009719 Jy/beam
! Combined flux in latest and established models = 1.72109 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 75 components and 1.72109 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.446763Jy  sigma=0.002191
! Fit after  self-cal, rms=0.445635Jy  sigma=0.002184
! Inverting map 
! Added new window around map position (-10.5, 5.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0626097 Jy
! Component: 100  -  total flux cleaned = 0.11067 Jy
! Total flux subtracted in 100 components = 0.11067 Jy
! Clean residual min=-0.033157 max=0.049029 Jy/beam
! Clean residual mean=0.000061 rms=0.008848 Jy/beam
! Combined flux in latest and established models = 1.83176 Jy
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 108 components and 1.83176 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.424264Jy  sigma=0.002063
! Fit after  self-cal, rms=0.423489Jy  sigma=0.002060
! 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.079 mas, bmaj=6.304 mas, bpa=1.982 degrees
! Estimated noise=1048.1 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.0883226 Jy
! Component: 100  -  total flux cleaned = 0.152073 Jy
! Component: 150  -  total flux cleaned = 0.20151 Jy
! Component: 200  -  total flux cleaned = 0.240084 Jy
! Total flux subtracted in 200 components = 0.240084 Jy
! Clean residual min=-0.052986 max=0.078525 Jy/beam
! Clean residual mean=0.000925 rms=0.015657 Jy/beam
! Combined flux in latest and established models = 2.07184 Jy
! Performing phase self-cal
! Adding 52 model components to the UV plane model.
! The established model now contains 147 components and 2.07184 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.393384Jy  sigma=0.001900
! Fit after  self-cal, rms=0.392215Jy  sigma=0.001893
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   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 2:
!   FD        1.25     GC        1.00*    HN        1.00*    KP        0.99     
!   LA        0.82     MK        1.04     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.08     PT        0.81     SC        1.00*    
!   TS        1.13     KK        1.31     WZ        1.00*    WF        1.00*    
! 
!  A total of 117 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.93     GC        1.00*    HN        1.00     KP        0.93     
!   LA        0.94     MK        1.00*    NL        1.16     NY        1.07     
!   ON        1.04     OV        0.93     PT        0.95     SC        0.99     
!   TS        0.95     KK        1.00*    WZ        1.19     WF        0.95     
! 
!  A total of 33 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.07     GC        0.99     HN        1.00*    KP        0.96     
!   LA        0.90     MK        1.14     NL        1.11     NY        1.00*    
!   ON        1.00*    OV        0.77     PT        0.95     SC        1.00*    
!   TS        1.07     KK        1.08     WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   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 2:
!   FD        1.25     GC        1.00*    HN        1.00*    KP        1.07     
!   LA        0.82     MK        1.10     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.09     PT        0.79     SC        1.00*    
!   TS        1.12     KK        1.32     WZ        1.00*    WF        1.00*    
! 
!  A total of 117 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.95     GC        1.00*    HN        1.04     KP        1.01     
!   LA        0.94     MK        1.00*    NL        1.21     NY        1.08     
!   ON        1.07     OV        0.97     PT        0.93     SC        1.07     
!   TS        0.86     KK        1.00*    WZ        1.09     WF        0.90     
! 
!  A total of 33 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.06     GC        0.96     HN        1.00*    KP        1.04     
!   LA        0.92     MK        1.15     NL        1.14     NY        1.00*    
!   ON        1.00*    OV        0.79     PT        0.93     SC        1.00*    
!   TS        1.10     KK        1.11     WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   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 2:
!   FD        1.23     GC        1.00*    HN        1.00*    KP        1.05     
!   LA        0.82     MK        1.06     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.03     PT        0.84     SC        1.00*    
!   TS        1.07     KK        1.27     WZ        1.00*    WF        1.00*    
! 
!  A total of 117 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.90     GC        1.00*    HN        1.03     KP        1.02     
!   LA        0.92     MK        1.00*    NL        1.14     NY        0.98     
!   ON        1.08     OV        1.00     PT        0.98     SC        1.05     
!   TS        0.84     KK        1.00*    WZ        1.10     WF        0.96     
! 
!  A total of 33 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.03     GC        0.99     HN        1.00*    KP        1.04     
!   LA        0.91     MK        1.14     NL        1.06     NY        1.00*    
!   ON        1.00*    OV        0.80     PT        0.96     SC        1.00*    
!   TS        1.11     KK        1.07     WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   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 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.22     GC        1.00*    HN        1.00*    KP        1.06     
!   LA        0.87     MK        0.94     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.00     PT        0.81     SC        1.00*    
!   TS        1.12     KK        1.37     WZ        1.00*    WF        1.00*    
! 
!  A total of 117 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.92     GC        1.00*    HN        1.00     KP        1.02     
!   LA        0.97     MK        1.00*    NL        1.13     NY        0.96     
!   ON        1.15     OV        1.01     PT        0.95     SC        0.96     
!   TS        0.76     KK        1.00*    WZ        1.15     WF        0.94     
! 
!  A total of 33 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.05     GC        0.98     HN        1.00*    KP        1.05     
!   LA        0.93     MK        1.05     NL        1.09     NY        1.00*    
!   ON        1.00*    OV        0.80     PT        0.93     SC        1.00*    
!   TS        1.10     KK        1.14     WZ        1.00*    WF        1.00*    
! 
! 
! Fit before self-cal, rms=0.392215Jy  sigma=0.001893
! Fit after  self-cal, rms=0.312258Jy  sigma=0.001567
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.102 mas, bmaj=6.386 mas, bpa=1.927 degrees
! Estimated noise=1088.72 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 (-37.5, 11).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0598496 Jy
! Component: 100  -  total flux cleaned = 0.0862771 Jy
! Component: 150  -  total flux cleaned = 0.0979054 Jy
! Component: 200  -  total flux cleaned = 0.104786 Jy
! Total flux subtracted in 200 components = 0.104786 Jy
! Clean residual min=-0.028612 max=0.041034 Jy/beam
! Clean residual mean=0.000341 rms=0.008296 Jy/beam
! Combined flux in latest and established models = 2.17663 Jy
! Performing phase self-cal
! Adding 54 model components to the UV plane model.
! The established model now contains 199 components and 2.17663 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.299041Jy  sigma=0.001482
! Fit after  self-cal, rms=0.297781Jy  sigma=0.001470
! 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.297781Jy  sigma=0.001470
! Fit after  self-cal, rms=0.287303Jy  sigma=0.001445
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.108 mas, bmaj=6.368 mas, bpa=1.755 degrees
! Estimated noise=1081.4 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0290388 Jy
! Component: 100  -  total flux cleaned = 0.0431577 Jy
! Component: 150  -  total flux cleaned = 0.0467309 Jy
! Component: 200  -  total flux cleaned = 0.0504408 Jy
! Total flux subtracted in 200 components = 0.0504408 Jy
! Clean residual min=-0.023772 max=0.037694 Jy/beam
! Clean residual mean=0.000282 rms=0.007214 Jy/beam
! Combined flux in latest and established models = 2.22707 Jy
selfcal
! Performing phase self-cal
! Adding 58 model components to the UV plane model.
! The established model now contains 238 components and 2.22707 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.283899Jy  sigma=0.001422
! Fit after  self-cal, rms=0.283334Jy  sigma=0.001419
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 (-17, 10.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0361162 Jy
! Component: 100  -  total flux cleaned = 0.0524488 Jy
! Component: 150  -  total flux cleaned = 0.056527 Jy
! Component: 200  -  total flux cleaned = 0.0594536 Jy
! Total flux subtracted in 200 components = 0.0594536 Jy
! Clean residual min=-0.021449 max=0.028778 Jy/beam
! Clean residual mean=0.000223 rms=0.006461 Jy/beam
! Combined flux in latest and established models = 2.28652 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 265 components and 2.28652 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.277769Jy  sigma=0.001388
! Fit after  self-cal, rms=0.277020Jy  sigma=0.001385
! Inverting map 
! Added new window around map position (-70.5, 25.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0318509 Jy
! Component: 100  -  total flux cleaned = 0.0521671 Jy
! Component: 150  -  total flux cleaned = 0.0647833 Jy
! Component: 200  -  total flux cleaned = 0.069403 Jy
! Total flux subtracted in 200 components = 0.069403 Jy
! Clean residual min=-0.023120 max=0.023462 Jy/beam
! Clean residual mean=0.000241 rms=0.005652 Jy/beam
! Combined flux in latest and established models = 2.35593 Jy
! Performing phase self-cal
! Adding 55 model components to the UV plane model.
! The established model now contains 315 components and 2.35593 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.272371Jy  sigma=0.001357
! Fit after  self-cal, rms=0.271805Jy  sigma=0.001354
! 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.271805Jy  sigma=0.001354
! Fit after  self-cal, rms=0.260629Jy  sigma=0.001310
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.116 mas, bmaj=6.373 mas, bpa=1.657 degrees
! Estimated noise=1078.82 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0216769 Jy
! Component: 100  -  total flux cleaned = 0.0360473 Jy
! Component: 150  -  total flux cleaned = 0.0454484 Jy
! Component: 200  -  total flux cleaned = 0.049941 Jy
! Total flux subtracted in 200 components = 0.049941 Jy
! Clean residual min=-0.015979 max=0.018403 Jy/beam
! Clean residual mean=0.000306 rms=0.004401 Jy/beam
! Combined flux in latest and established models = 2.40587 Jy
selfcal
! Performing phase self-cal
! Adding 54 model components to the UV plane model.
! The established model now contains 348 components and 2.40587 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.258015Jy  sigma=0.001295
! Fit after  self-cal, rms=0.257615Jy  sigma=0.001293
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.00880674 Jy
! Component: 100  -  total flux cleaned = 0.0115693 Jy
! Component: 150  -  total flux cleaned = 0.0128141 Jy
! Component: 200  -  total flux cleaned = 0.0139809 Jy
! Total flux subtracted in 200 components = 0.0139809 Jy
! Clean residual min=-0.018008 max=0.017650 Jy/beam
! Clean residual mean=0.000294 rms=0.004283 Jy/beam
! Combined flux in latest and established models = 2.41985 Jy
! Performing phase self-cal
! Adding 45 model components to the UV plane model.
! The established model now contains 363 components and 2.41985 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.256597Jy  sigma=0.001288
! Fit after  self-cal, rms=0.256535Jy  sigma=0.001288
! 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.256535Jy  sigma=0.001288
! Fit after  self-cal, rms=0.255508Jy  sigma=0.001284
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=9.554 mas, bmaj=12.01 mas, bpa=-0.9413 degrees
! Estimated noise=1641.87 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0263933 Jy
! Component: 100  -  total flux cleaned = 0.0389073 Jy
! Component: 150  -  total flux cleaned = 0.0425669 Jy
! Component: 200  -  total flux cleaned = 0.0444996 Jy
! Total flux subtracted in 200 components = 0.0444996 Jy
! Clean residual min=-0.023743 max=0.027890 Jy/beam
! Clean residual mean=0.000639 rms=0.008552 Jy/beam
! Combined flux in latest and established models = 2.46435 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 380 components and 2.46435 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.254686Jy  sigma=0.001283
! Fit after  self-cal, rms=0.254509Jy  sigma=0.001281
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.00744897 Jy
! Component: 100  -  total flux cleaned = 0.00852095 Jy
! Component: 150  -  total flux cleaned = 0.00848594 Jy
! Component: 200  -  total flux cleaned = 0.00846811 Jy
! Total flux subtracted in 200 components = 0.00846811 Jy
! Clean residual min=-0.023849 max=0.026594 Jy/beam
! Clean residual mean=0.000606 rms=0.008372 Jy/beam
! Combined flux in latest and established models = 2.47282 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 387 components and 2.47282 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.254563Jy  sigma=0.001283
! Fit after  self-cal, rms=0.254551Jy  sigma=0.001283
! 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.118 mas, bmaj=6.375 mas, bpa=1.673 degrees
! Estimated noise=1078.95 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.118 x 6.375 at 1.673 degrees (North through East)
! Clean map  min=-0.014407  max=0.82268 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.254551Jy  sigma=0.001283
! Fit after  self-cal, rms=0.327257Jy  sigma=0.001116
! Inverting map and beam 
! Estimated beam: bmin=2.133 mas, bmaj=6.379 mas, bpa=1.658 degrees
! Estimated noise=1085.3 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0109144 Jy
! Component: 100  -  total flux cleaned = 0.0134374 Jy
! Component: 150  -  total flux cleaned = 0.0146798 Jy
! Component: 200  -  total flux cleaned = 0.0152427 Jy
! Total flux subtracted in 200 components = 0.0152427 Jy
! Clean residual min=-0.011735 max=0.014622 Jy/beam
! Clean residual mean=0.000157 rms=0.003588 Jy/beam
! Combined flux in latest and established models = 2.48806 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 403 components and 2.48806 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.326441Jy  sigma=0.001110
! Fit after  self-cal, rms=0.326282Jy  sigma=0.001109
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0024948 Jy
! Component: 100  -  total flux cleaned = 0.00351003 Jy
! Component: 150  -  total flux cleaned = 0.00372989 Jy
! Component: 200  -  total flux cleaned = 0.00394099 Jy
! Total flux subtracted in 200 components = 0.00394099 Jy
! Clean residual min=-0.012491 max=0.014395 Jy/beam
! Clean residual mean=0.000158 rms=0.003529 Jy/beam
! Combined flux in latest and established models = 2.492 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 412 components and 2.492 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.325875Jy  sigma=0.001106
! Fit after  self-cal, rms=0.325775Jy  sigma=0.001106
! 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.325775Jy  sigma=0.001106
! Fit after  self-cal, rms=0.469821Jy  sigma=0.001105
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=5.459 mas, bpa=1.446 degrees
! Estimated noise=1795.36 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.699202 Jy
! Component: 100  -  total flux cleaned = 1.00873 Jy
! Component: 150  -  total flux cleaned = 1.20573 Jy
! Component: 200  -  total flux cleaned = 1.34911 Jy
! Total flux subtracted in 200 components = 1.34911 Jy
! Clean residual min=-0.038024 max=0.083036 Jy/beam
! Clean residual mean=0.000361 rms=0.012328 Jy/beam
! Combined flux in latest and established models = 1.34911 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.34911 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.132 mas, bmaj=6.387 mas, bpa=1.57 degrees
! Estimated noise=1084.93 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.202072 Jy
! Component: 100  -  total flux cleaned = 0.343188 Jy
! Component: 150  -  total flux cleaned = 0.452117 Jy
! Component: 200  -  total flux cleaned = 0.539948 Jy
! Total flux subtracted in 200 components = 0.539948 Jy
! Clean residual min=-0.031117 max=0.060518 Jy/beam
! Clean residual mean=0.000691 rms=0.012179 Jy/beam
! Combined flux in latest and established models = 1.88906 Jy
! Adding 115 model components to the UV plane model.
! The established model now contains 134 components and 1.88906 Jy
! Inverting map 
! Added new window around map position (-31.5, 6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0743413 Jy
! Component: 100  -  total flux cleaned = 0.136099 Jy
! Component: 150  -  total flux cleaned = 0.189207 Jy
! Component: 200  -  total flux cleaned = 0.235533 Jy
! Total flux subtracted in 200 components = 0.235533 Jy
! Clean residual min=-0.021506 max=0.032141 Jy/beam
! Clean residual mean=0.000439 rms=0.007754 Jy/beam
! Combined flux in latest and established models = 2.12459 Jy
! Adding 113 model components to the UV plane model.
! The established model now contains 230 components and 2.12459 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=9.553 mas, bmaj=12.02 mas, bpa=-0.8711 degrees
! Estimated noise=1639.45 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0948756 Jy
! Component: 100  -  total flux cleaned = 0.164184 Jy
! Component: 150  -  total flux cleaned = 0.216334 Jy
! Component: 200  -  total flux cleaned = 0.256164 Jy
! Total flux subtracted in 200 components = 0.256164 Jy
! Clean residual min=-0.028309 max=0.026394 Jy/beam
! Clean residual mean=0.000626 rms=0.009311 Jy/beam
! Combined flux in latest and established models = 2.38075 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.0305663 Jy
! Component: 100  -  total flux cleaned = 0.0540926 Jy
! Component: 150  -  total flux cleaned = 0.0722283 Jy
! Component: 200  -  total flux cleaned = 0.0862298 Jy
! Total flux subtracted in 200 components = 0.0862298 Jy
! Clean residual min=-0.021921 max=0.022020 Jy/beam
! Clean residual mean=0.000450 rms=0.007387 Jy/beam
! Combined flux in latest and established models = 2.46698 Jy
! Adding 149 model components to the UV plane model.
! The established model now contains 352 components and 2.46698 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.132 mas, bmaj=6.387 mas, bpa=1.57 degrees
! Estimated noise=1084.93 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00620971 Jy
! Component: 100  -  total flux cleaned = 0.0101506 Jy
! Component: 150  -  total flux cleaned = 0.0121054 Jy
! Component: 200  -  total flux cleaned = 0.0142028 Jy
! Total flux subtracted in 200 components = 0.0142028 Jy
! Clean residual min=-0.013589 max=0.014285 Jy/beam
! Clean residual mean=0.000142 rms=0.003523 Jy/beam
! Combined flux in latest and established models = 2.48118 Jy
selfcal
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 376 components and 2.48118 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.470203Jy  sigma=0.001107
! Fit after  self-cal, rms=0.469495Jy  sigma=0.001102
wmodel J1230+1223_S_2003_09_17_pus_map.mod
! Writing 376 model components to file: J1230+1223_S_2003_09_17_pus_map.mod
wobs J1230+1223_S_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J1230+1223_S_2003_09_17_pus_uvs.fits
wwins J1230+1223_S_2003_09_17_pus_map.win
! wwins: Wrote 9 windows to J1230+1223_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=4096  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00221483 Jy
! Component: 100  -  total flux cleaned = 0.00430296 Jy
! Component: 150  -  total flux cleaned = 0.00607317 Jy
! Component: 200  -  total flux cleaned = 0.00756643 Jy
! Component: 250  -  total flux cleaned = 0.00921825 Jy
! Component: 300  -  total flux cleaned = 0.010418 Jy
! Component: 350  -  total flux cleaned = 0.0117735 Jy
! Component: 400  -  total flux cleaned = 0.0129048 Jy
! Component: 450  -  total flux cleaned = 0.0140055 Jy
! Component: 500  -  total flux cleaned = 0.0147172 Jy
! Component: 550  -  total flux cleaned = 0.0152385 Jy
! Component: 600  -  total flux cleaned = 0.0157491 Jy
! Component: 650  -  total flux cleaned = 0.0160828 Jy
! Component: 700  -  total flux cleaned = 0.0167392 Jy
! Component: 750  -  total flux cleaned = 0.0172232 Jy
! Component: 800  -  total flux cleaned = 0.0181725 Jy
! Component: 850  -  total flux cleaned = 0.0187953 Jy
! Component: 900  -  total flux cleaned = 0.0194097 Jy
! Component: 950  -  total flux cleaned = 0.0209113 Jy
! Component: 1000  -  total flux cleaned = 0.0213525 Jy
! Component: 1050  -  total flux cleaned = 0.0220788 Jy
! Component: 1100  -  total flux cleaned = 0.0226524 Jy
! Component: 1150  -  total flux cleaned = 0.0232178 Jy
! Component: 1200  -  total flux cleaned = 0.0234986 Jy
! Component: 1250  -  total flux cleaned = 0.0245954 Jy
! Component: 1300  -  total flux cleaned = 0.0251337 Jy
! Component: 1350  -  total flux cleaned = 0.0254035 Jy
! Component: 1400  -  total flux cleaned = 0.026323 Jy
! Component: 1450  -  total flux cleaned = 0.0269725 Jy
! Component: 1500  -  total flux cleaned = 0.0278665 Jy
! Component: 1550  -  total flux cleaned = 0.0283707 Jy
! Component: 1600  -  total flux cleaned = 0.0289933 Jy
! Component: 1650  -  total flux cleaned = 0.0297316 Jy
! Component: 1700  -  total flux cleaned = 0.0304597 Jy
! Component: 1750  -  total flux cleaned = 0.03094 Jy
! Component: 1800  -  total flux cleaned = 0.0315312 Jy
! Component: 1850  -  total flux cleaned = 0.0319982 Jy
! Component: 1900  -  total flux cleaned = 0.0322288 Jy
! Component: 1950  -  total flux cleaned = 0.0328001 Jy
! Component: 2000  -  total flux cleaned = 0.0333638 Jy
! Component: 2050  -  total flux cleaned = 0.0334748 Jy
! Component: 2100  -  total flux cleaned = 0.0341403 Jy
! Component: 2150  -  total flux cleaned = 0.0344689 Jy
! Component: 2200  -  total flux cleaned = 0.0351161 Jy
! Component: 2250  -  total flux cleaned = 0.0355424 Jy
! Component: 2300  -  total flux cleaned = 0.0360706 Jy
! Component: 2350  -  total flux cleaned = 0.0361766 Jy
! Component: 2400  -  total flux cleaned = 0.0370064 Jy
! Component: 2450  -  total flux cleaned = 0.0375193 Jy
! Component: 2500  -  total flux cleaned = 0.0381291 Jy
! Component: 2550  -  total flux cleaned = 0.0387321 Jy
! Component: 2600  -  total flux cleaned = 0.0392302 Jy
! Component: 2650  -  total flux cleaned = 0.0400209 Jy
! Component: 2700  -  total flux cleaned = 0.0406074 Jy
! Component: 2750  -  total flux cleaned = 0.0412861 Jy
! Component: 2800  -  total flux cleaned = 0.041862 Jy
! Component: 2850  -  total flux cleaned = 0.0423378 Jy
! Component: 2900  -  total flux cleaned = 0.0429965 Jy
! Component: 2950  -  total flux cleaned = 0.0436511 Jy
! Component: 3000  -  total flux cleaned = 0.0443908 Jy
! Component: 3050  -  total flux cleaned = 0.0448498 Jy
! Component: 3100  -  total flux cleaned = 0.0453066 Jy
! Component: 3150  -  total flux cleaned = 0.045938 Jy
! Component: 3200  -  total flux cleaned = 0.0465641 Jy
! Component: 3250  -  total flux cleaned = 0.0470978 Jy
! Component: 3300  -  total flux cleaned = 0.0477136 Jy
! Component: 3350  -  total flux cleaned = 0.0484125 Jy
! Component: 3400  -  total flux cleaned = 0.0491908 Jy
! Component: 3450  -  total flux cleaned = 0.0494489 Jy
! Component: 3500  -  total flux cleaned = 0.050046 Jy
! Component: 3550  -  total flux cleaned = 0.0503841 Jy
! Component: 3600  -  total flux cleaned = 0.0510551 Jy
! Component: 3650  -  total flux cleaned = 0.051388 Jy
! Component: 3700  -  total flux cleaned = 0.0516358 Jy
! Component: 3750  -  total flux cleaned = 0.0524573 Jy
! Component: 3800  -  total flux cleaned = 0.0527024 Jy
! Component: 3850  -  total flux cleaned = 0.0533491 Jy
! Component: 3900  -  total flux cleaned = 0.0537513 Jy
! Component: 3950  -  total flux cleaned = 0.0540696 Jy
! Component: 4000  -  total flux cleaned = 0.0544658 Jy
! Component: 4050  -  total flux cleaned = 0.0547801 Jy
! Total flux subtracted in 4096 components = 0.0552491 Jy
! Clean residual min=-0.004410 max=0.004416 Jy/beam
! Clean residual mean=0.000087 rms=0.001549 Jy/beam
! Combined flux in latest and established models = 2.53643 Jy
keep
! Adding 382 model components to the UV plane model.
! The established model now contains 758 components and 2.53644 Jy
wmap "J1230+1223_S_2003_09_17_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.132 x 6.387 at 1.57 degrees (North through East)
! Clean map  min=-0.0087515  max=0.84156 Jy/beam
! Writing clean map to FITS file: J1230+1223_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.841561 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00154258 
device "J1230+1223_S_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J1230+1223_S_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.549899 0.549899 1.0998 2.1996 4.39919 8.79838 17.5968 35.1935 70.3871
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0046 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.841 
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.132 x 6.387 at 1.57 degrees (North through East)
! Clean map  min=-0.0087515  max=0.84156 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1230+1223_S_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J1230+1223_S_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1230+1223_S_2003_09_17_pus_uvs.log closed on Wed May 23 16:15:14 2007