! Started logfile: J1230+1223_S_2003_06_18_pus_uvs.log on Wed Jan 24 01:44:49 2007
obs J1230+1223_S_2003_06_18_pus_uva.fits
! Reading UV FITS file: J1230+1223_S_2003_06_18_pus_uva.fits
! AN table 1: 71 integrations on 153 of 153 possible baselines.
! AN table 2: 74 integrations on 153 of 153 possible baselines.
! AN table 3: 161 integrations on 153 of 153 possible baselines.
! AN table 4: 13 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.0789026 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1230+1223
! 
! 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 2425 lines of history.
! 
! Reading 15404 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
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 897 telescope corrections were flagged in sub-array 1.
!  A total of 1124 telescope corrections were flagged in sub-array 2.
!  A total of 2243 telescope corrections were flagged in sub-array 3.
!  A total of 188 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 897 telescope corrections were flagged in sub-array 1.
!  A total of 1124 telescope corrections were flagged in sub-array 2.
!  A total of 2243 telescope corrections were flagged in sub-array 3.
!  A total of 188 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 897 telescope corrections were flagged in sub-array 1.
!  A total of 1124 telescope corrections were flagged in sub-array 2.
!  A total of 2243 telescope corrections were flagged in sub-array 3.
!  A total of 188 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 897 telescope corrections were flagged in sub-array 1.
!  A total of 1124 telescope corrections were flagged in sub-array 2.
!  A total of 2243 telescope corrections were flagged in sub-array 3.
!  A total of 188 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.078855Jy  sigma=0.011140
! Fit after  self-cal, rms=0.790748Jy  sigma=0.008187
! 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.227 mas, bmaj=5.967 mas, bpa=-0.7998 degrees
! Estimated noise=817.881 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.757878 Jy
! Component: 100  -  total flux cleaned = 1.09895 Jy
! Total flux subtracted in 100 components = 1.09895 Jy
! Clean residual min=-0.064604 max=0.185010 Jy/beam
! Clean residual mean=-0.000002 rms=0.018170 Jy/beam
! Combined flux in latest and established models = 1.09895 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 14 components and 1.09895 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.660137Jy  sigma=0.006228
! Fit after  self-cal, rms=0.656194Jy  sigma=0.006205
! Inverting map 
! Added new window around map position (-3, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.199368 Jy
! Component: 100  -  total flux cleaned = 0.323603 Jy
! Total flux subtracted in 100 components = 0.323603 Jy
! Clean residual min=-0.049739 max=0.109623 Jy/beam
! Clean residual mean=-0.000084 rms=0.013688 Jy/beam
! Combined flux in latest and established models = 1.42255 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 22 components and 1.42255 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.550856Jy  sigma=0.004930
! Fit after  self-cal, rms=0.548660Jy  sigma=0.004909
! Inverting map 
! Added new window around map position (-7.5, 2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.121642 Jy
! Component: 100  -  total flux cleaned = 0.203858 Jy
! Total flux subtracted in 100 components = 0.203858 Jy
! Clean residual min=-0.043384 max=0.080460 Jy/beam
! Clean residual mean=-0.000131 rms=0.011316 Jy/beam
! Combined flux in latest and established models = 1.62641 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 43 components and 1.62641 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.499952Jy  sigma=0.004296
! Fit after  self-cal, rms=0.497116Jy  sigma=0.004268
! Inverting map 
! Added new window around map position (-18.5, 6.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0869455 Jy
! Component: 100  -  total flux cleaned = 0.150925 Jy
! Total flux subtracted in 100 components = 0.150925 Jy
! Clean residual min=-0.035207 max=0.069230 Jy/beam
! Clean residual mean=-0.000177 rms=0.009669 Jy/beam
! Combined flux in latest and established models = 1.77734 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 65 components and 1.77734 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.468567Jy  sigma=0.003878
! Fit after  self-cal, rms=0.467034Jy  sigma=0.003862
! Inverting map 
! Added new window around map position (-12, 4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0756326 Jy
! Component: 100  -  total flux cleaned = 0.128902 Jy
! Total flux subtracted in 100 components = 0.128902 Jy
! Clean residual min=-0.030672 max=0.052639 Jy/beam
! Clean residual mean=-0.000209 rms=0.008244 Jy/beam
! Combined flux in latest and established models = 1.90624 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 81 components and 1.90624 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.445090Jy  sigma=0.003552
! Fit after  self-cal, rms=0.443932Jy  sigma=0.003538
! 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.479 mas, bmaj=6.912 mas, bpa=-0.6938 degrees
! Estimated noise=563.648 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.0924441 Jy
! Component: 100  -  total flux cleaned = 0.160877 Jy
! Component: 150  -  total flux cleaned = 0.214601 Jy
! Component: 200  -  total flux cleaned = 0.257874 Jy
! Total flux subtracted in 200 components = 0.257874 Jy
! Clean residual min=-0.036769 max=0.073393 Jy/beam
! Clean residual mean=-0.001880 rms=0.013572 Jy/beam
! Combined flux in latest and established models = 2.16411 Jy
! Performing phase self-cal
! Adding 68 model components to the UV plane model.
! The established model now contains 133 components and 2.16411 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.417941Jy  sigma=0.003143
! Fit after  self-cal, rms=0.416013Jy  sigma=0.003111
! Inverting map 
! Added new window around map position (-27.5, 9.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0820124 Jy
! Component: 100  -  total flux cleaned = 0.132623 Jy
! Component: 150  -  total flux cleaned = 0.17291 Jy
! Component: 200  -  total flux cleaned = 0.206994 Jy
! Total flux subtracted in 200 components = 0.206994 Jy
! Clean residual min=-0.029504 max=0.040163 Jy/beam
! Clean residual mean=-0.002421 rms=0.010387 Jy/beam
! Combined flux in latest and established models = 2.37111 Jy
! Performing phase self-cal
! Adding 83 model components to the UV plane model.
! The established model now contains 207 components and 2.37111 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.398257Jy  sigma=0.002793
! Fit after  self-cal, rms=0.396603Jy  sigma=0.002770
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        1.03     GG        1.00*    HN        1.00*    
!   KK        1.10     KP        0.89     LA        0.85     MA        1.00*    
!   MK        1.04     NL        1.04     ON        1.00*    OV        0.95     
!   PT        0.88     SC        1.00*    TC        1.00*    TS        1.16     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        0.99     GG        1.00*    HN        1.03     
!   KK        1.00*    KP        0.90     LA        1.00     MA        1.00*    
!   MK        1.00*    NL        1.00     ON        1.00*    OV        1.04     
!   PT        0.97     SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.01     WZ        1.00*    
! 
!  A total of 192 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.01     GG        1.00*    HN        1.21     
!   KK        1.29     KP        0.98     LA        0.98     MA        1.00*    
!   MK        1.00     NL        1.07     ON        1.00*    OV        0.89     
!   PT        1.03     SC        0.85     TC        1.00*    TS        1.27     
!   WF        1.23     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        0.99     GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        0.98     LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        1.00*    ON        1.00*    OV        1.04     
!   PT        1.00*    SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.02     GG        1.00*    HN        1.00*    
!   KK        1.14     KP        0.97     LA        0.84     MA        1.00*    
!   MK        1.10     NL        0.99     ON        1.00*    OV        1.04     
!   PT        0.87     SC        1.00*    TC        1.00*    TS        1.14     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.97     GG        1.00*    HN        1.02     
!   KK        1.00*    KP        1.02     LA        0.98     MA        1.00*    
!   MK        1.00*    NL        0.96     ON        1.00*    OV        0.97     
!   PT        0.98     SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        0.96     WZ        1.00*    
! 
!  A total of 192 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.01     GG        1.00*    HN        1.19     
!   KK        1.19     KP        1.05     LA        0.99     MA        1.00*    
!   MK        1.02     NL        1.02     ON        1.00*    OV        0.93     
!   PT        1.03     SC        0.93     TC        1.00*    TS        1.25     
!   WF        0.93     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        1.01     GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.01     LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        1.00*    ON        1.00*    OV        0.97     
!   PT        1.00*    SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.02     GG        1.00*    HN        1.00*    
!   KK        1.13     KP        0.97     LA        0.83     MA        1.00*    
!   MK        1.05     NL        0.99     ON        1.00*    OV        1.12     
!   PT        0.88     SC        1.00*    TC        1.00*    TS        1.11     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.98     GG        1.00*    HN        1.05     
!   KK        1.00*    KP        1.00     LA        0.95     MA        1.00*    
!   MK        1.00*    NL        0.94     ON        1.00*    OV        1.01     
!   PT        0.98     SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        0.97     WZ        1.00*    
! 
!  A total of 192 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.99     GG        1.00*    HN        1.24     
!   KK        1.18     KP        1.04     LA        0.94     MA        1.00*    
!   MK        1.03     NL        1.00     ON        1.00*    OV        1.00     
!   PT        1.04     SC        1.02     TC        1.00*    TS        1.08     
!   WF        0.96     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        0.96     GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.03     LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        1.00*    ON        1.00*    OV        0.96     
!   PT        1.00*    SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        1.02     GG        1.00*    HN        1.00*    
!   KK        1.17     KP        0.97     LA        0.85     MA        1.00*    
!   MK        0.99     NL        1.03     ON        1.00*    OV        1.05     
!   PT        0.92     SC        1.00*    TC        1.00*    TS        1.07     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.94     FD        0.97     GG        1.00*    HN        0.98     
!   KK        1.00*    KP        1.02     LA        0.99     MA        1.00*    
!   MK        1.00*    NL        1.00     ON        1.00*    OV        0.95     
!   PT        1.02     SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        0.98     WZ        1.00*    
! 
!  A total of 192 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.98     GG        1.00*    HN        1.99     
!   KK        1.14     KP        1.05     LA        0.99     MA        1.00*    
!   MK        0.99     NL        1.05     ON        1.00*    OV        0.95     
!   PT        1.08     SC        0.96     TC        1.00*    TS        1.15     
!   WF        0.95     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.95     FD        0.97     GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.03     LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        1.00*    ON        1.00*    OV        0.85     
!   PT        1.00*    SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.396603Jy  sigma=0.002770
! Fit after  self-cal, rms=0.379201Jy  sigma=0.002264
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.563 mas, bmaj=7.151 mas, bpa=-0.9948 degrees
! Estimated noise=586.693 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.0196112 Jy
! Component: 100  -  total flux cleaned = 0.025426 Jy
! Component: 150  -  total flux cleaned = 0.0277001 Jy
! Component: 200  -  total flux cleaned = 0.0296103 Jy
! Total flux subtracted in 200 components = 0.0296103 Jy
! Clean residual min=-0.017545 max=0.021515 Jy/beam
! Clean residual mean=-0.000494 rms=0.004744 Jy/beam
! Combined flux in latest and established models = 2.40072 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 232 components and 2.40072 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.377865Jy  sigma=0.002235
! Fit after  self-cal, rms=0.378669Jy  sigma=0.002231
! 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.378669Jy  sigma=0.002231
! Fit after  self-cal, rms=0.386021Jy  sigma=0.002147
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.568 mas, bmaj=7.175 mas, bpa=-1.112 degrees
! Estimated noise=587.443 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00938061 Jy
! Component: 100  -  total flux cleaned = 0.0131448 Jy
! Component: 150  -  total flux cleaned = 0.0148715 Jy
! Component: 200  -  total flux cleaned = 0.0167162 Jy
! Total flux subtracted in 200 components = 0.0167162 Jy
! Clean residual min=-0.014083 max=0.019585 Jy/beam
! Clean residual mean=-0.000016 rms=0.004242 Jy/beam
! Combined flux in latest and established models = 2.41743 Jy
selfcal
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 257 components and 2.41743 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.385261Jy  sigma=0.002132
! Fit after  self-cal, rms=0.385334Jy  sigma=0.002131
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 (-76, 31).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0189111 Jy
! Component: 100  -  total flux cleaned = 0.0270848 Jy
! Component: 150  -  total flux cleaned = 0.0306721 Jy
! Component: 200  -  total flux cleaned = 0.0334207 Jy
! Total flux subtracted in 200 components = 0.0334207 Jy
! Clean residual min=-0.012726 max=0.016486 Jy/beam
! Clean residual mean=-0.000019 rms=0.003810 Jy/beam
! Combined flux in latest and established models = 2.45085 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 282 components and 2.45085 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.384261Jy  sigma=0.002109
! Fit after  self-cal, rms=0.384154Jy  sigma=0.002107
! Inverting map 
! Added new window around map position (-35, 11.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0157462 Jy
! Component: 100  -  total flux cleaned = 0.0212002 Jy
! Component: 150  -  total flux cleaned = 0.0241429 Jy
! Component: 200  -  total flux cleaned = 0.0267312 Jy
! Total flux subtracted in 200 components = 0.0267312 Jy
! Clean residual min=-0.011419 max=0.014366 Jy/beam
! Clean residual mean=-0.000056 rms=0.003559 Jy/beam
! Combined flux in latest and established models = 2.47759 Jy
! Performing phase self-cal
! Adding 54 model components to the UV plane model.
! The established model now contains 319 components and 2.47759 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.383419Jy  sigma=0.002092
! Fit after  self-cal, rms=0.383308Jy  sigma=0.002091
! 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.383308Jy  sigma=0.002091
! Fit after  self-cal, rms=0.384649Jy  sigma=0.002073
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.594 mas, bmaj=7.158 mas, bpa=-1.483 degrees
! Estimated noise=588.077 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00892684 Jy
! Component: 100  -  total flux cleaned = 0.0140722 Jy
! Component: 150  -  total flux cleaned = 0.0188 Jy
! Component: 200  -  total flux cleaned = 0.0227151 Jy
! Total flux subtracted in 200 components = 0.0227151 Jy
! Clean residual min=-0.009969 max=0.014106 Jy/beam
! Clean residual mean=-0.000019 rms=0.003337 Jy/beam
! Combined flux in latest and established models = 2.5003 Jy
selfcal
! Performing phase self-cal
! Adding 44 model components to the UV plane model.
! The established model now contains 343 components and 2.5003 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.384085Jy  sigma=0.002065
! Fit after  self-cal, rms=0.384034Jy  sigma=0.002064
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 (-64.5, 23.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0139464 Jy
! Component: 100  -  total flux cleaned = 0.0209211 Jy
! Component: 150  -  total flux cleaned = 0.0253287 Jy
! Component: 200  -  total flux cleaned = 0.0274914 Jy
! Total flux subtracted in 200 components = 0.0274914 Jy
! Clean residual min=-0.009357 max=0.013222 Jy/beam
! Clean residual mean=-0.000042 rms=0.003062 Jy/beam
! Combined flux in latest and established models = 2.52779 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 367 components and 2.52779 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.383310Jy  sigma=0.002052
! Fit after  self-cal, rms=0.383216Jy  sigma=0.002051
! Inverting map 
! Added new window around map position (95.5, -8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0125707 Jy
! Component: 100  -  total flux cleaned = 0.0188283 Jy
! Component: 150  -  total flux cleaned = 0.0222091 Jy
! Component: 200  -  total flux cleaned = 0.02344 Jy
! Total flux subtracted in 200 components = 0.02344 Jy
! Clean residual min=-0.008833 max=0.011123 Jy/beam
! Clean residual mean=-0.000057 rms=0.002793 Jy/beam
! Combined flux in latest and established models = 2.55123 Jy
! Performing phase self-cal
! Adding 42 model components to the UV plane model.
! The established model now contains 395 components and 2.55123 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.382745Jy  sigma=0.002041
! Fit after  self-cal, rms=0.382569Jy  sigma=0.002040
! 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.382569Jy  sigma=0.002040
! Fit after  self-cal, rms=0.383497Jy  sigma=0.002037
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.483 mas, bmaj=10.93 mas, bpa=-11.15 degrees
! Estimated noise=758.49 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0134929 Jy
! Component: 100  -  total flux cleaned = 0.023163 Jy
! Component: 150  -  total flux cleaned = 0.0285157 Jy
! Component: 200  -  total flux cleaned = 0.0327788 Jy
! Total flux subtracted in 200 components = 0.0327788 Jy
! Clean residual min=-0.013062 max=0.016437 Jy/beam
! Clean residual mean=-0.000148 rms=0.004455 Jy/beam
! Combined flux in latest and established models = 2.58401 Jy
selfcal
! Performing phase self-cal
! Adding 42 model components to the UV plane model.
! The established model now contains 429 components and 2.58401 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.383221Jy  sigma=0.002032
! Fit after  self-cal, rms=0.383074Jy  sigma=0.002031
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.00492057 Jy
! Component: 100  -  total flux cleaned = 0.00806182 Jy
! Component: 150  -  total flux cleaned = 0.0108208 Jy
! Component: 200  -  total flux cleaned = 0.0127143 Jy
! Total flux subtracted in 200 components = 0.0127143 Jy
! Clean residual min=-0.013245 max=0.016087 Jy/beam
! Clean residual mean=-0.000168 rms=0.004257 Jy/beam
! Combined flux in latest and established models = 2.59673 Jy
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 449 components and 2.59673 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.383000Jy  sigma=0.002030
! Fit after  self-cal, rms=0.382950Jy  sigma=0.002030
! 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.603 mas, bmaj=7.162 mas, bpa=-1.572 degrees
! Estimated noise=588.622 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.603 x 7.162 at -1.572 degrees (North through East)
! Clean map  min=-0.0083577  max=0.89509 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.382950Jy  sigma=0.002030
! Fit after  self-cal, rms=0.602317Jy  sigma=0.001795
! Inverting map and beam 
! Estimated beam: bmin=2.601 mas, bmaj=7.17 mas, bpa=-1.566 degrees
! Estimated noise=588.576 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00506463 Jy
! Component: 100  -  total flux cleaned = 0.00681351 Jy
! Component: 150  -  total flux cleaned = 0.00767376 Jy
! Component: 200  -  total flux cleaned = 0.00783087 Jy
! Total flux subtracted in 200 components = 0.00783087 Jy
! Clean residual min=-0.008988 max=0.010568 Jy/beam
! Clean residual mean=-0.000064 rms=0.002461 Jy/beam
! Combined flux in latest and established models = 2.60456 Jy
! Performing phase self-cal
! Adding 45 model components to the UV plane model.
! The established model now contains 481 components and 2.60456 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.602163Jy  sigma=0.001791
! Fit after  self-cal, rms=0.602133Jy  sigma=0.001791
! Inverting map 
! Added new window around map position (-22, 8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00577854 Jy
! Component: 100  -  total flux cleaned = 0.00471512 Jy
! Component: 150  -  total flux cleaned = 0.00508694 Jy
! Component: 200  -  total flux cleaned = 0.00558032 Jy
! Total flux subtracted in 200 components = 0.00558032 Jy
! Clean residual min=-0.008161 max=0.010350 Jy/beam
! Clean residual mean=-0.000074 rms=0.002398 Jy/beam
! Combined flux in latest and established models = 2.61014 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 492 components and 2.61014 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.601847Jy  sigma=0.001785
! Fit after  self-cal, rms=0.601871Jy  sigma=0.001785
! Inverting map 
! Added new window around map position (-40, 66.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00896058 Jy
! Component: 100  -  total flux cleaned = 0.0121331 Jy
! Component: 150  -  total flux cleaned = 0.0133165 Jy
! Component: 200  -  total flux cleaned = 0.0139442 Jy
! Total flux subtracted in 200 components = 0.0139442 Jy
! Clean residual min=-0.008100 max=0.009651 Jy/beam
! Clean residual mean=-0.000109 rms=0.002315 Jy/beam
! Combined flux in latest and established models = 2.62408 Jy
! Performing phase self-cal
! Adding 41 model components to the UV plane model.
! The established model now contains 519 components and 2.62408 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.601576Jy  sigma=0.001779
! Fit after  self-cal, rms=0.601546Jy  sigma=0.001779
! 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.601546Jy  sigma=0.001779
! Fit after  self-cal, rms=0.576404Jy  sigma=0.001778
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.31 mas, bmaj=6.053 mas, bpa=-1.501 degrees
! Estimated noise=865.736 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.774208 Jy
! Component: 100  -  total flux cleaned = 1.11879 Jy
! Component: 150  -  total flux cleaned = 1.32987 Jy
! Component: 200  -  total flux cleaned = 1.48085 Jy
! Total flux subtracted in 200 components = 1.48085 Jy
! Clean residual min=-0.039690 max=0.088161 Jy/beam
! Clean residual mean=0.000105 rms=0.012124 Jy/beam
! Combined flux in latest and established models = 1.48085 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 37 model components to the UV plane model.
! The established model now contains 37 components and 1.48085 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.6 mas, bmaj=7.173 mas, bpa=-1.589 degrees
! Estimated noise=588.557 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.19801 Jy
! Component: 100  -  total flux cleaned = 0.343468 Jy
! Component: 150  -  total flux cleaned = 0.456592 Jy
! Component: 200  -  total flux cleaned = 0.545762 Jy
! Total flux subtracted in 200 components = 0.545762 Jy
! Clean residual min=-0.024845 max=0.057027 Jy/beam
! Clean residual mean=0.000697 rms=0.010984 Jy/beam
! Combined flux in latest and established models = 2.02661 Jy
! Adding 72 model components to the UV plane model.
! The established model now contains 101 components and 2.02661 Jy
! Inverting map 
! Added new window around map position (3, -1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0718555 Jy
! Component: 100  -  total flux cleaned = 0.129777 Jy
! Component: 150  -  total flux cleaned = 0.177446 Jy
! Component: 200  -  total flux cleaned = 0.217914 Jy
! Total flux subtracted in 200 components = 0.217914 Jy
! Clean residual min=-0.016587 max=0.025241 Jy/beam
! Clean residual mean=0.000368 rms=0.006823 Jy/beam
! Combined flux in latest and established models = 2.24453 Jy
! Adding 95 model components to the UV plane model.
! The established model now contains 171 components and 2.24452 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.484 mas, bmaj=10.93 mas, bpa=-11.19 degrees
! Estimated noise=757.867 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0690947 Jy
! Component: 100  -  total flux cleaned = 0.120842 Jy
! Component: 150  -  total flux cleaned = 0.161646 Jy
! Component: 200  -  total flux cleaned = 0.194768 Jy
! Total flux subtracted in 200 components = 0.194768 Jy
! Clean residual min=-0.017805 max=0.021730 Jy/beam
! Clean residual mean=0.000353 rms=0.007725 Jy/beam
! Combined flux in latest and established models = 2.43929 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.0276059 Jy
! Component: 100  -  total flux cleaned = 0.0508478 Jy
! Component: 150  -  total flux cleaned = 0.0708818 Jy
! Component: 200  -  total flux cleaned = 0.0884054 Jy
! Total flux subtracted in 200 components = 0.0884054 Jy
! Clean residual min=-0.014194 max=0.015804 Jy/beam
! Clean residual mean=0.000144 rms=0.005392 Jy/beam
! Combined flux in latest and established models = 2.5277 Jy
! Adding 218 model components to the UV plane model.
! The established model now contains 373 components and 2.5277 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.6 mas, bmaj=7.173 mas, bpa=-1.589 degrees
! Estimated noise=588.557 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0125982 Jy
! Component: 100  -  total flux cleaned = 0.0228202 Jy
! Component: 150  -  total flux cleaned = 0.0318541 Jy
! Component: 200  -  total flux cleaned = 0.0399588 Jy
! Total flux subtracted in 200 components = 0.0399588 Jy
! Clean residual min=-0.008482 max=0.011201 Jy/beam
! Clean residual mean=-0.000005 rms=0.002532 Jy/beam
! Combined flux in latest and established models = 2.56765 Jy
selfcal
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 412 components and 2.56765 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.576731Jy  sigma=0.001785
! Fit after  self-cal, rms=0.576812Jy  sigma=0.001780
wmodel J1230+1223_S_2003_06_18_pus_map.mod
! Writing 412 model components to file: J1230+1223_S_2003_06_18_pus_map.mod
wobs J1230+1223_S_2003_06_18_pus_uvs.fits
! Writing UV FITS file: J1230+1223_S_2003_06_18_pus_uvs.fits
wwins J1230+1223_S_2003_06_18_pus_map.win
! wwins: Wrote 13 windows to J1230+1223_S_2003_06_18_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.004629 Jy
! Component: 100  -  total flux cleaned = 0.00870522 Jy
! Component: 150  -  total flux cleaned = 0.0120339 Jy
! Component: 200  -  total flux cleaned = 0.0149047 Jy
! Component: 250  -  total flux cleaned = 0.0164266 Jy
! Component: 300  -  total flux cleaned = 0.0174996 Jy
! Component: 350  -  total flux cleaned = 0.0186725 Jy
! Component: 400  -  total flux cleaned = 0.0196878 Jy
! Component: 450  -  total flux cleaned = 0.0204309 Jy
! Component: 500  -  total flux cleaned = 0.0207942 Jy
! Component: 550  -  total flux cleaned = 0.0213873 Jy
! Component: 600  -  total flux cleaned = 0.0217343 Jy
! Component: 650  -  total flux cleaned = 0.0218482 Jy
! Component: 700  -  total flux cleaned = 0.0224049 Jy
! Component: 750  -  total flux cleaned = 0.02273 Jy
! Component: 800  -  total flux cleaned = 0.0230525 Jy
! Component: 850  -  total flux cleaned = 0.0234757 Jy
! Component: 900  -  total flux cleaned = 0.0239964 Jy
! Component: 950  -  total flux cleaned = 0.0246096 Jy
! Component: 1000  -  total flux cleaned = 0.0249128 Jy
! Component: 1050  -  total flux cleaned = 0.0255097 Jy
! Component: 1100  -  total flux cleaned = 0.0262908 Jy
! Component: 1150  -  total flux cleaned = 0.026291 Jy
! Component: 1200  -  total flux cleaned = 0.0267685 Jy
! Component: 1250  -  total flux cleaned = 0.0273308 Jy
! Component: 1300  -  total flux cleaned = 0.0276087 Jy
! Component: 1350  -  total flux cleaned = 0.0282474 Jy
! Component: 1400  -  total flux cleaned = 0.0281582 Jy
! Component: 1450  -  total flux cleaned = 0.028958 Jy
! Component: 1500  -  total flux cleaned = 0.028782 Jy
! Component: 1550  -  total flux cleaned = 0.0293912 Jy
! Component: 1600  -  total flux cleaned = 0.0298204 Jy
! Component: 1650  -  total flux cleaned = 0.0299908 Jy
! Component: 1700  -  total flux cleaned = 0.0307476 Jy
! Component: 1750  -  total flux cleaned = 0.0308305 Jy
! Component: 1800  -  total flux cleaned = 0.0314078 Jy
! Component: 1850  -  total flux cleaned = 0.0318145 Jy
! Component: 1900  -  total flux cleaned = 0.0321354 Jy
! Component: 1950  -  total flux cleaned = 0.032535 Jy
! Component: 2000  -  total flux cleaned = 0.032929 Jy
! Component: 2050  -  total flux cleaned = 0.0331633 Jy
! Component: 2100  -  total flux cleaned = 0.0334727 Jy
! Component: 2150  -  total flux cleaned = 0.0337031 Jy
! Component: 2200  -  total flux cleaned = 0.0339301 Jy
! Component: 2250  -  total flux cleaned = 0.0341549 Jy
! Component: 2300  -  total flux cleaned = 0.0345282 Jy
! Component: 2350  -  total flux cleaned = 0.0348235 Jy
! Component: 2400  -  total flux cleaned = 0.0353348 Jy
! Component: 2450  -  total flux cleaned = 0.0354789 Jy
! Component: 2500  -  total flux cleaned = 0.0356936 Jy
! Component: 2550  -  total flux cleaned = 0.0361203 Jy
! Component: 2600  -  total flux cleaned = 0.0363307 Jy
! Component: 2650  -  total flux cleaned = 0.0365404 Jy
! Component: 2700  -  total flux cleaned = 0.0366796 Jy
! Component: 2750  -  total flux cleaned = 0.0369542 Jy
! Component: 2800  -  total flux cleaned = 0.0370909 Jy
! Component: 2850  -  total flux cleaned = 0.0372932 Jy
! Component: 2900  -  total flux cleaned = 0.0375617 Jy
! Component: 2950  -  total flux cleaned = 0.0375617 Jy
! Component: 3000  -  total flux cleaned = 0.0379585 Jy
! Component: 3050  -  total flux cleaned = 0.0381544 Jy
! Component: 3100  -  total flux cleaned = 0.0380896 Jy
! Component: 3150  -  total flux cleaned = 0.0384768 Jy
! Component: 3200  -  total flux cleaned = 0.0385402 Jy
! Component: 3250  -  total flux cleaned = 0.0386678 Jy
! Component: 3300  -  total flux cleaned = 0.03892 Jy
! Component: 3350  -  total flux cleaned = 0.0388565 Jy
! Component: 3400  -  total flux cleaned = 0.0391672 Jy
! Component: 3450  -  total flux cleaned = 0.0391675 Jy
! Component: 3500  -  total flux cleaned = 0.0393517 Jy
! Component: 3550  -  total flux cleaned = 0.0395343 Jy
! Component: 3600  -  total flux cleaned = 0.0397771 Jy
! Component: 3650  -  total flux cleaned = 0.0399576 Jy
! Component: 3700  -  total flux cleaned = 0.0400174 Jy
! Component: 3750  -  total flux cleaned = 0.0403729 Jy
! Component: 3800  -  total flux cleaned = 0.0403139 Jy
! Component: 3850  -  total flux cleaned = 0.0404895 Jy
! Component: 3900  -  total flux cleaned = 0.0406062 Jy
! Component: 3950  -  total flux cleaned = 0.0406641 Jy
! Component: 4000  -  total flux cleaned = 0.0410091 Jy
! Component: 4050  -  total flux cleaned = 0.041066 Jy
! Total flux subtracted in 4096 components = 0.0413499 Jy
! Clean residual min=-0.003115 max=0.003621 Jy/beam
! Clean residual mean=0.000037 rms=0.001156 Jy/beam
! Combined flux in latest and established models = 2.609 Jy
keep
! Adding 433 model components to the UV plane model.
! The established model now contains 843 components and 2.609 Jy
wmap "J1230+1223_S_2003_06_18_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.6 x 7.173 at -1.589 degrees (North through East)
! Clean map  min=-0.0049311  max=0.89607 Jy/beam
! Writing clean map to FITS file: J1230+1223_S_2003_06_18_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.896072 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00116777 
device "J1230+1223_S_2003_06_18_pus\_map.eps/VPS"
! Attempting to open device: 'J1230+1223_S_2003_06_18_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.390962 0.390962 0.781923 1.56385 3.12769 6.25538 12.5108 25.0215 50.0431
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0035 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.896 
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.6 x 7.173 at -1.589 degrees (North through East)
! Clean map  min=-0.0049311  max=0.89607 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1230+1223_S_2003_06_18_pus\_map.gif/vgif"
! Attempting to open device: 'J1230+1223_S_2003_06_18_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1230+1223_S_2003_06_18_pus_uvs.log closed on Wed Jan 24 01:50:00 2007