! Started logfile: J0231+1322_S_2003_09_17_pus_uvs.log on Tue May 22 10:02:42 2007
obs J0231+1322_S_2003_09_17_pus_uva.fits
! Reading UV FITS file: J0231+1322_S_2003_09_17_pus_uva.fits
! AN table 1: 47 integrations on 120 of 120 possible baselines.
! AN table 2: 69 integrations on 120 of 120 possible baselines.
! AN table 3: 7 integrations on 120 of 120 possible baselines.
! AN table 4: 132 integrations on 120 of 120 possible baselines.
! AN table 5: 160 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.136145 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0231+1322
! 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 27120 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 = 2048 
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 = 2048x2048 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 615 telescope corrections were flagged in sub-array 1.
!  A total of 840 telescope corrections were flagged in sub-array 2.
!  A total of 112 telescope corrections were flagged in sub-array 3.
!  A total of 1552 telescope corrections were flagged in sub-array 4.
!  A total of 1554 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 615 telescope corrections were flagged in sub-array 1.
!  A total of 840 telescope corrections were flagged in sub-array 2.
!  A total of 112 telescope corrections were flagged in sub-array 3.
!  A total of 1552 telescope corrections were flagged in sub-array 4.
!  A total of 1554 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 615 telescope corrections were flagged in sub-array 1.
!  A total of 840 telescope corrections were flagged in sub-array 2.
!  A total of 112 telescope corrections were flagged in sub-array 3.
!  A total of 1552 telescope corrections were flagged in sub-array 4.
!  A total of 1554 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 615 telescope corrections were flagged in sub-array 1.
!  A total of 840 telescope corrections were flagged in sub-array 2.
!  A total of 112 telescope corrections were flagged in sub-array 3.
!  A total of 1552 telescope corrections were flagged in sub-array 4.
!  A total of 1554 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=1.083389Jy  sigma=0.007429
! Fit after  self-cal, rms=0.334429Jy  sigma=0.002035
! 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.102 mas, bmaj=4.865 mas, bpa=-1.468 degrees
! Estimated noise=1070.12 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.762706 Jy
! Component: 100  -  total flux cleaned = 0.972404 Jy
! Total flux subtracted in 100 components = 0.972404 Jy
! Clean residual min=-0.019889 max=0.092451 Jy/beam
! Clean residual mean=0.000156 rms=0.004943 Jy/beam
! Combined flux in latest and established models = 0.972404 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.972404 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.326637Jy  sigma=0.002023
! Fit after  self-cal, rms=0.326138Jy  sigma=0.002022
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.100305 Jy
! Component: 100  -  total flux cleaned = 0.156766 Jy
! Total flux subtracted in 100 components = 0.156766 Jy
! Clean residual min=-0.013348 max=0.029859 Jy/beam
! Clean residual mean=0.000108 rms=0.003076 Jy/beam
! Combined flux in latest and established models = 1.12917 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 26 components and 1.12917 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.277047Jy  sigma=0.001563
! Fit after  self-cal, rms=0.276206Jy  sigma=0.001560
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0381358 Jy
! Component: 100  -  total flux cleaned = 0.0626619 Jy
! Total flux subtracted in 100 components = 0.0626619 Jy
! Clean residual min=-0.011588 max=0.023310 Jy/beam
! Clean residual mean=0.000089 rms=0.002667 Jy/beam
! Combined flux in latest and established models = 1.19183 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 35 components and 1.19183 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266266Jy  sigma=0.001457
! Fit after  self-cal, rms=0.266001Jy  sigma=0.001456
! Inverting map 
! Added new window around map position (6.5, 3.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0219071 Jy
! Component: 100  -  total flux cleaned = 0.0366981 Jy
! Total flux subtracted in 100 components = 0.0366981 Jy
! Clean residual min=-0.012827 max=0.019200 Jy/beam
! Clean residual mean=0.000078 rms=0.002516 Jy/beam
! Combined flux in latest and established models = 1.22853 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 46 components and 1.22853 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.262188Jy  sigma=0.001417
! Fit after  self-cal, rms=0.262046Jy  sigma=0.001416
! Inverting map 
! Added new window around map position (5, -4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.017571 Jy
! Component: 100  -  total flux cleaned = 0.0289426 Jy
! Total flux subtracted in 100 components = 0.0289426 Jy
! Clean residual min=-0.011790 max=0.015863 Jy/beam
! Clean residual mean=0.000069 rms=0.002398 Jy/beam
! Combined flux in latest and established models = 1.25747 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 59 components and 1.25747 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.259897Jy  sigma=0.001393
! Fit after  self-cal, rms=0.259676Jy  sigma=0.001391
! 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.659 mas, bmaj=5.471 mas, bpa=0.06419 degrees
! Estimated noise=658.278 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.0237546 Jy
! Component: 100  -  total flux cleaned = 0.0392047 Jy
! Component: 150  -  total flux cleaned = 0.0497941 Jy
! Component: 200  -  total flux cleaned = 0.0571698 Jy
! Total flux subtracted in 200 components = 0.0571699 Jy
! Clean residual min=-0.011928 max=0.016258 Jy/beam
! Clean residual mean=0.000168 rms=0.003356 Jy/beam
! Combined flux in latest and established models = 1.31464 Jy
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 82 components and 1.31464 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.257522Jy  sigma=0.001366
! Fit after  self-cal, rms=0.257337Jy  sigma=0.001364
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 93 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00*    GC        1.00*    HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        1.04     
!   ON        1.26     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        0.95     KK        1.00*    WZ        1.02     WF        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.97     GC        0.98     HN        1.00*    KP        0.98     
!   LA        1.00     MK        0.99     NL        1.06     NY        1.00*    
!   ON        1.00*    OV        0.96     PT        1.01     SC        1.00*    
!   TS        0.97     KK        0.86     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   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 60 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.02     GC        1.00*    HN        1.02     KP        0.99     
!   LA        0.99     MK        1.09     NL        1.07     NY        1.04     
!   ON        1.03     OV        0.90     PT        0.99     SC        0.98     
!   TS        1.00*    KK        1.06     WZ        1.00     WF        1.02     
! 
!  A total of 72 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        1.02     GC        1.00     HN        0.95     KP        1.02     
!   LA        0.97     MK        1.05     NL        1.01     NY        1.05     
!   ON        1.01     OV        1.14     PT        0.96     SC        1.00     
!   TS        1.05     KK        0.99     WZ        1.10     WF        1.01     
! 
! 
! Correcting IF 2.
!  A total of 93 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00*    GC        1.00*    HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        1.09     
!   ON        1.15     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        0.94     KK        1.00*    WZ        1.06     WF        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.02     GC        0.91     HN        1.00*    KP        1.05     
!   LA        1.01     MK        1.10     NL        1.10     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        0.99     SC        1.00*    
!   TS        0.97     KK        1.04     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   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 60 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.01     GC        1.00*    HN        1.07     KP        1.04     
!   LA        0.99     MK        1.11     NL        1.09     NY        1.07     
!   ON        1.03     OV        0.94     PT        0.98     SC        1.05     
!   TS        1.00*    KK        1.03     WZ        0.94     WF        1.04     
! 
!  A total of 72 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        1.00     GC        0.94     HN        1.03     KP        1.04     
!   LA        0.96     MK        1.05     NL        1.04     NY        1.07     
!   ON        1.05     OV        0.97     PT        0.95     SC        1.05     
!   TS        1.04     KK        1.00     WZ        1.00     WF        0.98     
! 
! 
! Correcting IF 3.
!  A total of 93 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00*    GC        1.00*    HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        1.04     
!   ON        1.20     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        0.93     KK        1.00*    WZ        0.96     WF        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.94     GC        0.96     HN        1.00*    KP        1.02     
!   LA        0.97     MK        1.04     NL        1.02     NY        1.00*    
!   ON        1.00*    OV        0.97     PT        1.04     SC        1.00*    
!   TS        1.00     KK        1.04     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   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 60 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.99     GC        1.00*    HN        1.06     KP        1.02     
!   LA        0.96     MK        1.04     NL        1.01     NY        0.99     
!   ON        1.00     OV        0.95     PT        1.01     SC        1.02     
!   TS        1.00*    KK        1.05     WZ        0.94     WF        0.99     
! 
!  A total of 72 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.98     GC        0.98     HN        1.04     KP        1.02     
!   LA        0.93     MK        0.99     NL        0.97     NY        0.99     
!   ON        1.02     OV        1.01     PT        0.98     SC        1.05     
!   TS        1.05     KK        1.00     WZ        1.01     WF        1.01     
! 
! 
! Correcting IF 4.
!  A total of 93 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00*    GC        1.00*    HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        1.09     
!   ON        1.09     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        0.91     KK        1.00*    WZ        1.00     WF        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.07     GC        0.97     HN        1.00*    KP        1.05     
!   LA        1.01     MK        0.97     NL        1.04     NY        1.00*    
!   ON        1.00*    OV        0.95     PT        0.96     SC        1.00*    
!   TS        0.97     KK        1.09     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   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 60 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.98     GC        1.00*    HN        1.02     KP        1.03     
!   LA        0.99     MK        0.98     NL        1.04     NY        0.99     
!   ON        0.99     OV        0.95     PT        0.96     SC        0.97     
!   TS        1.00*    KK        1.10     WZ        0.95     WF        1.02     
! 
!  A total of 72 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.96     GC        1.01     HN        0.88     KP        1.02     
!   LA        0.97     MK        0.94     NL        1.00     NY        0.98     
!   ON        1.11     OV        1.05     PT        0.94     SC        1.01     
!   TS        1.05     KK        1.05     WZ        0.98     WF        1.00     
! 
! 
! Fit before self-cal, rms=0.257337Jy  sigma=0.001364
! Fit after  self-cal, rms=0.248099Jy  sigma=0.001284
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.718 mas, bmaj=5.505 mas, bpa=-0.8663 degrees
! Estimated noise=662.771 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 (30.5, -0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.015443 Jy
! Component: 100  -  total flux cleaned = 0.0252357 Jy
! Component: 150  -  total flux cleaned = 0.0317084 Jy
! Component: 200  -  total flux cleaned = 0.0348811 Jy
! Total flux subtracted in 200 components = 0.0348811 Jy
! Clean residual min=-0.006696 max=0.009656 Jy/beam
! Clean residual mean=0.000110 rms=0.001882 Jy/beam
! Combined flux in latest and established models = 1.34952 Jy
! Performing phase self-cal
! Adding 42 model components to the UV plane model.
! The established model now contains 121 components and 1.34952 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.247058Jy  sigma=0.001272
! Fit after  self-cal, rms=0.247094Jy  sigma=0.001272
! Inverting map 
! Added new window around map position (-29.5, 30.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00877208 Jy
! Component: 100  -  total flux cleaned = 0.0131746 Jy
! Component: 150  -  total flux cleaned = 0.0153346 Jy
! Component: 200  -  total flux cleaned = 0.0173811 Jy
! Total flux subtracted in 200 components = 0.0173811 Jy
! Clean residual min=-0.006277 max=0.008591 Jy/beam
! Clean residual mean=0.000094 rms=0.001759 Jy/beam
! Combined flux in latest and established models = 1.36691 Jy
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 146 components and 1.36691 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.246721Jy  sigma=0.001268
! Fit after  self-cal, rms=0.246697Jy  sigma=0.001267
! 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.246697Jy  sigma=0.001267
! Fit after  self-cal, rms=0.246607Jy  sigma=0.001264
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.719 mas, bmaj=5.51 mas, bpa=-0.8382 degrees
! Estimated noise=662.485 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00381148 Jy
! Component: 100  -  total flux cleaned = 0.00678027 Jy
! Component: 150  -  total flux cleaned = 0.00871519 Jy
! Component: 200  -  total flux cleaned = 0.00991873 Jy
! Total flux subtracted in 200 components = 0.00991873 Jy
! Clean residual min=-0.005874 max=0.008471 Jy/beam
! Clean residual mean=0.000085 rms=0.001645 Jy/beam
! Combined flux in latest and established models = 1.37682 Jy
selfcal
! Performing phase self-cal
! Adding 42 model components to the UV plane model.
! The established model now contains 168 components and 1.37682 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.246438Jy  sigma=0.001262
! Fit after  self-cal, rms=0.246418Jy  sigma=0.001262
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 (16, -0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00825105 Jy
! Component: 100  -  total flux cleaned = 0.0119521 Jy
! Component: 150  -  total flux cleaned = 0.013362 Jy
! Component: 200  -  total flux cleaned = 0.0147697 Jy
! Total flux subtracted in 200 components = 0.0147697 Jy
! Clean residual min=-0.005700 max=0.006749 Jy/beam
! Clean residual mean=0.000069 rms=0.001509 Jy/beam
! Combined flux in latest and established models = 1.39159 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 193 components and 1.39159 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.246124Jy  sigma=0.001258
! Fit after  self-cal, rms=0.246112Jy  sigma=0.001258
! Inverting map 
! Added new window around map position (-57.5, -246).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00571724 Jy
! Component: 100  -  total flux cleaned = 0.00694437 Jy
! Component: 150  -  total flux cleaned = 0.00763212 Jy
! Component: 200  -  total flux cleaned = 0.00845763 Jy
! Total flux subtracted in 200 components = 0.00845763 Jy
! Clean residual min=-0.005561 max=0.006521 Jy/beam
! Clean residual mean=0.000064 rms=0.001451 Jy/beam
! Combined flux in latest and established models = 1.40005 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 211 components and 1.40005 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.245923Jy  sigma=0.001257
! Fit after  self-cal, rms=0.245908Jy  sigma=0.001256
! Inverting map 
! Added new window around map position (68, -221).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00644908 Jy
! Component: 100  -  total flux cleaned = 0.0101558 Jy
! Component: 150  -  total flux cleaned = 0.0124093 Jy
! Component: 200  -  total flux cleaned = 0.0137049 Jy
! Total flux subtracted in 200 components = 0.0137049 Jy
! Clean residual min=-0.005276 max=0.005922 Jy/beam
! Clean residual mean=0.000065 rms=0.001377 Jy/beam
! Combined flux in latest and established models = 1.41376 Jy
! Performing phase self-cal
! Adding 42 model components to the UV plane model.
! The established model now contains 240 components and 1.41376 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.245706Jy  sigma=0.001255
! Fit after  self-cal, rms=0.245708Jy  sigma=0.001254
! Inverting map 
! Added new window around map position (169.5, 233.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0054261 Jy
! Component: 100  -  total flux cleaned = 0.00852478 Jy
! Component: 150  -  total flux cleaned = 0.0104502 Jy
! Component: 200  -  total flux cleaned = 0.0119167 Jy
! Total flux subtracted in 200 components = 0.0119167 Jy
! Clean residual min=-0.005409 max=0.005528 Jy/beam
! Clean residual mean=0.000057 rms=0.001326 Jy/beam
! Combined flux in latest and established models = 1.42567 Jy
! Performing phase self-cal
! Adding 42 model components to the UV plane model.
! The established model now contains 261 components and 1.42567 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.245566Jy  sigma=0.001253
! Fit after  self-cal, rms=0.245570Jy  sigma=0.001253
! 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.245570Jy  sigma=0.001253
! Fit after  self-cal, rms=0.244184Jy  sigma=0.001239
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.722 mas, bmaj=5.517 mas, bpa=-0.8102 degrees
! Estimated noise=662.17 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.53117e-05 Jy
! Component: 100  -  total flux cleaned = 0.000439309 Jy
! Component: 150  -  total flux cleaned = 0.000537569 Jy
! Component: 200  -  total flux cleaned = 0.000894306 Jy
! Total flux subtracted in 200 components = 0.000894306 Jy
! Clean residual min=-0.004522 max=0.004799 Jy/beam
! Clean residual mean=0.000065 rms=0.001153 Jy/beam
! Combined flux in latest and established models = 1.42657 Jy
selfcal
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 283 components and 1.42657 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.244104Jy  sigma=0.001238
! Fit after  self-cal, rms=0.244107Jy  sigma=0.001238
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 = 8.24626e-05 Jy
! Component: 100  -  total flux cleaned = 0.000331518 Jy
! Component: 150  -  total flux cleaned = 0.000492439 Jy
! Component: 200  -  total flux cleaned = 0.000797251 Jy
! Total flux subtracted in 200 components = 0.000797251 Jy
! Clean residual min=-0.004504 max=0.004786 Jy/beam
! Clean residual mean=0.000065 rms=0.001142 Jy/beam
! Combined flux in latest and established models = 1.42736 Jy
! Performing phase self-cal
! Adding 41 model components to the UV plane model.
! The established model now contains 296 components and 1.42737 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.244055Jy  sigma=0.001238
! Fit after  self-cal, rms=0.244055Jy  sigma=0.001238
! 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.244055Jy  sigma=0.001238
! Fit after  self-cal, rms=0.244117Jy  sigma=0.001238
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.764 mas, bmaj=10.62 mas, bpa=-17.65 degrees
! Estimated noise=864.607 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00475273 Jy
! Component: 100  -  total flux cleaned = 0.00620064 Jy
! Component: 150  -  total flux cleaned = 0.00706503 Jy
! Component: 200  -  total flux cleaned = 0.00780324 Jy
! Total flux subtracted in 200 components = 0.00780324 Jy
! Clean residual min=-0.006571 max=0.008636 Jy/beam
! Clean residual mean=0.000145 rms=0.001942 Jy/beam
! Combined flux in latest and established models = 1.43517 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 301 components and 1.43517 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.244089Jy  sigma=0.001237
! Fit after  self-cal, rms=0.244087Jy  sigma=0.001237
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 (114, 63.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00907572 Jy
! Component: 100  -  total flux cleaned = 0.0152172 Jy
! Component: 150  -  total flux cleaned = 0.0187228 Jy
! Component: 200  -  total flux cleaned = 0.0205267 Jy
! Total flux subtracted in 200 components = 0.0205267 Jy
! Clean residual min=-0.006003 max=0.007089 Jy/beam
! Clean residual mean=0.000103 rms=0.001661 Jy/beam
! Combined flux in latest and established models = 1.4557 Jy
! Performing phase self-cal
! Adding 78 model components to the UV plane model.
! The established model now contains 375 components and 1.45569 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.243872Jy  sigma=0.001236
! Fit after  self-cal, rms=0.243862Jy  sigma=0.001236
! 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.722 mas, bmaj=5.518 mas, bpa=-0.8072 degrees
! Estimated noise=661.999 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.722 x 5.518 at -0.8072 degrees (North through East)
! Clean map  min=-0.0041574  max=1.0357 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.243862Jy  sigma=0.001236
! Fit after  self-cal, rms=0.233133Jy  sigma=0.001115
! Inverting map and beam 
! Estimated beam: bmin=2.721 mas, bmaj=5.518 mas, bpa=-0.7675 degrees
! Estimated noise=661.84 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00380118 Jy
! Component: 100  -  total flux cleaned = 0.00529544 Jy
! Component: 150  -  total flux cleaned = 0.00563359 Jy
! Component: 200  -  total flux cleaned = 0.00594183 Jy
! Total flux subtracted in 200 components = 0.00594183 Jy
! Clean residual min=-0.004327 max=0.003799 Jy/beam
! Clean residual mean=0.000035 rms=0.000934 Jy/beam
! Combined flux in latest and established models = 1.46164 Jy
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 412 components and 1.46164 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.232996Jy  sigma=0.001114
! Fit after  self-cal, rms=0.232993Jy  sigma=0.001114
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000639865 Jy
! Component: 100  -  total flux cleaned = 0.000737248 Jy
! Component: 150  -  total flux cleaned = 0.00100501 Jy
! Component: 200  -  total flux cleaned = 0.00134141 Jy
! Total flux subtracted in 200 components = 0.00134141 Jy
! Clean residual min=-0.004372 max=0.003778 Jy/beam
! Clean residual mean=0.000033 rms=0.000922 Jy/beam
! Combined flux in latest and established models = 1.46298 Jy
! Performing phase self-cal
! Adding 54 model components to the UV plane model.
! The established model now contains 434 components and 1.46298 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.232921Jy  sigma=0.001113
! Fit after  self-cal, rms=0.232921Jy  sigma=0.001113
! 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.232921Jy  sigma=0.001113
! Fit after  self-cal, rms=0.232930Jy  sigma=0.001113
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.114 mas, bmaj=4.864 mas, bpa=-1.622 degrees
! Estimated noise=1096.19 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.766342 Jy
! Component: 100  -  total flux cleaned = 0.978013 Jy
! Component: 150  -  total flux cleaned = 1.07854 Jy
! Component: 200  -  total flux cleaned = 1.13387 Jy
! Total flux subtracted in 200 components = 1.13387 Jy
! Clean residual min=-0.009001 max=0.029143 Jy/beam
! Clean residual mean=0.000113 rms=0.002358 Jy/beam
! Combined flux in latest and established models = 1.13387 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 25 model components to the UV plane model.
! The established model now contains 25 components and 1.13387 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.722 mas, bmaj=5.519 mas, bpa=-0.7709 degrees
! Estimated noise=661.66 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.0632393 Jy
! Component: 100  -  total flux cleaned = 0.101553 Jy
! Component: 150  -  total flux cleaned = 0.126601 Jy
! Component: 200  -  total flux cleaned = 0.146014 Jy
! Total flux subtracted in 200 components = 0.146014 Jy
! Clean residual min=-0.007801 max=0.014418 Jy/beam
! Clean residual mean=0.000193 rms=0.002499 Jy/beam
! Combined flux in latest and established models = 1.27989 Jy
! Adding 69 model components to the UV plane model.
! The established model now contains 85 components and 1.27989 Jy
! Inverting map 
! Added new window around map position (25, 1.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0166834 Jy
! Component: 100  -  total flux cleaned = 0.0305536 Jy
! Component: 150  -  total flux cleaned = 0.0425687 Jy
! Component: 200  -  total flux cleaned = 0.0531543 Jy
! Total flux subtracted in 200 components = 0.0531543 Jy
! Clean residual min=-0.005880 max=0.007919 Jy/beam
! Clean residual mean=0.000138 rms=0.001813 Jy/beam
! Combined flux in latest and established models = 1.33304 Jy
! Adding 89 model components to the UV plane model.
! The established model now contains 157 components and 1.33304 Jy
! Inverting map 
! Added new window around map position (-14, 37).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0096673 Jy
! Component: 100  -  total flux cleaned = 0.0182393 Jy
! Component: 150  -  total flux cleaned = 0.0260362 Jy
! Component: 200  -  total flux cleaned = 0.0331886 Jy
! Total flux subtracted in 200 components = 0.0331886 Jy
! Clean residual min=-0.005212 max=0.005757 Jy/beam
! Clean residual mean=0.000108 rms=0.001468 Jy/beam
! Combined flux in latest and established models = 1.36623 Jy
! Adding 90 model components to the UV plane model.
! The established model now contains 218 components and 1.36623 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.76 mas, bmaj=10.62 mas, bpa=-17.68 degrees
! Estimated noise=864.292 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.014108 Jy
! Component: 100  -  total flux cleaned = 0.0255189 Jy
! Component: 150  -  total flux cleaned = 0.035135 Jy
! Component: 200  -  total flux cleaned = 0.0434031 Jy
! Total flux subtracted in 200 components = 0.0434031 Jy
! Clean residual min=-0.006594 max=0.007839 Jy/beam
! Clean residual mean=0.000171 rms=0.002160 Jy/beam
! Combined flux in latest and established models = 1.40963 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.00724537 Jy
! Component: 100  -  total flux cleaned = 0.0136513 Jy
! Component: 150  -  total flux cleaned = 0.0193388 Jy
! Component: 200  -  total flux cleaned = 0.0244003 Jy
! Total flux subtracted in 200 components = 0.0244003 Jy
! Clean residual min=-0.006015 max=0.006707 Jy/beam
! Clean residual mean=0.000123 rms=0.001735 Jy/beam
! Combined flux in latest and established models = 1.43403 Jy
! Adding 192 model components to the UV plane model.
! The established model now contains 392 components and 1.43403 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.722 mas, bmaj=5.519 mas, bpa=-0.7709 degrees
! Estimated noise=661.66 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00376462 Jy
! Component: 100  -  total flux cleaned = 0.00622593 Jy
! Component: 150  -  total flux cleaned = 0.00837609 Jy
! Component: 200  -  total flux cleaned = 0.0102823 Jy
! Total flux subtracted in 200 components = 0.0102823 Jy
! Clean residual min=-0.004529 max=0.004233 Jy/beam
! Clean residual mean=0.000043 rms=0.000942 Jy/beam
! Combined flux in latest and established models = 1.44431 Jy
selfcal
! Performing phase self-cal
! Adding 55 model components to the UV plane model.
! The established model now contains 436 components and 1.44431 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.233016Jy  sigma=0.001114
! Fit after  self-cal, rms=0.232966Jy  sigma=0.001113
wmodel J0231+1322_S_2003_09_17_pus_map.mod
! Writing 436 model components to file: J0231+1322_S_2003_09_17_pus_map.mod
wobs J0231+1322_S_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J0231+1322_S_2003_09_17_pus_uvs.fits
wwins J0231+1322_S_2003_09_17_pus_map.win
! wwins: Wrote 12 windows to J0231+1322_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=8192  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 4.57787e-05 Jy
! Component: 100  -  total flux cleaned = 0.000259929 Jy
! Component: 150  -  total flux cleaned = 0.000734224 Jy
! Component: 200  -  total flux cleaned = 0.000931994 Jy
! Component: 250  -  total flux cleaned = 0.00125457 Jy
! Component: 300  -  total flux cleaned = 0.00150757 Jy
! Component: 350  -  total flux cleaned = 0.00169396 Jy
! Component: 400  -  total flux cleaned = 0.00193777 Jy
! Component: 450  -  total flux cleaned = 0.00217872 Jy
! Component: 500  -  total flux cleaned = 0.00241548 Jy
! Component: 550  -  total flux cleaned = 0.00253214 Jy
! Component: 600  -  total flux cleaned = 0.00264898 Jy
! Component: 650  -  total flux cleaned = 0.00299215 Jy
! Component: 700  -  total flux cleaned = 0.00316122 Jy
! Component: 750  -  total flux cleaned = 0.00321753 Jy
! Component: 800  -  total flux cleaned = 0.00338367 Jy
! Component: 850  -  total flux cleaned = 0.0034384 Jy
! Component: 900  -  total flux cleaned = 0.00360168 Jy
! Component: 950  -  total flux cleaned = 0.00376233 Jy
! Component: 1000  -  total flux cleaned = 0.00386817 Jy
! Component: 1050  -  total flux cleaned = 0.003868 Jy
! Component: 1100  -  total flux cleaned = 0.0040245 Jy
! Component: 1150  -  total flux cleaned = 0.00412818 Jy
! Component: 1200  -  total flux cleaned = 0.00423101 Jy
! Component: 1250  -  total flux cleaned = 0.00438395 Jy
! Component: 1300  -  total flux cleaned = 0.00453574 Jy
! Component: 1350  -  total flux cleaned = 0.00468604 Jy
! Component: 1400  -  total flux cleaned = 0.00488537 Jy
! Component: 1450  -  total flux cleaned = 0.00488515 Jy
! Component: 1500  -  total flux cleaned = 0.00522836 Jy
! Component: 1550  -  total flux cleaned = 0.00537465 Jy
! Component: 1600  -  total flux cleaned = 0.00552015 Jy
! Component: 1650  -  total flux cleaned = 0.00585674 Jy
! Component: 1700  -  total flux cleaned = 0.00590423 Jy
! Component: 1750  -  total flux cleaned = 0.0060943 Jy
! Component: 1800  -  total flux cleaned = 0.00609409 Jy
! Component: 1850  -  total flux cleaned = 0.00642276 Jy
! Component: 1900  -  total flux cleaned = 0.0066088 Jy
! Component: 1950  -  total flux cleaned = 0.00660875 Jy
! Component: 2000  -  total flux cleaned = 0.00670099 Jy
! Component: 2050  -  total flux cleaned = 0.00697612 Jy
! Component: 2100  -  total flux cleaned = 0.00715836 Jy
! Component: 2150  -  total flux cleaned = 0.00734036 Jy
! Component: 2200  -  total flux cleaned = 0.00756588 Jy
! Component: 2250  -  total flux cleaned = 0.00770038 Jy
! Component: 2300  -  total flux cleaned = 0.00783459 Jy
! Component: 2350  -  total flux cleaned = 0.0078789 Jy
! Component: 2400  -  total flux cleaned = 0.00823257 Jy
! Component: 2450  -  total flux cleaned = 0.00858399 Jy
! Component: 2500  -  total flux cleaned = 0.00858382 Jy
! Component: 2550  -  total flux cleaned = 0.00849679 Jy
! Component: 2600  -  total flux cleaned = 0.00871414 Jy
! Component: 2650  -  total flux cleaned = 0.00875734 Jy
! Component: 2700  -  total flux cleaned = 0.00901484 Jy
! Component: 2750  -  total flux cleaned = 0.0091859 Jy
! Component: 2800  -  total flux cleaned = 0.00914343 Jy
! Component: 2850  -  total flux cleaned = 0.00914366 Jy
! Component: 2900  -  total flux cleaned = 0.00927048 Jy
! Component: 2950  -  total flux cleaned = 0.0092704 Jy
! Component: 3000  -  total flux cleaned = 0.00960513 Jy
! Component: 3050  -  total flux cleaned = 0.0095218 Jy
! Component: 3100  -  total flux cleaned = 0.00977067 Jy
! Component: 3150  -  total flux cleaned = 0.0095638 Jy
! Component: 3200  -  total flux cleaned = 0.00972827 Jy
! Component: 3250  -  total flux cleaned = 0.00993306 Jy
! Component: 3300  -  total flux cleaned = 0.0103001 Jy
! Component: 3350  -  total flux cleaned = 0.0101377 Jy
! Component: 3400  -  total flux cleaned = 0.0101377 Jy
! Component: 3450  -  total flux cleaned = 0.0103796 Jy
! Component: 3500  -  total flux cleaned = 0.0105802 Jy
! Component: 3550  -  total flux cleaned = 0.0107402 Jy
! Component: 3600  -  total flux cleaned = 0.0105808 Jy
! Component: 3650  -  total flux cleaned = 0.0108583 Jy
! Component: 3700  -  total flux cleaned = 0.0109771 Jy
! Component: 3750  -  total flux cleaned = 0.0110558 Jy
! Component: 3800  -  total flux cleaned = 0.0110558 Jy
! Component: 3850  -  total flux cleaned = 0.0112901 Jy
! Component: 3900  -  total flux cleaned = 0.0113291 Jy
! Component: 3950  -  total flux cleaned = 0.0116394 Jy
! Component: 4000  -  total flux cleaned = 0.0116006 Jy
! Component: 4050  -  total flux cleaned = 0.0117548 Jy
! Component: 4100  -  total flux cleaned = 0.0118699 Jy
! Component: 4150  -  total flux cleaned = 0.0119463 Jy
! Component: 4200  -  total flux cleaned = 0.0120226 Jy
! Component: 4250  -  total flux cleaned = 0.0120987 Jy
! Component: 4300  -  total flux cleaned = 0.0121363 Jy
! Component: 4350  -  total flux cleaned = 0.0124377 Jy
! Component: 4400  -  total flux cleaned = 0.0122498 Jy
! Component: 4450  -  total flux cleaned = 0.0123244 Jy
! Component: 4500  -  total flux cleaned = 0.0123991 Jy
! Component: 4550  -  total flux cleaned = 0.0125109 Jy
! Component: 4600  -  total flux cleaned = 0.0126963 Jy
! Component: 4650  -  total flux cleaned = 0.0128437 Jy
! Component: 4700  -  total flux cleaned = 0.0130276 Jy
! Component: 4750  -  total flux cleaned = 0.0129541 Jy
! Component: 4800  -  total flux cleaned = 0.012954 Jy
! Component: 4850  -  total flux cleaned = 0.0130633 Jy
! Component: 4900  -  total flux cleaned = 0.013172 Jy
! Component: 4950  -  total flux cleaned = 0.0133167 Jy
! Component: 5000  -  total flux cleaned = 0.0134607 Jy
! Component: 5050  -  total flux cleaned = 0.013748 Jy
! Component: 5100  -  total flux cleaned = 0.0139983 Jy
! Component: 5150  -  total flux cleaned = 0.0141051 Jy
! Component: 5200  -  total flux cleaned = 0.0142474 Jy
! Component: 5250  -  total flux cleaned = 0.0141764 Jy
! Component: 5300  -  total flux cleaned = 0.0141412 Jy
! Component: 5350  -  total flux cleaned = 0.0144229 Jy
! Component: 5400  -  total flux cleaned = 0.0145635 Jy
! Component: 5450  -  total flux cleaned = 0.0147733 Jy
! Component: 5500  -  total flux cleaned = 0.0149479 Jy
! Component: 5550  -  total flux cleaned = 0.0149827 Jy
! Component: 5600  -  total flux cleaned = 0.0151906 Jy
! Component: 5650  -  total flux cleaned = 0.0154326 Jy
! Component: 5700  -  total flux cleaned = 0.0155016 Jy
! Component: 5750  -  total flux cleaned = 0.0154673 Jy
! Component: 5800  -  total flux cleaned = 0.0155701 Jy
! Component: 5850  -  total flux cleaned = 0.0157068 Jy
! Component: 5900  -  total flux cleaned = 0.015843 Jy
! Component: 5950  -  total flux cleaned = 0.0159788 Jy
! Component: 6000  -  total flux cleaned = 0.0159111 Jy
! Component: 6050  -  total flux cleaned = 0.0160801 Jy
! Component: 6100  -  total flux cleaned = 0.0163158 Jy
! Component: 6150  -  total flux cleaned = 0.016551 Jy
! Component: 6200  -  total flux cleaned = 0.016551 Jy
! Component: 6250  -  total flux cleaned = 0.0166511 Jy
! Component: 6300  -  total flux cleaned = 0.0169511 Jy
! Component: 6350  -  total flux cleaned = 0.0169178 Jy
! Component: 6400  -  total flux cleaned = 0.0170502 Jy
! Component: 6450  -  total flux cleaned = 0.0171162 Jy
! Component: 6500  -  total flux cleaned = 0.0170833 Jy
! Component: 6550  -  total flux cleaned = 0.0173462 Jy
! Component: 6600  -  total flux cleaned = 0.0174446 Jy
! Component: 6650  -  total flux cleaned = 0.0175753 Jy
! Component: 6700  -  total flux cleaned = 0.0177707 Jy
! Component: 6750  -  total flux cleaned = 0.0177708 Jy
! Component: 6800  -  total flux cleaned = 0.0177707 Jy
! Component: 6850  -  total flux cleaned = 0.0179645 Jy
! Component: 6900  -  total flux cleaned = 0.0179324 Jy
! Component: 6950  -  total flux cleaned = 0.0179323 Jy
! Component: 7000  -  total flux cleaned = 0.018253 Jy
! Component: 7050  -  total flux cleaned = 0.018253 Jy
! Component: 7100  -  total flux cleaned = 0.0183169 Jy
! Component: 7150  -  total flux cleaned = 0.0182534 Jy
! Component: 7200  -  total flux cleaned = 0.018412 Jy
! Component: 7250  -  total flux cleaned = 0.0183486 Jy
! Component: 7300  -  total flux cleaned = 0.0184119 Jy
! Component: 7350  -  total flux cleaned = 0.0185694 Jy
! Component: 7400  -  total flux cleaned = 0.0188208 Jy
! Component: 7450  -  total flux cleaned = 0.0189774 Jy
! Component: 7500  -  total flux cleaned = 0.0190089 Jy
! Component: 7550  -  total flux cleaned = 0.0189777 Jy
! Component: 7600  -  total flux cleaned = 0.0190709 Jy
! Component: 7650  -  total flux cleaned = 0.0191019 Jy
! Component: 7700  -  total flux cleaned = 0.0192566 Jy
! Component: 7750  -  total flux cleaned = 0.0192259 Jy
! Component: 7800  -  total flux cleaned = 0.019226 Jy
! Component: 7850  -  total flux cleaned = 0.0193488 Jy
! Component: 7900  -  total flux cleaned = 0.0195938 Jy
! Component: 7950  -  total flux cleaned = 0.0196855 Jy
! Component: 8000  -  total flux cleaned = 0.0196551 Jy
! Component: 8050  -  total flux cleaned = 0.0196551 Jy
! Component: 8100  -  total flux cleaned = 0.0197462 Jy
! Component: 8150  -  total flux cleaned = 0.0198975 Jy
! Total flux subtracted in 8192 components = 0.0200183 Jy
! Clean residual min=-0.001966 max=0.001798 Jy/beam
! Clean residual mean=0.000021 rms=0.000514 Jy/beam
! Combined flux in latest and established models = 1.46433 Jy
keep
! Adding 723 model components to the UV plane model.
! The established model now contains 1159 components and 1.46433 Jy
wmap "J0231+1322_S_2003_09_17_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.722 x 5.519 at -0.7709 degrees (North through East)
! Clean map  min=-0.0028726  max=1.0394 Jy/beam
! Writing clean map to FITS file: J0231+1322_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.03937 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000510352 
device "J0231+1322_S_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J0231+1322_S_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.147307 0.147307 0.294613 0.589226 1.17845 2.3569 4.71381 9.42762 18.8552 37.7105 75.4209
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0015 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.039 
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.722 x 5.519 at -0.7709 degrees (North through East)
! Clean map  min=-0.0028726  max=1.0394 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0231+1322_S_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J0231+1322_S_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0231+1322_S_2003_09_17_pus_uvs.log closed on Tue May 22 10:27:42 2007