! Started logfile: J0017+8135_S_1999_05_10_pus_uvs.log on Mon Jan 21 17:21:15 2008
obs J0017+8135_S_1999_05_10_pus_uva.fits
! Reading UV FITS file: J0017+8135_S_1999_05_10_pus_uva.fits
! AN table 1: 57 integrations on 153 of 153 possible baselines.
! AN table 2: 384 integrations on 153 of 153 possible baselines.
! AN table 3: 217 integrations on 153 of 153 possible baselines.
! AN table 4: 89 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.330332 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0017+8135
! 
! 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.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1998 lines of history.
! 
! Reading 151016 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 J0017+8135_S_1999_05_10_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 426 telescope corrections were flagged in sub-array 1.
!  A total of 3915 telescope corrections were flagged in sub-array 2.
!  A total of 2408 telescope corrections were flagged in sub-array 3.
!  A total of 283 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 426 telescope corrections were flagged in sub-array 1.
!  A total of 3915 telescope corrections were flagged in sub-array 2.
!  A total of 2408 telescope corrections were flagged in sub-array 3.
!  A total of 283 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 426 telescope corrections were flagged in sub-array 1.
!  A total of 3915 telescope corrections were flagged in sub-array 2.
!  A total of 2408 telescope corrections were flagged in sub-array 3.
!  A total of 283 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 452 telescope corrections were flagged in sub-array 1.
!  A total of 3991 telescope corrections were flagged in sub-array 2.
!  A total of 2491 telescope corrections were flagged in sub-array 3.
!  A total of 370 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.672697Jy  sigma=0.004546
! Fit after  self-cal, rms=0.599650Jy  sigma=0.004022
! 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.035 mas, bmaj=2.236 mas, bpa=18.25 degrees
! Estimated noise=627.184 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.37394 Jy
! Component: 100  -  total flux cleaned = 0.460568 Jy
! Total flux subtracted in 100 components = 0.460568 Jy
! Clean residual min=-0.011242 max=0.048516 Jy/beam
! Clean residual mean=0.000157 rms=0.003239 Jy/beam
! Combined flux in latest and established models = 0.460568 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.460568 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.344429Jy  sigma=0.001802
! Fit after  self-cal, rms=0.344418Jy  sigma=0.001802
! Inverting map 
! Added new window around map position (-1, -5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.046832 Jy
! Component: 100  -  total flux cleaned = 0.0756912 Jy
! Total flux subtracted in 100 components = 0.0756912 Jy
! Clean residual min=-0.010231 max=0.035971 Jy/beam
! Clean residual mean=0.000117 rms=0.002738 Jy/beam
! Combined flux in latest and established models = 0.53626 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 20 components and 0.53626 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.334753Jy  sigma=0.001663
! Fit after  self-cal, rms=0.334336Jy  sigma=0.001659
! Inverting map 
! Added new window around map position (-1.5, -9).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0330603 Jy
! Component: 100  -  total flux cleaned = 0.0543917 Jy
! Total flux subtracted in 100 components = 0.0543917 Jy
! Clean residual min=-0.009817 max=0.012886 Jy/beam
! Clean residual mean=0.000095 rms=0.002410 Jy/beam
! Combined flux in latest and established models = 0.590651 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 33 components and 0.590651 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.329137Jy  sigma=0.001581
! Fit after  self-cal, rms=0.328835Jy  sigma=0.001579
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0189334 Jy
! Component: 100  -  total flux cleaned = 0.0342973 Jy
! Total flux subtracted in 100 components = 0.0342973 Jy
! Clean residual min=-0.009484 max=0.010067 Jy/beam
! Clean residual mean=0.000078 rms=0.002266 Jy/beam
! Combined flux in latest and established models = 0.624949 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 37 components and 0.624949 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.326779Jy  sigma=0.001545
! Fit after  self-cal, rms=0.326699Jy  sigma=0.001545
! 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.631 mas, bmaj=2.795 mas, bpa=18.89 degrees
! Estimated noise=258.587 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.0253002 Jy
! Component: 100  -  total flux cleaned = 0.0427174 Jy
! Component: 150  -  total flux cleaned = 0.0553376 Jy
! Component: 200  -  total flux cleaned = 0.0647417 Jy
! Total flux subtracted in 200 components = 0.0647417 Jy
! Clean residual min=-0.004583 max=0.007691 Jy/beam
! Clean residual mean=0.000290 rms=0.001496 Jy/beam
! Combined flux in latest and established models = 0.68969 Jy
! Performing phase self-cal
! Adding 44 model components to the UV plane model.
! The established model now contains 65 components and 0.689691 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.324591Jy  sigma=0.001511
! Fit after  self-cal, rms=0.324445Jy  sigma=0.001509
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.98     GC        1.06     HH        1.00*    
!   HN        1.06     KK        1.08     KP        0.98     LA        0.99     
!   MC        1.00*    MK        0.96     NL        1.01     NY        1.00*    
!   ON        1.00*    OV        1.01     PT        1.00     SC        1.06     
!   WF        0.95     WZ        1.06     
! 
!  A total of 255 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.00     GC        1.05     HH        1.00*    
!   HN        1.02     KK        1.02     KP        1.48     LA        0.99     
!   MC        1.00     MK        0.94     NL        0.97     NY        0.97     
!   ON        0.98     OV        1.03     PT        1.01     SC        1.10     
!   WF        1.00     WZ        0.96     
! 
!  A total of 90 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.99     GC        1.04     HH        1.00*    
!   HN        1.01     KK        1.07     KP        1.43     LA        1.01     
!   MC        0.97     MK        0.95     NL        1.03     NY        0.95     
!   ON        0.98     OV        1.04     PT        1.00     SC        1.06     
!   WF        0.96     WZ        0.98     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        0.98     GC        1.06     HH        1.00*    
!   HN        1.02     KK        1.01     KP        0.94     LA        0.99     
!   MC        1.25     MK        0.98     NL        0.98     NY        0.99     
!   ON        0.94     OV        1.00     PT        0.99     SC        1.06     
!   WF        0.98     WZ        1.00     
! 
! 
! Correcting IF 2.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.03     GC        1.02     HH        1.00*    
!   HN        1.05     KK        1.08     KP        1.03     LA        0.96     
!   MC        1.00*    MK        1.02     NL        0.97     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        0.99     SC        1.08     
!   WF        0.96     WZ        1.02     
! 
!  A total of 255 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.04     GC        1.04     HH        1.00*    
!   HN        1.02     KK        0.94     KP        1.01     LA        0.96     
!   MC        0.99     MK        0.95     NL        0.99     NY        0.95     
!   ON        1.01     OV        0.99     PT        0.99     SC        1.12     
!   WF        0.98     WZ        0.96     
! 
!  A total of 90 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.04     GC        1.02     HH        1.00*    
!   HN        1.01     KK        1.06     KP        0.95     LA        0.96     
!   MC        1.05     MK        1.00     NL        1.04     NY        0.95     
!   ON        0.98     OV        0.99     PT        0.99     SC        1.09     
!   WF        0.98     WZ        0.99     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.02     GC        1.03     HH        1.00*    
!   HN        1.02     KK        1.00     KP        0.99     LA        0.94     
!   MC        1.01     MK        1.05     NL        0.97     NY        0.96     
!   ON        0.94     OV        0.96     PT        0.99     SC        1.07     
!   WF        1.02     WZ        0.97     
! 
! 
! Correcting IF 3.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.00     GC        1.02     HH        1.00*    
!   HN        1.03     KK        1.07     KP        1.00     LA        0.99     
!   MC        1.00*    MK        0.95     NL        0.95     NY        1.00*    
!   ON        1.00*    OV        0.97     PT        0.93     SC        1.09     
!   WF        0.97     WZ        1.01     
! 
!  A total of 255 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.00     GC        1.01     HH        1.00*    
!   HN        1.01     KK        0.99     KP        0.97     LA        0.98     
!   MC        1.65     MK        0.95     NL        0.95     NY        1.00     
!   ON        0.99     OV        0.97     PT        0.93     SC        1.07     
!   WF        1.00     WZ        0.91     
! 
!  A total of 90 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.99     GC        0.99     HH        1.00*    
!   HN        0.99     KK        1.03     KP        0.94     LA        0.97     
!   MC        0.60     MK        0.95     NL        1.01     NY        0.99     
!   ON        0.99     OV        0.97     PT        0.94     SC        1.06     
!   WF        0.93     WZ        0.95     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        0.99     GC        1.01     HH        1.00*    
!   HN        1.01     KK        0.99     KP        0.91     LA        0.96     
!   MC        0.62     MK        0.99     NL        0.99     NY        1.02     
!   ON        0.93     OV        0.96     PT        0.93     SC        1.07     
!   WF        1.01     WZ        5.64     
! 
! 
! Correcting IF 4.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.99     GC        1.02     HH        1.00*    
!   HN        1.02     KK        1.03     KP        1.00     LA        0.97     
!   MC        1.00*    MK        0.99     NL        0.96     NY        1.00*    
!   ON        1.00*    OV        0.94     PT        0.98     SC        1.09     
!   WF        0.99     WZ        1.00*    
! 
!  A total of 264 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.93     FD        0.98     GC        1.01     HH        1.00*    
!   HN        1.00     KK        0.98     KP        0.98     LA        0.97     
!   MC        1.00     MK        0.98     NL        0.96     NY        1.00     
!   ON        1.01     OV        0.93     PT        0.99     SC        1.07     
!   WF        0.99     WZ        1.00*    
! 
!  A total of 87 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.93     FD        0.97     GC        0.99     HH        1.00*    
!   HN        0.98     KK        1.04     KP        0.89     LA        0.96     
!   MC        1.31     MK        0.97     NL        1.01     NY        0.98     
!   ON        1.01     OV        0.94     PT        0.99     SC        1.07     
!   WF        0.96     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.94     FD        0.96     GC        1.01     HH        1.00*    
!   HN        0.99     KK        0.99     KP        0.88     LA        0.97     
!   MC        0.90     MK        0.97     NL        1.00     NY        1.02     
!   ON        0.93     OV        0.93     PT        0.96     SC        1.05     
!   WF        0.95     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.324445Jy  sigma=0.001509
! Fit after  self-cal, rms=0.343744Jy  sigma=0.001442
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.653 mas, bmaj=2.801 mas, bpa=18.13 degrees
! Estimated noise=256.98 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, -11.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00755678 Jy
! Component: 100  -  total flux cleaned = 0.0122145 Jy
! Component: 150  -  total flux cleaned = 0.0154064 Jy
! Component: 200  -  total flux cleaned = 0.0168482 Jy
! Total flux subtracted in 200 components = 0.0168482 Jy
! Clean residual min=-0.002205 max=0.003038 Jy/beam
! Clean residual mean=0.000137 rms=0.000626 Jy/beam
! Combined flux in latest and established models = 0.706539 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 85 components and 0.706539 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.343549Jy  sigma=0.001440
! Fit after  self-cal, rms=0.344128Jy  sigma=0.001439
! 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.344128Jy  sigma=0.001439
! Fit after  self-cal, rms=0.357979Jy  sigma=0.001434
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.663 mas, bmaj=2.797 mas, bpa=17.16 degrees
! Estimated noise=258.088 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00387395 Jy
! Component: 100  -  total flux cleaned = 0.00650887 Jy
! Component: 150  -  total flux cleaned = 0.00791371 Jy
! Component: 200  -  total flux cleaned = 0.00854367 Jy
! Total flux subtracted in 200 components = 0.00854367 Jy
! Clean residual min=-0.002001 max=0.002234 Jy/beam
! Clean residual mean=0.000089 rms=0.000551 Jy/beam
! Combined flux in latest and established models = 0.715083 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 93 components and 0.715083 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.357897Jy  sigma=0.001433
! Fit after  self-cal, rms=0.358087Jy  sigma=0.001433
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.000837759 Jy
! Component: 100  -  total flux cleaned = 0.00144829 Jy
! Component: 150  -  total flux cleaned = 0.00186547 Jy
! Component: 200  -  total flux cleaned = 0.0022803 Jy
! Total flux subtracted in 200 components = 0.0022803 Jy
! Clean residual min=-0.001968 max=0.002215 Jy/beam
! Clean residual mean=0.000081 rms=0.000542 Jy/beam
! Combined flux in latest and established models = 0.717363 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 96 components and 0.717363 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.358064Jy  sigma=0.001433
! Fit after  self-cal, rms=0.358064Jy  sigma=0.001433
! 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.358064Jy  sigma=0.001433
! Fit after  self-cal, rms=0.360965Jy  sigma=0.001426
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.657 mas, bmaj=2.792 mas, bpa=16.69 degrees
! Estimated noise=258.241 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0022302 Jy
! Component: 100  -  total flux cleaned = 0.00360599 Jy
! Component: 150  -  total flux cleaned = 0.00411244 Jy
! Component: 200  -  total flux cleaned = 0.00455542 Jy
! Total flux subtracted in 200 components = 0.00455542 Jy
! Clean residual min=-0.001668 max=0.002083 Jy/beam
! Clean residual mean=0.000063 rms=0.000497 Jy/beam
! Combined flux in latest and established models = 0.721919 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 103 components and 0.721918 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.360939Jy  sigma=0.001426
! Fit after  self-cal, rms=0.360992Jy  sigma=0.001426
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.000560588 Jy
! Component: 100  -  total flux cleaned = 0.000841744 Jy
! Component: 150  -  total flux cleaned = 0.00102608 Jy
! Component: 200  -  total flux cleaned = 0.00122005 Jy
! Total flux subtracted in 200 components = 0.00122005 Jy
! Clean residual min=-0.001703 max=0.002058 Jy/beam
! Clean residual mean=0.000059 rms=0.000495 Jy/beam
! Combined flux in latest and established models = 0.723139 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 111 components and 0.723138 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.360983Jy  sigma=0.001426
! Fit after  self-cal, rms=0.360985Jy  sigma=0.001426
! 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.360985Jy  sigma=0.001426
! Fit after  self-cal, rms=0.361178Jy  sigma=0.001426
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.913 mas, bmaj=8.043 mas, bpa=17.96 degrees
! Estimated noise=386.024 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00270709 Jy
! Component: 100  -  total flux cleaned = 0.00396245 Jy
! Component: 150  -  total flux cleaned = 0.00464118 Jy
! Component: 200  -  total flux cleaned = 0.00501928 Jy
! Total flux subtracted in 200 components = 0.00501928 Jy
! Clean residual min=-0.003093 max=0.002999 Jy/beam
! Clean residual mean=0.000160 rms=0.001002 Jy/beam
! Combined flux in latest and established models = 0.728158 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 121 components and 0.728158 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.361174Jy  sigma=0.001426
! Fit after  self-cal, rms=0.361181Jy  sigma=0.001426
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.000215988 Jy
! Component: 100  -  total flux cleaned = 0.000299819 Jy
! Component: 150  -  total flux cleaned = 0.000354372 Jy
! Component: 200  -  total flux cleaned = 0.000413067 Jy
! Total flux subtracted in 200 components = 0.000413067 Jy
! Clean residual min=-0.003131 max=0.002977 Jy/beam
! Clean residual mean=0.000155 rms=0.001011 Jy/beam
! Combined flux in latest and established models = 0.728571 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 121 components and 0.728571 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.361182Jy  sigma=0.001426
! Fit after  self-cal, rms=0.361180Jy  sigma=0.001426
! 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.656 mas, bmaj=2.787 mas, bpa=16.74 degrees
! Estimated noise=258.536 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.656 x 2.787 at 16.74 degrees (North through East)
! Clean map  min=-0.0015247  max=0.49475 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=2.051 mas, bmaj=2.225 mas, bpa=18.63 degrees
! Estimated noise=635.284 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.373596 Jy
! Component: 100  -  total flux cleaned = 0.464855 Jy
! Component: 150  -  total flux cleaned = 0.515949 Jy
! Component: 200  -  total flux cleaned = 0.551912 Jy
! Total flux subtracted in 200 components = 0.551912 Jy
! Clean residual min=-0.006292 max=0.020589 Jy/beam
! Clean residual mean=0.000091 rms=0.001864 Jy/beam
! Combined flux in latest and established models = 0.551912 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 21 model components to the UV plane model.
! The established model now contains 21 components and 0.551912 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.656 mas, bmaj=2.787 mas, bpa=16.74 degrees
! Estimated noise=258.536 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.0492698 Jy
! Component: 100  -  total flux cleaned = 0.0815827 Jy
! Component: 150  -  total flux cleaned = 0.104215 Jy
! Component: 200  -  total flux cleaned = 0.12084 Jy
! Total flux subtracted in 200 components = 0.12084 Jy
! Clean residual min=-0.002642 max=0.009883 Jy/beam
! Clean residual mean=0.000261 rms=0.001219 Jy/beam
! Combined flux in latest and established models = 0.672752 Jy
! Adding 56 model components to the UV plane model.
! The established model now contains 62 components and 0.672752 Jy
! Inverting map 
! Added new window around map position (-3, -6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0124561 Jy
! Component: 100  -  total flux cleaned = 0.0218005 Jy
! Component: 150  -  total flux cleaned = 0.0288881 Jy
! Component: 200  -  total flux cleaned = 0.0343833 Jy
! Total flux subtracted in 200 components = 0.0343833 Jy
! Clean residual min=-0.001940 max=0.003448 Jy/beam
! Clean residual mean=0.000126 rms=0.000652 Jy/beam
! Combined flux in latest and established models = 0.707135 Jy
! Adding 50 model components to the UV plane model.
! The established model now contains 96 components and 0.707135 Jy
! Inverting map 
! Added new window around map position (0, 2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00439748 Jy
! Component: 100  -  total flux cleaned = 0.00790198 Jy
! Component: 150  -  total flux cleaned = 0.0107114 Jy
! Component: 200  -  total flux cleaned = 0.0129726 Jy
! Total flux subtracted in 200 components = 0.0129726 Jy
! Clean residual min=-0.001731 max=0.002266 Jy/beam
! Clean residual mean=0.000075 rms=0.000523 Jy/beam
! Combined flux in latest and established models = 0.720108 Jy
! Adding 37 model components to the UV plane model.
! The established model now contains 114 components and 0.720108 Jy
! Inverting map 
! Added new window around map position (21, -43).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00217349 Jy
! Component: 100  -  total flux cleaned = 0.00382642 Jy
! Component: 150  -  total flux cleaned = 0.00512261 Jy
! Component: 200  -  total flux cleaned = 0.0058152 Jy
! Total flux subtracted in 200 components = 0.0058152 Jy
! Clean residual min=-0.001723 max=0.002038 Jy/beam
! Clean residual mean=0.000051 rms=0.000491 Jy/beam
! Combined flux in latest and established models = 0.725923 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 124 components and 0.725923 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.913 mas, bmaj=8.043 mas, bpa=17.96 degrees
! Estimated noise=386.024 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00238937 Jy
! Component: 100  -  total flux cleaned = 0.00366424 Jy
! Component: 150  -  total flux cleaned = 0.00420248 Jy
! Component: 200  -  total flux cleaned = 0.00460231 Jy
! Total flux subtracted in 200 components = 0.00460231 Jy
! Clean residual min=-0.003178 max=0.002833 Jy/beam
! Clean residual mean=0.000118 rms=0.000963 Jy/beam
! Combined flux in latest and established models = 0.730525 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.000349774 Jy
! Component: 100  -  total flux cleaned = 0.000591844 Jy
! Component: 150  -  total flux cleaned = 0.000759608 Jy
! Component: 200  -  total flux cleaned = 0.000889336 Jy
! Total flux subtracted in 200 components = 0.000889336 Jy
! Clean residual min=-0.003136 max=0.002830 Jy/beam
! Clean residual mean=0.000102 rms=0.000947 Jy/beam
! Combined flux in latest and established models = 0.731415 Jy
! Adding 46 model components to the UV plane model.
! The established model now contains 160 components and 0.731415 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.656 mas, bmaj=2.787 mas, bpa=16.74 degrees
! Estimated noise=258.536 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00116552 Jy
! Component: 100  -  total flux cleaned = -0.001393 Jy
! Component: 150  -  total flux cleaned = -0.00147365 Jy
! Component: 200  -  total flux cleaned = -0.0014744 Jy
! Total flux subtracted in 200 components = -0.0014744 Jy
! Clean residual min=-0.001701 max=0.001973 Jy/beam
! Clean residual mean=0.000035 rms=0.000474 Jy/beam
! Combined flux in latest and established models = 0.72994 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 174 components and 0.72994 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.361164Jy  sigma=0.001425
! Fit after  self-cal, rms=0.361170Jy  sigma=0.001425
wmodel J0017+8135_S_1999_05_10_pus_map.mod
! Writing 174 model components to file: J0017+8135_S_1999_05_10_pus_map.mod
wobs J0017+8135_S_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J0017+8135_S_1999_05_10_pus_uvs.fits
wwins J0017+8135_S_1999_05_10_pus_map.win
! wwins: Wrote 7 windows to J0017+8135_S_1999_05_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=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000895595 Jy
! Component: 100  -  total flux cleaned = 0.00152163 Jy
! Component: 150  -  total flux cleaned = 0.00180453 Jy
! Component: 200  -  total flux cleaned = 0.00198696 Jy
! Component: 250  -  total flux cleaned = 0.00219298 Jy
! Component: 300  -  total flux cleaned = 0.00242253 Jy
! Component: 350  -  total flux cleaned = 0.00267562 Jy
! Component: 400  -  total flux cleaned = 0.00289654 Jy
! Component: 450  -  total flux cleaned = 0.00314084 Jy
! Component: 500  -  total flux cleaned = 0.0033015 Jy
! Component: 550  -  total flux cleaned = 0.00348693 Jy
! Component: 600  -  total flux cleaned = 0.00369589 Jy
! Component: 650  -  total flux cleaned = 0.0039021 Jy
! Component: 700  -  total flux cleaned = 0.00405505 Jy
! Component: 750  -  total flux cleaned = 0.00420651 Jy
! Component: 800  -  total flux cleaned = 0.00435638 Jy
! Component: 850  -  total flux cleaned = 0.00452977 Jy
! Component: 900  -  total flux cleaned = 0.00470109 Jy
! Component: 950  -  total flux cleaned = 0.0048465 Jy
! Component: 1000  -  total flux cleaned = 0.00501472 Jy
! Component: 1050  -  total flux cleaned = 0.00515745 Jy
! Component: 1100  -  total flux cleaned = 0.00532239 Jy
! Component: 1150  -  total flux cleaned = 0.00543883 Jy
! Component: 1200  -  total flux cleaned = 0.00553143 Jy
! Component: 1250  -  total flux cleaned = 0.00560033 Jy
! Component: 1300  -  total flux cleaned = 0.00566865 Jy
! Component: 1350  -  total flux cleaned = 0.00575909 Jy
! Component: 1400  -  total flux cleaned = 0.00582636 Jy
! Component: 1450  -  total flux cleaned = 0.00584885 Jy
! Component: 1500  -  total flux cleaned = 0.00593752 Jy
! Component: 1550  -  total flux cleaned = 0.0059815 Jy
! Component: 1600  -  total flux cleaned = 0.00600358 Jy
! Component: 1650  -  total flux cleaned = 0.00609072 Jy
! Component: 1700  -  total flux cleaned = 0.00611226 Jy
! Component: 1750  -  total flux cleaned = 0.0062195 Jy
! Component: 1800  -  total flux cleaned = 0.00621937 Jy
! Component: 1850  -  total flux cleaned = 0.00626171 Jy
! Component: 1900  -  total flux cleaned = 0.00630378 Jy
! Component: 1950  -  total flux cleaned = 0.00632469 Jy
! Component: 2000  -  total flux cleaned = 0.0063456 Jy
! Total flux subtracted in 2048 components = 0.00640795 Jy
! Clean residual min=-0.001239 max=0.001279 Jy/beam
! Clean residual mean=0.000010 rms=0.000396 Jy/beam
! Combined flux in latest and established models = 0.736348 Jy
keep
! Adding 171 model components to the UV plane model.
! The established model now contains 345 components and 0.736348 Jy
![Exited script file: muppet]
wmap "J0017+8135_S_1999_05_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.656 x 2.787 at 16.74 degrees (North through East)
! Clean map  min=-0.0014994  max=0.49501 Jy/beam
! Writing clean map to FITS file: J0017+8135_S_1999_05_10_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.495005 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000395981 
device "J0017+8135_S_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J0017+8135_S_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.239986 0.239986 0.479972 0.959944 1.91989 3.83977 7.67955 15.3591 30.7182 61.4364
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0011 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.495 
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.656 x 2.787 at 16.74 degrees (North through East)
! Clean map  min=-0.0014994  max=0.49501 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0017+8135_S_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J0017+8135_S_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0017+8135_S_1999_05_10_pus_uvs.log closed on Mon Jan 21 17:21:59 2008