! Started logfile: J1800+7828_S_1998_10_01_pus_uvs.log on Thu Feb  7 17:26:07 2008
obs J1800+7828_S_1998_10_01_pus_uva.fits
! Reading UV FITS file: J1800+7828_S_1998_10_01_pus_uva.fits
! AN table 1: 619 integrations on 136 of 136 possible baselines.
! AN table 2: 372 integrations on 136 of 136 possible baselines.
! AN table 3: 86 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.195703 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1800+7828
! 
! 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.22298e+09        4e+06          1        4e+06
!  02        2  2.24298e+09        4e+06          1        4e+06
!  03        3  2.33298e+09        4e+06          1        4e+06
!  04        4  2.36298e+09        4e+06          1        4e+06
! 
! Polarization(s): RR
! 
! Read 1538 lines of history.
! 
! Reading 114660 visibilities.
select I
! Polarization I is unavailable.
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
print "field_size =",field_size
! field_size = 512 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
![@muppet J1800+7828_S_1998_10_01_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 6357 telescope corrections were flagged in sub-array 1.
!  A total of 5029 telescope corrections were flagged in sub-array 2.
!  A total of 883 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 6357 telescope corrections were flagged in sub-array 1.
!  A total of 5028 telescope corrections were flagged in sub-array 2.
!  A total of 883 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 6357 telescope corrections were flagged in sub-array 1.
!  A total of 5028 telescope corrections were flagged in sub-array 2.
!  A total of 883 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 6357 telescope corrections were flagged in sub-array 1.
!  A total of 5029 telescope corrections were flagged in sub-array 2.
!  A total of 883 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.222692Jy  sigma=0.007548
! Fit after  self-cal, rms=1.032466Jy  sigma=0.006317
! 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.349 mas, bmaj=2.618 mas, bpa=2.701 degrees
! Estimated noise=1113.87 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 = 1.2764 Jy
! Component: 100  -  total flux cleaned = 1.62431 Jy
! Total flux subtracted in 100 components = 1.62431 Jy
! Clean residual min=-0.028863 max=0.155209 Jy/beam
! Clean residual mean=0.000765 rms=0.008909 Jy/beam
! Combined flux in latest and established models = 1.62432 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 1.62432 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.712800Jy  sigma=0.003364
! Fit after  self-cal, rms=0.712495Jy  sigma=0.003362
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.171493 Jy
! Component: 100  -  total flux cleaned = 0.25909 Jy
! Total flux subtracted in 100 components = 0.25909 Jy
! Clean residual min=-0.021260 max=0.044752 Jy/beam
! Clean residual mean=0.000456 rms=0.005632 Jy/beam
! Combined flux in latest and established models = 1.88341 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 13 components and 1.88341 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.660063Jy  sigma=0.002734
! Fit after  self-cal, rms=0.659616Jy  sigma=0.002732
! Inverting map 
! Added new window around map position (-2.5, -0.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0560765 Jy
! Component: 100  -  total flux cleaned = 0.0949283 Jy
! Total flux subtracted in 100 components = 0.0949283 Jy
! Clean residual min=-0.020768 max=0.026369 Jy/beam
! Clean residual mean=0.000344 rms=0.005017 Jy/beam
! Combined flux in latest and established models = 1.97833 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 27 components and 1.97833 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.652222Jy  sigma=0.002628
! Fit after  self-cal, rms=0.652020Jy  sigma=0.002627
! 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.985 mas, bmaj=4.327 mas, bpa=-10.2 degrees
! Estimated noise=314.746 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 (-7.5, -1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0558911 Jy
! Component: 100  -  total flux cleaned = 0.0905673 Jy
! Component: 150  -  total flux cleaned = 0.114229 Jy
! Component: 200  -  total flux cleaned = 0.131318 Jy
! Total flux subtracted in 200 components = 0.131318 Jy
! Clean residual min=-0.017183 max=0.038364 Jy/beam
! Clean residual mean=0.001053 rms=0.006620 Jy/beam
! Combined flux in latest and established models = 2.10965 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 53 components and 2.10965 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.647466Jy  sigma=0.002555
! Fit after  self-cal, rms=0.646967Jy  sigma=0.002552
! Inverting map 
! Added new window around map position (-24, -7.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0416472 Jy
! Component: 100  -  total flux cleaned = 0.0671698 Jy
! Component: 150  -  total flux cleaned = 0.0848472 Jy
! Component: 200  -  total flux cleaned = 0.0949999 Jy
! Total flux subtracted in 200 components = 0.0949999 Jy
! Clean residual min=-0.015726 max=0.024625 Jy/beam
! Clean residual mean=0.000631 rms=0.004796 Jy/beam
! Combined flux in latest and established models = 2.20465 Jy
! Performing phase self-cal
! Adding 69 model components to the UV plane model.
! The established model now contains 119 components and 2.20465 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.644099Jy  sigma=0.002514
! Fit after  self-cal, rms=0.643718Jy  sigma=0.002510
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 186 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        1.00     GC        1.02     HN        0.98     
!   KK        0.99     KP        0.97     LA        0.95     MK        0.96     
!   NL        0.99     NY        0.92     ON        0.95     OV        0.99     
!   PT        1.04     SC        1.06     WF        0.97     MC        1.02     
!   GN        0.94     
! 
!  A total of 336 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        1.03     GC        1.01     HN        0.97     
!   KK        1.05     KP        0.99     LA        0.92     MK        0.97     
!   NL        0.95     NY        0.98     ON        0.99     OV        1.00     
!   PT        1.01     SC        1.13     WF        0.97     MC        0.95     
!   GN        0.99     
! 
!  A total of 63 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.91     FD        1.01     GC        1.00     HN        0.97     
!   KK        1.05     KP        1.02     LA        0.92     MK        0.95     
!   NL        0.97     NY        0.94     ON        1.00     OV        0.99     
!   PT        0.99     SC        1.06     WF        0.96     MC        1.04     
!   GN        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 186 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        1.01     GC        0.98     HN        1.03     
!   KK        0.99     KP        0.99     LA        1.03     MK        1.03     
!   NL        0.97     NY        0.95     ON        0.97     OV        0.98     
!   PT        1.01     SC        1.07     WF        0.99     MC        0.93     
!   GN        0.95     
! 
!  A total of 336 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.94     FD        1.03     GC        0.97     HN        1.02     
!   KK        1.04     KP        1.00     LA        0.98     MK        1.06     
!   NL        0.95     NY        0.99     ON        0.99     OV        0.99     
!   PT        0.97     SC        1.15     WF        0.99     MC        1.01     
!   GN        0.98     
! 
!  A total of 63 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.91     FD        1.00     GC        0.97     HN        1.03     
!   KK        1.04     KP        1.02     LA        0.97     MK        1.04     
!   NL        0.96     NY        1.01     ON        0.98     OV        0.97     
!   PT        0.97     SC        1.08     WF        0.98     MC        1.23     
!   GN        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 186 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.04     GC        1.03     HN        0.98     
!   KK        1.00     KP        1.00     LA        1.00     MK        0.96     
!   NL        0.98     NY        0.94     ON        1.01     OV        0.98     
!   PT        1.02     SC        1.07     WF        0.99     MC        0.76     
!   GN        0.96     
! 
!  A total of 336 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.08     GC        1.02     HN        0.99     
!   KK        1.04     KP        1.02     LA        0.97     MK        0.99     
!   NL        0.96     NY        1.01     ON        1.01     OV        0.99     
!   PT        0.97     SC        1.15     WF        0.99     MC        0.89     
!   GN        0.97     
! 
!  A total of 63 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.93     FD        1.06     GC        1.03     HN        0.98     
!   KK        1.05     KP        0.99     LA        0.97     MK        0.96     
!   NL        0.98     NY        0.99     ON        0.96     OV        0.98     
!   PT        0.97     SC        1.09     WF        1.02     MC        1.11     
!   GN        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 186 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.01     GC        1.02     HN        0.99     
!   KK        0.98     KP        1.03     LA        1.00     MK        0.98     
!   NL        0.97     NY        0.97     ON        0.95     OV        1.00     
!   PT        1.03     SC        1.05     WF        0.97     MC        1.14     
!   GN        0.94     
! 
!  A total of 336 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.03     GC        0.99     HN        0.98     
!   KK        1.04     KP        1.04     LA        0.97     MK        0.99     
!   NL        0.95     NY        1.00     ON        1.01     OV        1.01     
!   PT        0.99     SC        1.11     WF        0.98     MC        1.39     
!   GN        0.98     
! 
!  A total of 63 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        1.02     GC        0.99     HN        0.97     
!   KK        1.05     KP        1.03     LA        0.95     MK        0.97     
!   NL        0.96     NY        0.98     ON        0.99     OV        1.00     
!   PT        0.98     SC        1.05     WF        0.97     MC        0.87     
!   GN        1.00*    
! 
! 
! Fit before self-cal, rms=0.643718Jy  sigma=0.002510
! Fit after  self-cal, rms=0.626358Jy  sigma=0.002442
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.036 mas, bmaj=4.408 mas, bpa=-10.15 degrees
! Estimated noise=314.997 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 (-32, -7.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0200131 Jy
! Component: 100  -  total flux cleaned = 0.0311761 Jy
! Component: 150  -  total flux cleaned = 0.0398316 Jy
! Component: 200  -  total flux cleaned = 0.0478573 Jy
! Total flux subtracted in 200 components = 0.0478573 Jy
! Clean residual min=-0.007133 max=0.009428 Jy/beam
! Clean residual mean=0.000413 rms=0.002326 Jy/beam
! Combined flux in latest and established models = 2.25251 Jy
! Performing phase self-cal
! Adding 58 model components to the UV plane model.
! The established model now contains 174 components and 2.25251 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.625437Jy  sigma=0.002430
! Fit after  self-cal, rms=0.625603Jy  sigma=0.002429
! 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.625603Jy  sigma=0.002429
! Fit after  self-cal, rms=0.543249Jy  sigma=0.002421
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.037 mas, bmaj=4.412 mas, bpa=-10.28 degrees
! Estimated noise=314.797 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0074641 Jy
! Component: 100  -  total flux cleaned = 0.0141124 Jy
! Component: 150  -  total flux cleaned = 0.020033 Jy
! Component: 200  -  total flux cleaned = 0.0249327 Jy
! Total flux subtracted in 200 components = 0.0249327 Jy
! Clean residual min=-0.006124 max=0.008299 Jy/beam
! Clean residual mean=0.000328 rms=0.001822 Jy/beam
! Combined flux in latest and established models = 2.27744 Jy
selfcal
! Performing phase self-cal
! Adding 48 model components to the UV plane model.
! The established model now contains 205 components and 2.27744 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.542938Jy  sigma=0.002417
! Fit after  self-cal, rms=0.542958Jy  sigma=0.002417
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 (-39.5, -13).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00800569 Jy
! Component: 100  -  total flux cleaned = 0.0130332 Jy
! Component: 150  -  total flux cleaned = 0.0177808 Jy
! Component: 200  -  total flux cleaned = 0.0217639 Jy
! Total flux subtracted in 200 components = 0.0217639 Jy
! Clean residual min=-0.005217 max=0.006538 Jy/beam
! Clean residual mean=0.000250 rms=0.001485 Jy/beam
! Combined flux in latest and established models = 2.29921 Jy
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 232 components and 2.29921 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.542758Jy  sigma=0.002415
! Fit after  self-cal, rms=0.542755Jy  sigma=0.002414
! Inverting map 
! Added new window around map position (-27.5, -17).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00512491 Jy
! Component: 100  -  total flux cleaned = 0.00883261 Jy
! Component: 150  -  total flux cleaned = 0.0122528 Jy
! Component: 200  -  total flux cleaned = 0.0151856 Jy
! Total flux subtracted in 200 components = 0.0151856 Jy
! Clean residual min=-0.004564 max=0.005366 Jy/beam
! Clean residual mean=0.000199 rms=0.001310 Jy/beam
! Combined flux in latest and established models = 2.31439 Jy
! Performing phase self-cal
! Adding 50 model components to the UV plane model.
! The established model now contains 260 components and 2.31439 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.542648Jy  sigma=0.002413
! Fit after  self-cal, rms=0.542638Jy  sigma=0.002413
! 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.542638Jy  sigma=0.002413
! Fit after  self-cal, rms=0.542867Jy  sigma=0.002413
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.039 mas, bmaj=4.412 mas, bpa=-10.24 degrees
! Estimated noise=314.554 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000645886 Jy
! Component: 100  -  total flux cleaned = 0.00371991 Jy
! Component: 150  -  total flux cleaned = 0.00594459 Jy
! Component: 200  -  total flux cleaned = 0.0078458 Jy
! Total flux subtracted in 200 components = 0.0078458 Jy
! Clean residual min=-0.003939 max=0.005553 Jy/beam
! Clean residual mean=0.000178 rms=0.001154 Jy/beam
! Combined flux in latest and established models = 2.32224 Jy
selfcal
! Performing phase self-cal
! Adding 46 model components to the UV plane model.
! The established model now contains 277 components and 2.32224 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.542790Jy  sigma=0.002412
! Fit after  self-cal, rms=0.542796Jy  sigma=0.002412
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 (-14, -5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00428551 Jy
! Component: 100  -  total flux cleaned = 0.00670895 Jy
! Component: 150  -  total flux cleaned = 0.00851125 Jy
! Component: 200  -  total flux cleaned = 0.01026 Jy
! Total flux subtracted in 200 components = 0.01026 Jy
! Clean residual min=-0.003761 max=0.004724 Jy/beam
! Clean residual mean=0.000139 rms=0.001055 Jy/beam
! Combined flux in latest and established models = 2.3325 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 296 components and 2.3325 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.542723Jy  sigma=0.002411
! Fit after  self-cal, rms=0.542723Jy  sigma=0.002411
! Inverting map 
! Added new window around map position (-40.5, 7.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00445065 Jy
! Component: 100  -  total flux cleaned = 0.00680026 Jy
! Component: 150  -  total flux cleaned = 0.00863157 Jy
! Component: 200  -  total flux cleaned = 0.0101334 Jy
! Total flux subtracted in 200 components = 0.0101334 Jy
! Clean residual min=-0.003506 max=0.003519 Jy/beam
! Clean residual mean=0.000091 rms=0.000946 Jy/beam
! Combined flux in latest and established models = 2.34263 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 316 components and 2.34263 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.542665Jy  sigma=0.002411
! Fit after  self-cal, rms=0.542661Jy  sigma=0.002411
! 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.542661Jy  sigma=0.002411
! Fit after  self-cal, rms=0.542307Jy  sigma=0.002411
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.11 mas, bmaj=9.968 mas, bpa=-13.61 degrees
! Estimated noise=423.331 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00450266 Jy
! Component: 100  -  total flux cleaned = 0.0076588 Jy
! Component: 150  -  total flux cleaned = 0.0102738 Jy
! Component: 200  -  total flux cleaned = 0.0124573 Jy
! Total flux subtracted in 200 components = 0.0124573 Jy
! Clean residual min=-0.003386 max=0.005242 Jy/beam
! Clean residual mean=0.000110 rms=0.001336 Jy/beam
! Combined flux in latest and established models = 2.35509 Jy
selfcal
! Performing phase self-cal
! Adding 42 model components to the UV plane model.
! The established model now contains 353 components and 2.35509 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.542280Jy  sigma=0.002410
! Fit after  self-cal, rms=0.542292Jy  sigma=0.002410
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.00170472 Jy
! Component: 100  -  total flux cleaned = 0.00339371 Jy
! Component: 150  -  total flux cleaned = 0.00482893 Jy
! Component: 200  -  total flux cleaned = 0.00605551 Jy
! Total flux subtracted in 200 components = 0.00605551 Jy
! Clean residual min=-0.003174 max=0.004863 Jy/beam
! Clean residual mean=0.000049 rms=0.001219 Jy/beam
! Combined flux in latest and established models = 2.36115 Jy
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 373 components and 2.36115 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.542285Jy  sigma=0.002410
! Fit after  self-cal, rms=0.542283Jy  sigma=0.002410
! 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=3.041 mas, bmaj=4.413 mas, bpa=-10.2 degrees
! Estimated noise=314.395 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.041 x 4.413 at -10.2 degrees (North through East)
! Clean map  min=-0.002762  max=1.7338 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.542283Jy  sigma=0.002410
! Fit after  self-cal, rms=0.555604Jy  sigma=0.002268
! Inverting map and beam 
! Estimated beam: bmin=3.041 mas, bmaj=4.412 mas, bpa=-10.2 degrees
! Estimated noise=314.239 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00185496 Jy
! Component: 100  -  total flux cleaned = -0.00185534 Jy
! Component: 150  -  total flux cleaned = -0.00169884 Jy
! Component: 200  -  total flux cleaned = -0.0015515 Jy
! Total flux subtracted in 200 components = -0.0015515 Jy
! Clean residual min=-0.003015 max=0.003170 Jy/beam
! Clean residual mean=0.000028 rms=0.000785 Jy/beam
! Combined flux in latest and established models = 2.35959 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 386 components and 2.35959 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.555576Jy  sigma=0.002268
! Fit after  self-cal, rms=0.555568Jy  sigma=0.002268
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -2.78703e-05 Jy
! Component: 100  -  total flux cleaned = 0.00018077 Jy
! Component: 150  -  total flux cleaned = 0.000313385 Jy
! Component: 200  -  total flux cleaned = 0.000378052 Jy
! Total flux subtracted in 200 components = 0.000378052 Jy
! Clean residual min=-0.002918 max=0.003168 Jy/beam
! Clean residual mean=0.000028 rms=0.000775 Jy/beam
! Combined flux in latest and established models = 2.35997 Jy
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 395 components and 2.35997 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.555545Jy  sigma=0.002268
! Fit after  self-cal, rms=0.555541Jy  sigma=0.002268
! 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.555541Jy  sigma=0.002268
! Fit after  self-cal, rms=0.556671Jy  sigma=0.002268
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.372 mas, bmaj=2.639 mas, bpa=3.98 degrees
! Estimated noise=1132.32 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.27713 Jy
! Component: 100  -  total flux cleaned = 1.62499 Jy
! Component: 150  -  total flux cleaned = 1.79276 Jy
! Component: 200  -  total flux cleaned = 1.8786 Jy
! Total flux subtracted in 200 components = 1.8786 Jy
! Clean residual min=-0.015198 max=0.041865 Jy/beam
! Clean residual mean=0.000463 rms=0.004433 Jy/beam
! Combined flux in latest and established models = 1.8786 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 11 model components to the UV plane model.
! The established model now contains 11 components and 1.8786 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.041 mas, bmaj=4.413 mas, bpa=-10.17 degrees
! Estimated noise=314.179 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.0872295 Jy
! Component: 100  -  total flux cleaned = 0.144027 Jy
! Component: 150  -  total flux cleaned = 0.186327 Jy
! Component: 200  -  total flux cleaned = 0.219759 Jy
! Total flux subtracted in 200 components = 0.219759 Jy
! Clean residual min=-0.009608 max=0.020009 Jy/beam
! Clean residual mean=0.001142 rms=0.004565 Jy/beam
! Combined flux in latest and established models = 2.09836 Jy
! Adding 54 model components to the UV plane model.
! The established model now contains 60 components and 2.09836 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0272605 Jy
! Component: 100  -  total flux cleaned = 0.0500287 Jy
! Component: 150  -  total flux cleaned = 0.0694551 Jy
! Component: 200  -  total flux cleaned = 0.0862625 Jy
! Total flux subtracted in 200 components = 0.0862625 Jy
! Clean residual min=-0.007166 max=0.010496 Jy/beam
! Clean residual mean=0.000757 rms=0.002903 Jy/beam
! Combined flux in latest and established models = 2.18462 Jy
! Adding 87 model components to the UV plane model.
! The established model now contains 136 components and 2.18462 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.11 mas, bmaj=9.969 mas, bpa=-13.59 degrees
! Estimated noise=422.961 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0332836 Jy
! Component: 100  -  total flux cleaned = 0.0577202 Jy
! Component: 150  -  total flux cleaned = 0.0768265 Jy
! Component: 200  -  total flux cleaned = 0.0922198 Jy
! Total flux subtracted in 200 components = 0.0922198 Jy
! Clean residual min=-0.007635 max=0.009359 Jy/beam
! Clean residual mean=0.000988 rms=0.003352 Jy/beam
! Combined flux in latest and established models = 2.27684 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.0125997 Jy
! Component: 100  -  total flux cleaned = 0.0231055 Jy
! Component: 150  -  total flux cleaned = 0.0320331 Jy
! Component: 200  -  total flux cleaned = 0.039663 Jy
! Total flux subtracted in 200 components = 0.039663 Jy
! Clean residual min=-0.005089 max=0.005955 Jy/beam
! Clean residual mean=0.000516 rms=0.002069 Jy/beam
! Combined flux in latest and established models = 2.3165 Jy
! Adding 252 model components to the UV plane model.
! The established model now contains 368 components and 2.3165 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.041 mas, bmaj=4.413 mas, bpa=-10.17 degrees
! Estimated noise=314.179 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00377348 Jy
! Component: 100  -  total flux cleaned = 0.00559511 Jy
! Component: 150  -  total flux cleaned = 0.00855808 Jy
! Component: 200  -  total flux cleaned = 0.0105282 Jy
! Total flux subtracted in 200 components = 0.0105282 Jy
! Clean residual min=-0.003824 max=0.003724 Jy/beam
! Clean residual mean=0.000158 rms=0.001006 Jy/beam
! Combined flux in latest and established models = 2.32703 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 390 components and 2.32703 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.556880Jy  sigma=0.002270
! Fit after  self-cal, rms=0.556867Jy  sigma=0.002269
wmodel J1800+7828_S_1998_10_01_pus_map.mod
! Writing 390 model components to file: J1800+7828_S_1998_10_01_pus_map.mod
wobs J1800+7828_S_1998_10_01_pus_uvs.fits
! Writing UV FITS file: J1800+7828_S_1998_10_01_pus_uvs.fits
wwins J1800+7828_S_1998_10_01_pus_map.win
! wwins: Wrote 9 windows to J1800+7828_S_1998_10_01_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000124149 Jy
! Component: 100  -  total flux cleaned = 0.000631543 Jy
! Component: 150  -  total flux cleaned = 0.00134755 Jy
! Component: 200  -  total flux cleaned = 0.00209227 Jy
! Component: 250  -  total flux cleaned = 0.00259187 Jy
! Component: 300  -  total flux cleaned = 0.00302381 Jy
! Component: 350  -  total flux cleaned = 0.00360409 Jy
! Component: 400  -  total flux cleaned = 0.0042233 Jy
! Component: 450  -  total flux cleaned = 0.00467902 Jy
! Component: 500  -  total flux cleaned = 0.00527627 Jy
! Component: 550  -  total flux cleaned = 0.00591112 Jy
! Component: 600  -  total flux cleaned = 0.0063907 Jy
! Component: 650  -  total flux cleaned = 0.00691001 Jy
! Component: 700  -  total flux cleaned = 0.00723537 Jy
! Component: 750  -  total flux cleaned = 0.00764801 Jy
! Component: 800  -  total flux cleaned = 0.00791952 Jy
! Component: 850  -  total flux cleaned = 0.00827787 Jy
! Component: 900  -  total flux cleaned = 0.00867621 Jy
! Component: 950  -  total flux cleaned = 0.0089825 Jy
! Component: 1000  -  total flux cleaned = 0.0093281 Jy
! Component: 1050  -  total flux cleaned = 0.00962697 Jy
! Component: 1100  -  total flux cleaned = 0.00975463 Jy
! Component: 1150  -  total flux cleaned = 0.0100489 Jy
! Component: 1200  -  total flux cleaned = 0.0105051 Jy
! Component: 1250  -  total flux cleaned = 0.0109152 Jy
! Component: 1300  -  total flux cleaned = 0.0110364 Jy
! Component: 1350  -  total flux cleaned = 0.0112377 Jy
! Component: 1400  -  total flux cleaned = 0.0115569 Jy
! Component: 1450  -  total flux cleaned = 0.0117143 Jy
! Component: 1500  -  total flux cleaned = 0.0119877 Jy
! Component: 1550  -  total flux cleaned = 0.0121815 Jy
! Component: 1600  -  total flux cleaned = 0.0123358 Jy
! Component: 1650  -  total flux cleaned = 0.0126788 Jy
! Component: 1700  -  total flux cleaned = 0.0128679 Jy
! Component: 1750  -  total flux cleaned = 0.0130183 Jy
! Component: 1800  -  total flux cleaned = 0.0132795 Jy
! Component: 1850  -  total flux cleaned = 0.0136494 Jy
! Component: 1900  -  total flux cleaned = 0.0137225 Jy
! Component: 1950  -  total flux cleaned = 0.0139417 Jy
! Component: 2000  -  total flux cleaned = 0.014123 Jy
! Total flux subtracted in 2048 components = 0.0141951 Jy
! Clean residual min=-0.001915 max=0.002074 Jy/beam
! Clean residual mean=0.000094 rms=0.000691 Jy/beam
! Combined flux in latest and established models = 2.34123 Jy
keep
! Adding 135 model components to the UV plane model.
! The established model now contains 522 components and 2.34123 Jy
![Exited script file: muppet]
wmap "J1800+7828_S_1998_10_01_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.041 x 4.413 at -10.17 degrees (North through East)
! Clean map  min=-0.0027718  max=1.7339 Jy/beam
! Writing clean map to FITS file: J1800+7828_S_1998_10_01_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.73391 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000688966 
device "J1800+7828_S_1998_10_01_pus\_map.eps/VPS"
! Attempting to open device: 'J1800+7828_S_1998_10_01_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.119205 0.119205 0.238409 0.476819 0.953637 1.90727 3.81455 7.6291 15.2582 30.5164 61.0328
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.002 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.733 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.041 x 4.413 at -10.17 degrees (North through East)
! Clean map  min=-0.0027718  max=1.7339 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1800+7828_S_1998_10_01_pus\_map.gif/vgif"
! Attempting to open device: 'J1800+7828_S_1998_10_01_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1800+7828_S_1998_10_01_pus_uvs.log closed on Thu Feb  7 17:27:06 2008