! Started logfile: J0017+8135_S_2001_10_29_pus_uvs.log on Wed Feb 27 15:08:07 2008
obs J0017+8135_S_2001_10_29_pus_uva.fits
! Reading UV FITS file: J0017+8135_S_2001_10_29_pus_uva.fits
! AN table 1: 403 integrations on 153 of 153 possible baselines.
! AN table 2: 242 integrations on 153 of 153 possible baselines.
! AN table 3: 155 integrations on 153 of 153 possible baselines.
! AN table 4: 240 integrations on 153 of 153 possible baselines.
! AN table 5: 128 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.206061 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.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2604 lines of history.
! 
! Reading 147296 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_2001_10_29_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 4784 telescope corrections were flagged in sub-array 1.
!  A total of 3383 telescope corrections were flagged in sub-array 2.
!  A total of 1722 telescope corrections were flagged in sub-array 3.
!  A total of 2624 telescope corrections were flagged in sub-array 4.
!  A total of 1229 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 4784 telescope corrections were flagged in sub-array 1.
!  A total of 3383 telescope corrections were flagged in sub-array 2.
!  A total of 1722 telescope corrections were flagged in sub-array 3.
!  A total of 2624 telescope corrections were flagged in sub-array 4.
!  A total of 1229 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 4784 telescope corrections were flagged in sub-array 1.
!  A total of 3383 telescope corrections were flagged in sub-array 2.
!  A total of 1722 telescope corrections were flagged in sub-array 3.
!  A total of 2624 telescope corrections were flagged in sub-array 4.
!  A total of 1229 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 5230 telescope corrections were flagged in sub-array 1.
!  A total of 3521 telescope corrections were flagged in sub-array 2.
!  A total of 1852 telescope corrections were flagged in sub-array 3.
!  A total of 2828 telescope corrections were flagged in sub-array 4.
!  A total of 1400 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.676626Jy  sigma=0.004937
! Fit after  self-cal, rms=0.538266Jy  sigma=0.003891
! 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=1.815 mas, bmaj=1.85 mas, bpa=-6.677 degrees
! Estimated noise=550.516 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.372111 Jy
! Component: 100  -  total flux cleaned = 0.461839 Jy
! Total flux subtracted in 100 components = 0.461839 Jy
! Clean residual min=-0.009209 max=0.037944 Jy/beam
! Clean residual mean=0.000166 rms=0.002565 Jy/beam
! Combined flux in latest and established models = 0.46184 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.46184 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.264938Jy  sigma=0.001721
! Fit after  self-cal, rms=0.264915Jy  sigma=0.001720
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.042495 Jy
! Component: 100  -  total flux cleaned = 0.0664601 Jy
! Total flux subtracted in 100 components = 0.0664601 Jy
! Clean residual min=-0.009249 max=0.032998 Jy/beam
! Clean residual mean=0.000131 rms=0.002153 Jy/beam
! Combined flux in latest and established models = 0.5283 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 13 components and 0.5283 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.251003Jy  sigma=0.001590
! Fit after  self-cal, rms=0.250941Jy  sigma=0.001590
! 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.027941 Jy
! Component: 100  -  total flux cleaned = 0.0448442 Jy
! Total flux subtracted in 100 components = 0.0448442 Jy
! Clean residual min=-0.009067 max=0.029935 Jy/beam
! Clean residual mean=0.000109 rms=0.001918 Jy/beam
! Combined flux in latest and established models = 0.573144 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 20 components and 0.573144 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.244226Jy  sigma=0.001525
! Fit after  self-cal, rms=0.243951Jy  sigma=0.001523
! Inverting map 
! Added new window around map position (-1.5, -5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0285494 Jy
! Component: 100  -  total flux cleaned = 0.044691 Jy
! Total flux subtracted in 100 components = 0.044691 Jy
! Clean residual min=-0.006943 max=0.009830 Jy/beam
! Clean residual mean=0.000085 rms=0.001625 Jy/beam
! Combined flux in latest and established models = 0.617835 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 30 components and 0.617835 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.237587Jy  sigma=0.001460
! Fit after  self-cal, rms=0.237105Jy  sigma=0.001457
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0143607 Jy
! Component: 100  -  total flux cleaned = 0.0254469 Jy
! Total flux subtracted in 100 components = 0.0254469 Jy
! Clean residual min=-0.006044 max=0.007382 Jy/beam
! Clean residual mean=0.000072 rms=0.001493 Jy/beam
! Combined flux in latest and established models = 0.643282 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 33 components and 0.643282 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.234751Jy  sigma=0.001433
! Fit after  self-cal, rms=0.234668Jy  sigma=0.001432
! 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.305 mas, bmaj=2.342 mas, bpa=-7.331 degrees
! Estimated noise=262.888 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.026236 Jy
! Component: 100  -  total flux cleaned = 0.044366 Jy
! Component: 150  -  total flux cleaned = 0.0575104 Jy
! Component: 200  -  total flux cleaned = 0.0672112 Jy
! Total flux subtracted in 200 components = 0.0672112 Jy
! Clean residual min=-0.003367 max=0.007353 Jy/beam
! Clean residual mean=0.000459 rms=0.001248 Jy/beam
! Combined flux in latest and established models = 0.710493 Jy
! Performing phase self-cal
! Adding 55 model components to the UV plane model.
! The established model now contains 76 components and 0.710493 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.231157Jy  sigma=0.001397
! Fit after  self-cal, rms=0.230908Jy  sigma=0.001395
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00938248 Jy
! Component: 100  -  total flux cleaned = 0.0157327 Jy
! Component: 150  -  total flux cleaned = 0.0203901 Jy
! Component: 200  -  total flux cleaned = 0.0238796 Jy
! Total flux subtracted in 200 components = 0.0238796 Jy
! Clean residual min=-0.003426 max=0.004619 Jy/beam
! Clean residual mean=0.000298 rms=0.001017 Jy/beam
! Combined flux in latest and established models = 0.734373 Jy
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 95 components and 0.734373 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.230468Jy  sigma=0.001390
! Fit after  self-cal, rms=0.230419Jy  sigma=0.001390
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 69 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.92     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.99     KK        0.98     KP        1.03     LA        1.00     
!   MA        0.84     MC        0.96     MK        1.02     NL        0.97     
!   OV        1.01     PT        1.01     SC        1.02     TS        0.99     
!   WF        1.07     WZ        1.00     
! 
!  A total of 135 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.91     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.02     KK        1.02     KP        1.36     LA        1.00     
!   MA        1.48     MC        1.32     MK        1.03     NL        1.02     
!   OV        0.99     PT        0.98     SC        1.06     TS        0.97     
!   WF        0.83     WZ        0.99     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.91     KK        1.02     KP        0.96     LA        1.00     
!   MA        0.78     MC        1.31     MK        1.01     NL        0.98     
!   OV        0.98     PT        1.03     SC        1.15     TS        0.98     
!   WF        0.99     WZ        1.01     
! 
!  A total of 84 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.01     KK        1.00     KP        1.23     LA        1.00     
!   MA        0.77     MC        0.98     MK        1.05     NL        1.00     
!   OV        0.98     PT        1.00     SC        1.05     TS        0.98     
!   WF        1.06     WZ        0.92     
! 
!  A total of 78 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.94     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.10     KK        1.00*    KP        1.05     LA        1.02     
!   MA        0.81     MC        1.12     MK        1.03     NL        1.01     
!   OV        1.00     PT        1.01     SC        1.10     TS        1.01     
!   WF        1.06     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 69 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        0.99     KP        0.94     LA        0.97     
!   MA        1.16     MC        1.07     MK        1.04     NL        0.97     
!   OV        1.02     PT        0.98     SC        1.03     TS        1.01     
!   WF        0.99     WZ        0.98     
! 
!  A total of 135 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.98     KK        1.03     KP        1.19     LA        0.97     
!   MA        2.04     MC        0.93     MK        1.03     NL        1.00     
!   OV        1.03     PT        0.97     SC        1.04     TS        1.02     
!   WF        0.97     WZ        1.01     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.95     KK        1.01     KP        1.02     LA        0.95     
!   MA        0.90     MC        1.14     MK        1.03     NL        1.00     
!   OV        1.01     PT        0.98     SC        1.15     TS        1.00     
!   WF        1.00     WZ        1.00     
! 
!  A total of 84 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.98     KK        1.00     KP        1.07     LA        0.96     
!   MA        0.78     MC        1.03     MK        1.04     NL        1.01     
!   OV        1.01     PT        0.99     SC        1.04     TS        0.99     
!   WF        0.98     WZ        0.94     
! 
!  A total of 78 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.04     KK        1.00*    KP        1.00     LA        0.99     
!   MA        0.80     MC        0.98     MK        1.05     NL        1.02     
!   OV        1.02     PT        1.00     SC        1.06     TS        1.09     
!   WF        0.99     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 69 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.98     KK        1.01     KP        0.97     LA        0.94     
!   MA        0.99     MC        1.16     MK        0.98     NL        0.95     
!   OV        1.01     PT        0.99     SC        1.02     TS        1.02     
!   WF        1.01     WZ        0.99     
! 
!  A total of 135 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.96     KK        1.02     KP        1.01     LA        0.93     
!   MA        1.44     MC        2.29     MK        0.99     NL        0.96     
!   OV        0.97     PT        0.97     SC        1.04     TS        1.01     
!   WF        0.97     WZ        0.99     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.96     KK        1.04     KP        0.99     LA        0.95     
!   MA        0.96     MC        1.44     MK        0.99     NL        0.98     
!   OV        1.01     PT        0.98     SC        1.13     TS        0.99     
!   WF        0.93     WZ        1.01     
! 
!  A total of 84 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.96     KK        1.02     KP        1.00     LA        0.95     
!   MA        0.97     MC        1.55     MK        0.98     NL        1.01     
!   OV        1.02     PT        0.98     SC        1.04     TS        1.00     
!   WF        1.00     WZ        0.94     
! 
!  A total of 78 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.98     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.00*    KP        1.02     LA        0.97     
!   MA        1.02     MC        1.12     MK        0.98     NL        1.00     
!   OV        1.02     PT        1.00     SC        1.07     TS        1.06     
!   WF        0.98     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 153 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.98     KK        0.95     KP        0.98     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        1.02     NL        0.99     
!   OV        1.00     PT        0.98     SC        1.01     TS        1.02     
!   WF        0.98     WZ        0.97     
! 
!  A total of 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.93     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.98     KK        0.99     KP        1.02     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        1.04     NL        1.02     
!   OV        0.97     PT        0.96     SC        1.03     TS        1.01     
!   WF        0.97     WZ        0.99     
! 
!  A total of 75 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.97     KK        0.99     KP        0.99     LA        0.97     
!   MA        1.00*    MC        1.00*    MK        1.01     NL        1.01     
!   OV        0.98     PT        0.98     SC        1.12     TS        1.00     
!   WF        1.01     WZ        1.00     
! 
!  A total of 57 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.98     KK        0.98     KP        0.99     LA        0.99     
!   MA        1.00*    MC        1.00*    MK        1.01     NL        1.11     
!   OV        1.00     PT        0.98     SC        1.02     TS        0.99     
!   WF        0.98     WZ        0.93     
! 
!  A total of 3 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.98     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.02     KK        1.00*    KP        1.02     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        1.01     NL        1.02     
!   OV        1.00     PT        1.00     SC        1.06     TS        1.06     
!   WF        1.01     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.230419Jy  sigma=0.001390
! Fit after  self-cal, rms=0.224757Jy  sigma=0.001358
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.312 mas, bmaj=2.359 mas, bpa=-8.325 degrees
! Estimated noise=263.009 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.00452568 Jy
! Component: 100  -  total flux cleaned = 0.00742478 Jy
! Component: 150  -  total flux cleaned = 0.00883793 Jy
! Component: 200  -  total flux cleaned = 0.00953504 Jy
! Total flux subtracted in 200 components = 0.00953504 Jy
! Clean residual min=-0.001871 max=0.002275 Jy/beam
! Clean residual mean=0.000108 rms=0.000501 Jy/beam
! Combined flux in latest and established models = 0.743908 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 117 components and 0.743908 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224645Jy  sigma=0.001357
! Fit after  self-cal, rms=0.224700Jy  sigma=0.001357
! 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.224700Jy  sigma=0.001357
! Fit after  self-cal, rms=0.224810Jy  sigma=0.001355
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.311 mas, bmaj=2.359 mas, bpa=-6.067 degrees
! Estimated noise=263.209 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00250661 Jy
! Component: 100  -  total flux cleaned = 0.00393761 Jy
! Component: 150  -  total flux cleaned = 0.00469 Jy
! Component: 200  -  total flux cleaned = 0.00516149 Jy
! Total flux subtracted in 200 components = 0.00516149 Jy
! Clean residual min=-0.001595 max=0.002078 Jy/beam
! Clean residual mean=0.000070 rms=0.000431 Jy/beam
! Combined flux in latest and established models = 0.749069 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 124 components and 0.749069 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224774Jy  sigma=0.001355
! Fit after  self-cal, rms=0.224773Jy  sigma=0.001355
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 (-11.5, -25.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00162037 Jy
! Component: 100  -  total flux cleaned = 0.00232135 Jy
! Component: 150  -  total flux cleaned = 0.00286241 Jy
! Component: 200  -  total flux cleaned = 0.00316211 Jy
! Total flux subtracted in 200 components = 0.00316211 Jy
! Clean residual min=-0.001588 max=0.001680 Jy/beam
! Clean residual mean=0.000049 rms=0.000416 Jy/beam
! Combined flux in latest and established models = 0.752231 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 142 components and 0.752231 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224753Jy  sigma=0.001355
! Fit after  self-cal, rms=0.224751Jy  sigma=0.001355
! 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.224751Jy  sigma=0.001355
! Fit after  self-cal, rms=0.225108Jy  sigma=0.001354
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.311 mas, bmaj=2.36 mas, bpa=-5.552 degrees
! Estimated noise=263.426 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00136958 Jy
! Component: 100  -  total flux cleaned = 0.00211908 Jy
! Component: 150  -  total flux cleaned = 0.00263008 Jy
! Component: 200  -  total flux cleaned = 0.0028272 Jy
! Total flux subtracted in 200 components = 0.0028272 Jy
! Clean residual min=-0.001505 max=0.001612 Jy/beam
! Clean residual mean=0.000037 rms=0.000403 Jy/beam
! Combined flux in latest and established models = 0.755058 Jy
selfcal
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 147 components and 0.755058 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.225097Jy  sigma=0.001354
! Fit after  self-cal, rms=0.225098Jy  sigma=0.001354
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.000338599 Jy
! Component: 100  -  total flux cleaned = 0.000473811 Jy
! Component: 150  -  total flux cleaned = 0.000599958 Jy
! Component: 200  -  total flux cleaned = 0.000694799 Jy
! Total flux subtracted in 200 components = 0.000694799 Jy
! Clean residual min=-0.001495 max=0.001597 Jy/beam
! Clean residual mean=0.000032 rms=0.000402 Jy/beam
! Combined flux in latest and established models = 0.755753 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 150 components and 0.755753 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.225093Jy  sigma=0.001354
! Fit after  self-cal, rms=0.225092Jy  sigma=0.001354
! 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.225092Jy  sigma=0.001354
! Fit after  self-cal, rms=0.225257Jy  sigma=0.001354
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.33 mas, bmaj=9.118 mas, bpa=-72.1 degrees
! Estimated noise=434.25 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00111302 Jy
! Component: 100  -  total flux cleaned = 0.00148489 Jy
! Component: 150  -  total flux cleaned = 0.00175545 Jy
! Component: 200  -  total flux cleaned = 0.00191094 Jy
! Total flux subtracted in 200 components = 0.00191094 Jy
! Clean residual min=-0.001518 max=0.001679 Jy/beam
! Clean residual mean=0.000099 rms=0.000501 Jy/beam
! Combined flux in latest and established models = 0.757664 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 162 components and 0.757664 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.225258Jy  sigma=0.001354
! Fit after  self-cal, rms=0.225258Jy  sigma=0.001354
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.000222339 Jy
! Component: 100  -  total flux cleaned = 0.00040043 Jy
! Component: 150  -  total flux cleaned = 0.000465642 Jy
! Component: 200  -  total flux cleaned = 0.000506425 Jy
! Total flux subtracted in 200 components = 0.000506425 Jy
! Clean residual min=-0.001512 max=0.001683 Jy/beam
! Clean residual mean=0.000087 rms=0.000502 Jy/beam
! Combined flux in latest and established models = 0.75817 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 164 components and 0.75817 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.225260Jy  sigma=0.001354
! Fit after  self-cal, rms=0.225260Jy  sigma=0.001354
! 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.311 mas, bmaj=2.361 mas, bpa=-5.48 degrees
! Estimated noise=263.589 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.311 x 2.361 at -5.48 degrees (North through East)
! Clean map  min=-0.0012631  max=0.50816 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.225260Jy  sigma=0.001354
! Fit after  self-cal, rms=0.565820Jy  sigma=0.001249
! Inverting map and beam 
! Estimated beam: bmin=2.313 mas, bmaj=2.362 mas, bpa=-5.611 degrees
! Estimated noise=264.028 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00105899 Jy
! Component: 100  -  total flux cleaned = 0.00105762 Jy
! Component: 150  -  total flux cleaned = 0.00105766 Jy
! Component: 200  -  total flux cleaned = 0.00108968 Jy
! Total flux subtracted in 200 components = 0.00108968 Jy
! Clean residual min=-0.001293 max=0.001587 Jy/beam
! Clean residual mean=0.000037 rms=0.000368 Jy/beam
! Combined flux in latest and established models = 0.75926 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 171 components and 0.75926 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.565783Jy  sigma=0.001249
! Fit after  self-cal, rms=0.565784Jy  sigma=0.001249
! Inverting map 
! Added new window around map position (-42.5, -20).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00128134 Jy
! Component: 100  -  total flux cleaned = 0.00142597 Jy
! Component: 150  -  total flux cleaned = 0.00148845 Jy
! Component: 200  -  total flux cleaned = 0.00148923 Jy
! Total flux subtracted in 200 components = 0.00148923 Jy
! Clean residual min=-0.001321 max=0.001550 Jy/beam
! Clean residual mean=0.000029 rms=0.000363 Jy/beam
! Combined flux in latest and established models = 0.760749 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 182 components and 0.760749 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.565749Jy  sigma=0.001249
! Fit after  self-cal, rms=0.565750Jy  sigma=0.001249
! 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.565750Jy  sigma=0.001249
! Fit after  self-cal, rms=0.762204Jy  sigma=0.001249
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=1.818 mas, bmaj=1.864 mas, bpa=-6.436 degrees
! Estimated noise=567.556 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.377896 Jy
! Component: 100  -  total flux cleaned = 0.468992 Jy
! Component: 150  -  total flux cleaned = 0.51743 Jy
! Component: 200  -  total flux cleaned = 0.551689 Jy
! Total flux subtracted in 200 components = 0.551689 Jy
! Clean residual min=-0.005157 max=0.019734 Jy/beam
! Clean residual mean=0.000113 rms=0.001605 Jy/beam
! Combined flux in latest and established models = 0.551689 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 16 model components to the UV plane model.
! The established model now contains 16 components and 0.551689 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.313 mas, bmaj=2.361 mas, bpa=-6.199 degrees
! Estimated noise=264.475 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.0578209 Jy
! Component: 100  -  total flux cleaned = 0.0958546 Jy
! Component: 150  -  total flux cleaned = 0.122635 Jy
! Component: 200  -  total flux cleaned = 0.142113 Jy
! Total flux subtracted in 200 components = 0.142113 Jy
! Clean residual min=-0.003029 max=0.011407 Jy/beam
! Clean residual mean=0.000500 rms=0.001352 Jy/beam
! Combined flux in latest and established models = 0.693801 Jy
! Adding 58 model components to the UV plane model.
! The established model now contains 63 components and 0.693801 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.0144587 Jy
! Component: 100  -  total flux cleaned = 0.0252638 Jy
! Component: 150  -  total flux cleaned = 0.0334495 Jy
! Component: 200  -  total flux cleaned = 0.039695 Jy
! Total flux subtracted in 200 components = 0.039695 Jy
! Clean residual min=-0.001649 max=0.003875 Jy/beam
! Clean residual mean=0.000221 rms=0.000603 Jy/beam
! Combined flux in latest and established models = 0.733496 Jy
! Adding 58 model components to the UV plane model.
! The established model now contains 104 components and 0.733496 Jy
! Inverting map 
! Added new window around map position (-4, -8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00491334 Jy
! Component: 100  -  total flux cleaned = 0.00883853 Jy
! Component: 150  -  total flux cleaned = 0.0120511 Jy
! Component: 200  -  total flux cleaned = 0.0147249 Jy
! Total flux subtracted in 200 components = 0.0147249 Jy
! Clean residual min=-0.001368 max=0.002169 Jy/beam
! Clean residual mean=0.000121 rms=0.000429 Jy/beam
! Combined flux in latest and established models = 0.748221 Jy
! Adding 51 model components to the UV plane model.
! The established model now contains 136 components and 0.748221 Jy
! Inverting map 
! Added new window around map position (-12.5, -18).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00241987 Jy
! Component: 100  -  total flux cleaned = 0.00442814 Jy
! Component: 150  -  total flux cleaned = 0.00617094 Jy
! Component: 200  -  total flux cleaned = 0.00763586 Jy
! Total flux subtracted in 200 components = 0.00763586 Jy
! Clean residual min=-0.001398 max=0.001572 Jy/beam
! Clean residual mean=0.000071 rms=0.000379 Jy/beam
! Combined flux in latest and established models = 0.755857 Jy
! Adding 59 model components to the UV plane model.
! The established model now contains 160 components and 0.755857 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.32 mas, bmaj=9.12 mas, bpa=-71.81 degrees
! Estimated noise=435.295 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00292399 Jy
! Component: 100  -  total flux cleaned = 0.0045486 Jy
! Component: 150  -  total flux cleaned = 0.00562572 Jy
! Component: 200  -  total flux cleaned = 0.0063681 Jy
! Total flux subtracted in 200 components = 0.0063681 Jy
! Clean residual min=-0.001640 max=0.001865 Jy/beam
! Clean residual mean=0.000110 rms=0.000506 Jy/beam
! Combined flux in latest and established models = 0.762225 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.000333237 Jy
! Component: 100  -  total flux cleaned = 0.000444214 Jy
! Component: 150  -  total flux cleaned = 0.000510894 Jy
! Component: 200  -  total flux cleaned = 0.000541465 Jy
! Total flux subtracted in 200 components = 0.000541465 Jy
! Clean residual min=-0.001608 max=0.001814 Jy/beam
! Clean residual mean=0.000097 rms=0.000500 Jy/beam
! Combined flux in latest and established models = 0.762767 Jy
! Adding 68 model components to the UV plane model.
! The established model now contains 209 components and 0.762767 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.313 mas, bmaj=2.361 mas, bpa=-6.199 degrees
! Estimated noise=264.475 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000193605 Jy
! Component: 100  -  total flux cleaned = -0.000274292 Jy
! Component: 150  -  total flux cleaned = -0.000312497 Jy
! Component: 200  -  total flux cleaned = -0.000420081 Jy
! Total flux subtracted in 200 components = -0.000420081 Jy
! Clean residual min=-0.001421 max=0.001424 Jy/beam
! Clean residual mean=0.000030 rms=0.000358 Jy/beam
! Combined flux in latest and established models = 0.762347 Jy
selfcal
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 221 components and 0.762347 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.762105Jy  sigma=0.001249
! Fit after  self-cal, rms=0.762118Jy  sigma=0.001249
wmodel J0017+8135_S_2001_10_29_pus_map.mod
! Writing 221 model components to file: J0017+8135_S_2001_10_29_pus_map.mod
wobs J0017+8135_S_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J0017+8135_S_2001_10_29_pus_uvs.fits
wwins J0017+8135_S_2001_10_29_pus_map.win
! wwins: Wrote 9 windows to J0017+8135_S_2001_10_29_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.000449926 Jy
! Component: 100  -  total flux cleaned = 0.000896417 Jy
! Component: 150  -  total flux cleaned = 0.00130432 Jy
! Component: 200  -  total flux cleaned = 0.00151504 Jy
! Component: 250  -  total flux cleaned = 0.00172169 Jy
! Component: 300  -  total flux cleaned = 0.00190193 Jy
! Component: 350  -  total flux cleaned = 0.0020573 Jy
! Component: 400  -  total flux cleaned = 0.00223231 Jy
! Component: 450  -  total flux cleaned = 0.00238334 Jy
! Component: 500  -  total flux cleaned = 0.00251132 Jy
! Component: 550  -  total flux cleaned = 0.00268001 Jy
! Component: 600  -  total flux cleaned = 0.00282601 Jy
! Component: 650  -  total flux cleaned = 0.0028882 Jy
! Component: 700  -  total flux cleaned = 0.00299111 Jy
! Component: 750  -  total flux cleaned = 0.00311368 Jy
! Component: 800  -  total flux cleaned = 0.00329578 Jy
! Component: 850  -  total flux cleaned = 0.003396 Jy
! Component: 900  -  total flux cleaned = 0.00353545 Jy
! Component: 950  -  total flux cleaned = 0.00363441 Jy
! Component: 1000  -  total flux cleaned = 0.00379155 Jy
! Component: 1050  -  total flux cleaned = 0.00385009 Jy
! Component: 1100  -  total flux cleaned = 0.00396667 Jy
! Component: 1150  -  total flux cleaned = 0.00404388 Jy
! Component: 1200  -  total flux cleaned = 0.00415891 Jy
! Component: 1250  -  total flux cleaned = 0.00423517 Jy
! Component: 1300  -  total flux cleaned = 0.00434911 Jy
! Component: 1350  -  total flux cleaned = 0.0044245 Jy
! Component: 1400  -  total flux cleaned = 0.00453714 Jy
! Component: 1450  -  total flux cleaned = 0.00463045 Jy
! Component: 1500  -  total flux cleaned = 0.00474183 Jy
! Component: 1550  -  total flux cleaned = 0.0048157 Jy
! Component: 1600  -  total flux cleaned = 0.00483406 Jy
! Component: 1650  -  total flux cleaned = 0.00494393 Jy
! Component: 1700  -  total flux cleaned = 0.00498041 Jy
! Component: 1750  -  total flux cleaned = 0.0050529 Jy
! Component: 1800  -  total flux cleaned = 0.00516134 Jy
! Component: 1850  -  total flux cleaned = 0.00516133 Jy
! Component: 1900  -  total flux cleaned = 0.00525096 Jy
! Component: 1950  -  total flux cleaned = 0.00532239 Jy
! Component: 2000  -  total flux cleaned = 0.00535792 Jy
! Total flux subtracted in 2048 components = 0.00544635 Jy
! Clean residual min=-0.000979 max=0.000901 Jy/beam
! Clean residual mean=0.000002 rms=0.000322 Jy/beam
! Combined flux in latest and established models = 0.767793 Jy
keep
! Adding 166 model components to the UV plane model.
! The established model now contains 387 components and 0.767794 Jy
![Exited script file: muppet]
wmap "J0017+8135_S_2001_10_29_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.313 x 2.361 at -6.199 degrees (North through East)
! Clean map  min=-0.0011944  max=0.51074 Jy/beam
! Writing clean map to FITS file: J0017+8135_S_2001_10_29_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.510738 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000321647 
device "J0017+8135_S_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J0017+8135_S_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.18893 0.18893 0.377861 0.755722 1.51144 3.02289 6.04578 12.0916 24.1831 48.3662 96.7324
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0009 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.51 
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.313 x 2.361 at -6.199 degrees (North through East)
! Clean map  min=-0.0011944  max=0.51074 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0017+8135_S_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J0017+8135_S_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0017+8135_S_2001_10_29_pus_uvs.log closed on Wed Feb 27 15:09:07 2008