! Started logfile: J1957+3338_X_1997_01_10_pus_uvs.log on Sat Jan 28 15:19:11 2006
obs J1957+3338_X_1997_01_10_pus_uva.fits
! Reading UV FITS file: J1957+3338_X_1997_01_10_pus_uva.fits
! AN table 1: 269 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.655101 visibilities/baseline/integration-bin.
! Found source: J1957+3338
! 
! 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  8.15049e+09        8e+06          1        8e+06
!  02        2  8.23424e+09        8e+06          1        8e+06
!  03        3  8.41424e+09        8e+06          1        8e+06
!  04        4  8.55424e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 493 lines of history.
! 
! Reading 31720 visibilities.
select I
! Polarization I is unavailable.
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
float field_size
field_size = 256
float field_cell
field_cell = 0.2
float taper_size
taper_size = 70.
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 = 256x256 pixels with 0.200x0.200 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 533 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 533 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 525 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 525 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.967068Jy  sigma=0.006146
! Fit after  self-cal, rms=0.904761Jy  sigma=0.005856
! 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=0.7703 mas, bmaj=1.235 mas, bpa=-3.273 degrees
! Estimated noise=1145.3 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.103443 Jy
! Component: 100  -  total flux cleaned = 0.126549 Jy
! Total flux subtracted in 100 components = 0.126549 Jy
! Clean residual min=-0.007266 max=0.008083 Jy/beam
! Clean residual mean=-0.000033 rms=0.001890 Jy/beam
! Combined flux in latest and established models = 0.126549 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.126549 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.263723Jy  sigma=0.001136
! Fit after  self-cal, rms=0.263510Jy  sigma=0.001135
! 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=0.9556 mas, bmaj=1.459 mas, bpa=-5.076 degrees
! Estimated noise=616.927 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.00696468 Jy
! Component: 100  -  total flux cleaned = 0.00982616 Jy
! Component: 150  -  total flux cleaned = 0.0109718 Jy
! Component: 200  -  total flux cleaned = 0.0111483 Jy
! Total flux subtracted in 200 components = 0.0111483 Jy
! Clean residual min=-0.004400 max=0.004446 Jy/beam
! Clean residual mean=-0.000246 rms=0.001199 Jy/beam
! Combined flux in latest and established models = 0.137697 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 17 components and 0.137697 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.263282Jy  sigma=0.001134
! Fit after  self-cal, rms=0.263232Jy  sigma=0.001133
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        0.91     HN        1.09     KP        1.00*    
!   LA        0.93     MK        1.01     NL        1.14     OV        0.95     
!   PT        1.16     SC        0.93     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        0.97     HN        1.11     KP        1.00*    
!   LA        0.93     MK        0.97     NL        1.14     OV        0.92     
!   PT        1.20     SC        1.00     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.96     HN        1.13     KP        1.00*    
!   LA        0.97     MK        1.02     NL        1.14     OV        0.89     
!   PT        1.17     SC        1.03     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.93     FD        0.94     HN        1.09     KP        1.00*    
!   LA        0.94     MK        1.00     NL        1.14     OV        0.91     
!   PT        1.20     SC        1.04     
! 
! 
! Fit before self-cal, rms=0.263232Jy  sigma=0.001133
! Fit after  self-cal, rms=0.298337Jy  sigma=0.001129
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.9569 mas, bmaj=1.462 mas, bpa=-4.197 degrees
! Estimated noise=621.378 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.00186251 Jy
! Component: 100  -  total flux cleaned = 0.00190607 Jy
! Component: 150  -  total flux cleaned = 0.00190512 Jy
! Component: 200  -  total flux cleaned = 0.00188155 Jy
! Total flux subtracted in 200 components = 0.00188155 Jy
! Clean residual min=-0.003348 max=0.003105 Jy/beam
! Clean residual mean=-0.000081 rms=0.000893 Jy/beam
! Combined flux in latest and established models = 0.139579 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 20 components and 0.139579 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.298301Jy  sigma=0.001129
! Fit after  self-cal, rms=0.298917Jy  sigma=0.001128
! 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.298917Jy  sigma=0.001128
! Fit after  self-cal, rms=0.294193Jy  sigma=0.001126
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=0.956 mas, bmaj=1.46 mas, bpa=-4.041 degrees
! Estimated noise=625.803 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00113268 Jy
! Component: 100  -  total flux cleaned = 0.00121208 Jy
! Component: 150  -  total flux cleaned = 0.00121314 Jy
! Component: 200  -  total flux cleaned = 0.00119446 Jy
! Total flux subtracted in 200 components = 0.00119446 Jy
! Clean residual min=-0.002766 max=0.002776 Jy/beam
! Clean residual mean=-0.000026 rms=0.000752 Jy/beam
! Combined flux in latest and established models = 0.140773 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 25 components and 0.140773 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.294179Jy  sigma=0.001126
! Fit after  self-cal, rms=0.294292Jy  sigma=0.001126
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 = -3.80421e-05 Jy
! Component: 100  -  total flux cleaned = -0.000149585 Jy
! Component: 150  -  total flux cleaned = -0.000168126 Jy
! Component: 200  -  total flux cleaned = -0.000184761 Jy
! Total flux subtracted in 200 components = -0.000184761 Jy
! Clean residual min=-0.002854 max=0.002807 Jy/beam
! Clean residual mean=-0.000029 rms=0.000757 Jy/beam
! Combined flux in latest and established models = 0.140589 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 28 components and 0.140589 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.294292Jy  sigma=0.001126
! Fit after  self-cal, rms=0.294295Jy  sigma=0.001126
! 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.294295Jy  sigma=0.001126
! Fit after  self-cal, rms=0.299008Jy  sigma=0.001126
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=0.953 mas, bmaj=1.46 mas, bpa=-3.916 degrees
! Estimated noise=629.446 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00107505 Jy
! Component: 100  -  total flux cleaned = 0.00126837 Jy
! Component: 150  -  total flux cleaned = 0.00123236 Jy
! Component: 200  -  total flux cleaned = 0.00120008 Jy
! Total flux subtracted in 200 components = 0.00120008 Jy
! Clean residual min=-0.002757 max=0.002788 Jy/beam
! Clean residual mean=-0.000021 rms=0.000750 Jy/beam
! Combined flux in latest and established models = 0.141789 Jy
selfcal
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 28 components and 0.141789 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.298992Jy  sigma=0.001126
! Fit after  self-cal, rms=0.299033Jy  sigma=0.001126
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 = -2.22877e-05 Jy
! Component: 100  -  total flux cleaned = -3.90515e-05 Jy
! Component: 150  -  total flux cleaned = -5.47453e-05 Jy
! Component: 200  -  total flux cleaned = -5.49734e-05 Jy
! Total flux subtracted in 200 components = -5.49734e-05 Jy
! Clean residual min=-0.002738 max=0.002793 Jy/beam
! Clean residual mean=-0.000021 rms=0.000750 Jy/beam
! Combined flux in latest and established models = 0.141734 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 29 components and 0.141734 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.299032Jy  sigma=0.001126
! Fit after  self-cal, rms=0.299036Jy  sigma=0.001126
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 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.299036Jy  sigma=0.001126
! Fit after  self-cal, rms=0.301072Jy  sigma=0.001126
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.24 mas, bmaj=2.515 mas, bpa=20.46 degrees
! Estimated noise=821.079 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00156118 Jy
! Component: 100  -  total flux cleaned = 0.00161302 Jy
! Component: 150  -  total flux cleaned = 0.00167392 Jy
! Component: 200  -  total flux cleaned = 0.00170662 Jy
! Total flux subtracted in 200 components = 0.00170662 Jy
! Clean residual min=-0.002597 max=0.002764 Jy/beam
! Clean residual mean=-0.000065 rms=0.000885 Jy/beam
! Combined flux in latest and established models = 0.14344 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 34 components and 0.14344 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.301060Jy  sigma=0.001126
! Fit after  self-cal, rms=0.301047Jy  sigma=0.001126
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.000222659 Jy
! Component: 100  -  total flux cleaned = 0.000222649 Jy
! Component: 150  -  total flux cleaned = 0.000192381 Jy
! Component: 200  -  total flux cleaned = 0.000149518 Jy
! Total flux subtracted in 200 components = 0.000149518 Jy
! Clean residual min=-0.002551 max=0.002746 Jy/beam
! Clean residual mean=-0.000063 rms=0.000881 Jy/beam
! Combined flux in latest and established models = 0.14359 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 35 components and 0.14359 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.301047Jy  sigma=0.001126
! Fit after  self-cal, rms=0.301039Jy  sigma=0.001126
! 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=0.9501 mas, bmaj=1.46 mas, bpa=-3.841 degrees
! Estimated noise=633.188 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9501 x 1.46 at -3.841 degrees (North through East)
! Clean map  min=-0.0026971  max=0.13389 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
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=0.7688 mas, bmaj=1.233 mas, bpa=-1.741 degrees
! Estimated noise=1180.64 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.104254 Jy
! Component: 100  -  total flux cleaned = 0.128872 Jy
! Component: 150  -  total flux cleaned = 0.139079 Jy
! Component: 200  -  total flux cleaned = 0.143946 Jy
! Total flux subtracted in 200 components = 0.143946 Jy
! Clean residual min=-0.005956 max=0.005586 Jy/beam
! Clean residual mean=-0.000008 rms=0.001458 Jy/beam
! Combined flux in latest and established models = 0.143946 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 8 model components to the UV plane model.
! The established model now contains 8 components and 0.143946 Jy
! Inverting map and beam 
! Estimated beam: bmin=0.9501 mas, bmaj=1.46 mas, bpa=-3.841 degrees
! Estimated noise=633.188 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.00119668 Jy
! Component: 100  -  total flux cleaned = -0.00104279 Jy
! Component: 150  -  total flux cleaned = -0.00096126 Jy
! Component: 200  -  total flux cleaned = -0.000892973 Jy
! Total flux subtracted in 200 components = -0.000892973 Jy
! Clean residual min=-0.002872 max=0.002828 Jy/beam
! Clean residual mean=-0.000017 rms=0.000758 Jy/beam
! Combined flux in latest and established models = 0.143053 Jy
! Adding 10 model components to the UV plane model.
! The established model now contains 18 components and 0.143053 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.24 mas, bmaj=2.515 mas, bpa=20.46 degrees
! Estimated noise=821.079 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000513281 Jy
! Component: 100  -  total flux cleaned = 0.000505807 Jy
! Component: 150  -  total flux cleaned = 0.000502997 Jy
! Component: 200  -  total flux cleaned = 0.000470584 Jy
! Total flux subtracted in 200 components = 0.000470584 Jy
! Clean residual min=-0.002523 max=0.002782 Jy/beam
! Clean residual mean=-0.000059 rms=0.000886 Jy/beam
! Combined flux in latest and established models = 0.143523 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 = -1.51188e-05 Jy
! Component: 100  -  total flux cleaned = -2.93999e-05 Jy
! Component: 150  -  total flux cleaned = -2.93317e-05 Jy
! Component: 200  -  total flux cleaned = -2.90182e-05 Jy
! Total flux subtracted in 200 components = -2.90182e-05 Jy
! Clean residual min=-0.002522 max=0.002781 Jy/beam
! Clean residual mean=-0.000059 rms=0.000881 Jy/beam
! Combined flux in latest and established models = 0.143494 Jy
! Adding 9 model components to the UV plane model.
! The established model now contains 22 components and 0.143494 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=0.9501 mas, bmaj=1.46 mas, bpa=-3.841 degrees
! Estimated noise=633.188 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000508933 Jy
! Component: 100  -  total flux cleaned = -0.000472243 Jy
! Component: 150  -  total flux cleaned = -0.000444175 Jy
! Component: 200  -  total flux cleaned = -0.000467305 Jy
! Total flux subtracted in 200 components = -0.000467305 Jy
! Clean residual min=-0.002491 max=0.002862 Jy/beam
! Clean residual mean=-0.000018 rms=0.000746 Jy/beam
! Combined flux in latest and established models = 0.143027 Jy
selfcal
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 25 components and 0.143027 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.301043Jy  sigma=0.001126
! Fit after  self-cal, rms=0.301040Jy  sigma=0.001126
wmodel J1957+3338_X_1997_01_10_pus_map.mod
! Writing 25 model components to file: J1957+3338_X_1997_01_10_pus_map.mod
wobs J1957+3338_X_1997_01_10_pus_uvs.fits
! Writing UV FITS file: J1957+3338_X_1997_01_10_pus_uvs.fits
wwins J1957+3338_X_1997_01_10_pus_map.win
! wwins: Wrote 1 windows to J1957+3338_X_1997_01_10_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=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000614255 Jy
! Component: 100  -  total flux cleaned = 0.00118645 Jy
! Component: 150  -  total flux cleaned = 0.00159616 Jy
! Component: 200  -  total flux cleaned = 0.00182859 Jy
! Component: 250  -  total flux cleaned = 0.00186515 Jy
! Component: 300  -  total flux cleaned = 0.00190113 Jy
! Component: 350  -  total flux cleaned = 0.00203953 Jy
! Component: 400  -  total flux cleaned = 0.00214025 Jy
! Component: 450  -  total flux cleaned = 0.00220546 Jy
! Component: 500  -  total flux cleaned = 0.00217349 Jy
! Component: 550  -  total flux cleaned = 0.00214261 Jy
! Component: 600  -  total flux cleaned = 0.00217294 Jy
! Component: 650  -  total flux cleaned = 0.00211388 Jy
! Component: 700  -  total flux cleaned = 0.00217291 Jy
! Component: 750  -  total flux cleaned = 0.00217257 Jy
! Component: 800  -  total flux cleaned = 0.00211672 Jy
! Component: 850  -  total flux cleaned = 0.0021445 Jy
! Component: 900  -  total flux cleaned = 0.0020901 Jy
! Component: 950  -  total flux cleaned = 0.00217069 Jy
! Component: 1000  -  total flux cleaned = 0.00211759 Jy
! Total flux subtracted in 1024 components = 0.0021698 Jy
! Clean residual min=-0.001416 max=0.001455 Jy/beam
! Clean residual mean=-0.000038 rms=0.000554 Jy/beam
! Combined flux in latest and established models = 0.145197 Jy
keep
! Adding 77 model components to the UV plane model.
! The established model now contains 102 components and 0.145197 Jy
wmap "J1957+3338_X_1997_01_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9501 x 1.46 at -3.841 degrees (North through East)
! Clean map  min=-0.0022982  max=0.13405 Jy/beam
! Writing clean map to FITS file: J1957+3338_X_1997_01_10_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.134052 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000554528 
device "J1957+3338_X_1997_01_10_pus\_map.eps/VPS"
! Attempting to open device: 'J1957+3338_X_1997_01_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -1.241 1.241 2.48201 4.96401 9.92803 19.8561 39.7121 79.4242
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0016 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.134 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9501 x 1.46 at -3.841 degrees (North through East)
! Clean map  min=-0.0022982  max=0.13405 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1957+3338_X_1997_01_10_pus\_map.gif/vgif"
! Attempting to open device: 'J1957+3338_X_1997_01_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1957+3338_X_1997_01_10_pus_uvs.log closed on Sat Jan 28 15:19:42 2006