! Started logfile: J0808+4950_S_1999_03_08_pus_uvs.log on Tue Jan  8 18:08:28 2008
obs J0808+4950_S_1999_03_08_pus_uva.fits
! Reading UV FITS file: J0808+4950_S_1999_03_08_pus_uva.fits
! AN table 1: 43 integrations on 190 of 190 possible baselines.
! AN table 2: 87 integrations on 190 of 190 possible baselines.
! AN table 3: 725 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.142739 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0808+4950
! 
! 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 2332 lines of history.
! 
! Reading 92752 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 J0808+4950_S_1999_03_08_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 731 telescope corrections were flagged in sub-array 1.
!  A total of 968 telescope corrections were flagged in sub-array 2.
!  A total of 10789 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 731 telescope corrections were flagged in sub-array 1.
!  A total of 968 telescope corrections were flagged in sub-array 2.
!  A total of 10789 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 731 telescope corrections were flagged in sub-array 1.
!  A total of 968 telescope corrections were flagged in sub-array 2.
!  A total of 10789 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 731 telescope corrections were flagged in sub-array 1.
!  A total of 968 telescope corrections were flagged in sub-array 2.
!  A total of 10789 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.842801Jy  sigma=0.005094
! Fit after  self-cal, rms=0.448661Jy  sigma=0.002491
! 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.122 mas, bmaj=2.4 mas, bpa=-9.625 degrees
! Estimated noise=659.734 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.534665 Jy
! Component: 100  -  total flux cleaned = 0.674181 Jy
! Total flux subtracted in 100 components = 0.674181 Jy
! Clean residual min=-0.012042 max=0.060099 Jy/beam
! Clean residual mean=0.000133 rms=0.003460 Jy/beam
! Combined flux in latest and established models = 0.674181 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.674181 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.351023Jy  sigma=0.001847
! Fit after  self-cal, rms=0.350819Jy  sigma=0.001846
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0678488 Jy
! Component: 100  -  total flux cleaned = 0.109504 Jy
! Total flux subtracted in 100 components = 0.109504 Jy
! Clean residual min=-0.012146 max=0.022651 Jy/beam
! Clean residual mean=0.000058 rms=0.002642 Jy/beam
! Combined flux in latest and established models = 0.783685 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 21 components and 0.783685 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.333340Jy  sigma=0.001626
! Fit after  self-cal, rms=0.333139Jy  sigma=0.001625
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0291937 Jy
! Component: 100  -  total flux cleaned = 0.0495642 Jy
! Total flux subtracted in 100 components = 0.0495642 Jy
! Clean residual min=-0.012339 max=0.014568 Jy/beam
! Clean residual mean=0.000024 rms=0.002442 Jy/beam
! Combined flux in latest and established models = 0.83325 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 28 components and 0.83325 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.329946Jy  sigma=0.001577
! Fit after  self-cal, rms=0.329880Jy  sigma=0.001577
! Inverting map 
! Added new window around map position (1.5, -4.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.016476 Jy
! Component: 100  -  total flux cleaned = 0.0285941 Jy
! Total flux subtracted in 100 components = 0.0285941 Jy
! Clean residual min=-0.012125 max=0.010761 Jy/beam
! Clean residual mean=0.000005 rms=0.002370 Jy/beam
! Combined flux in latest and established models = 0.861844 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 34 components and 0.861844 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.329002Jy  sigma=0.001562
! Fit after  self-cal, rms=0.328939Jy  sigma=0.001561
! 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.597 mas, bmaj=2.949 mas, bpa=-20.06 degrees
! Estimated noise=354.66 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.0127768 Jy
! Component: 100  -  total flux cleaned = 0.0184638 Jy
! Component: 150  -  total flux cleaned = 0.0203418 Jy
! Component: 200  -  total flux cleaned = 0.0218999 Jy
! Total flux subtracted in 200 components = 0.0218999 Jy
! Clean residual min=-0.010617 max=0.009330 Jy/beam
! Clean residual mean=-0.000547 rms=0.002210 Jy/beam
! Combined flux in latest and established models = 0.883744 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 46 components and 0.883744 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.328582Jy  sigma=0.001554
! Fit after  self-cal, rms=0.328533Jy  sigma=0.001554
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.00*    GC        1.02     GG        1.00*    
!   HN        1.06     KP        1.00*    LA        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    WF        0.97     
!   GN        1.00*    HH        1.00*    KK        1.00*    MC        0.91     
!   MK        1.00*    NY        0.93     ON        0.91     WZ        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.93     FD        0.98     GC        0.97     GG        1.00*    
!   HN        1.01     KP        0.99     LA        0.98     NL        0.92     
!   OV        1.00     PT        1.01     SC        0.98     WF        0.95     
!   GN        0.93     HH        1.00*    KK        1.40     MC        0.96     
!   MK        0.95     NY        0.97     ON        0.98     WZ        0.94     
! 
!  A total of 417 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.98     GC        0.99     GG        1.00*    
!   HN        0.98     KP        0.97     LA        0.97     NL        1.00     
!   OV        0.98     PT        1.01     SC        1.02     WF        0.98     
!   GN        0.98     HH        1.00*    KK        0.97     MC        1.03     
!   MK        0.95     NY        0.96     ON        1.01     WZ        1.14     
! 
! 
! Correcting IF 2.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        1.00*    GC        1.04     GG        1.00*    
!   HN        0.97     KP        1.00*    LA        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    WF        1.05     
!   GN        1.00*    HH        1.00*    KK        1.00*    MC        1.01     
!   MK        1.00*    NY        1.03     ON        0.96     WZ        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.02     GC        1.00     GG        1.00*    
!   HN        0.94     KP        0.98     LA        0.96     NL        1.03     
!   OV        0.95     PT        0.99     SC        1.03     WF        0.98     
!   GN        0.95     HH        1.00*    KK        1.34     MC        1.70     
!   MK        1.00     NY        0.97     ON        0.98     WZ        0.97     
! 
!  A total of 417 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.01     GC        1.04     GG        1.00*    
!   HN        0.95     KP        0.99     LA        0.91     NL        1.03     
!   OV        0.92     PT        0.99     SC        1.07     WF        1.01     
!   GN        0.98     HH        1.00*    KK        0.94     MC        1.05     
!   MK        0.99     NY        0.96     ON        1.04     WZ        1.15     
! 
! 
! Correcting IF 3.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.15     FD        1.00*    GC        1.14     GG        1.00*    
!   HN        1.27     KP        1.00*    LA        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    WF        1.02     
!   GN        1.00*    HH        1.00*    KK        1.00*    MC        0.70     
!   MK        1.00*    NY        1.02     ON        0.89     WZ        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.99     GC        0.99     GG        1.00*    
!   HN        1.19     KP        1.00     LA        0.99     NL        0.96     
!   OV        0.99     PT        0.97     SC        1.01     WF        1.02     
!   GN        0.95     HH        1.00*    KK        1.44     MC        0.98     
!   MK        1.00     NY        0.97     ON        0.98     WZ        0.99     
! 
!  A total of 417 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00     GC        0.99     GG        1.00*    
!   HN        1.23     KP        0.99     LA        0.94     NL        1.02     
!   OV        0.95     PT        0.97     SC        1.04     WF        1.01     
!   GN        0.99     HH        1.00*    KK        0.97     MC        0.97     
!   MK        0.99     NY        0.95     ON        1.00     WZ        1.18     
! 
! 
! Correcting IF 4.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.07     FD        1.00*    GC        1.05     GG        1.00*    
!   HN        1.18     KP        1.00*    LA        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    WF        1.00     
!   GN        1.00*    HH        1.00*    KK        1.00*    MC        0.70     
!   MK        1.00*    NY        1.05     ON        0.98     WZ        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.00     GC        1.02     GG        1.00*    
!   HN        1.14     KP        1.01     LA        1.00     NL        1.03     
!   OV        1.01     PT        0.93     SC        0.98     WF        0.98     
!   GN        0.94     HH        1.00*    KK        1.42     MC        0.97     
!   MK        1.07     NY        0.99     ON        0.97     WZ        0.97     
! 
!  A total of 417 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.00     GC        1.02     GG        1.00*    
!   HN        1.18     KP        1.00     LA        0.94     NL        1.04     
!   OV        0.97     PT        0.99     SC        1.03     WF        1.02     
!   GN        0.99     HH        1.00*    KK        1.02     MC        0.96     
!   MK        1.01     NY        0.95     ON        0.96     WZ        1.18     
! 
! 
! Fit before self-cal, rms=0.328533Jy  sigma=0.001554
! Fit after  self-cal, rms=0.300091Jy  sigma=0.001482
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.604 mas, bmaj=2.972 mas, bpa=-20.72 degrees
! Estimated noise=357.197 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.00302163 Jy
! Component: 100  -  total flux cleaned = -0.00334187 Jy
! Component: 150  -  total flux cleaned = -0.00359927 Jy
! Component: 200  -  total flux cleaned = -0.00359702 Jy
! Total flux subtracted in 200 components = -0.00359702 Jy
! Clean residual min=-0.007370 max=0.008675 Jy/beam
! Clean residual mean=-0.000015 rms=0.001862 Jy/beam
! Combined flux in latest and established models = 0.880147 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 53 components and 0.880147 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.299914Jy  sigma=0.001481
! Fit after  self-cal, rms=0.300034Jy  sigma=0.001480
! 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.300034Jy  sigma=0.001480
! Fit after  self-cal, rms=0.307183Jy  sigma=0.001385
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.607 mas, bmaj=2.981 mas, bpa=-18.58 degrees
! Estimated noise=358.362 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00151869 Jy
! Component: 100  -  total flux cleaned = -0.00187437 Jy
! Component: 150  -  total flux cleaned = -0.0022683 Jy
! Component: 200  -  total flux cleaned = -0.00235001 Jy
! Total flux subtracted in 200 components = -0.00235001 Jy
! Clean residual min=-0.002599 max=0.002230 Jy/beam
! Clean residual mean=-0.000039 rms=0.000599 Jy/beam
! Combined flux in latest and established models = 0.877797 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 60 components and 0.877797 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.307086Jy  sigma=0.001384
! Fit after  self-cal, rms=0.307508Jy  sigma=0.001383
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.000353223 Jy
! Component: 100  -  total flux cleaned = -0.000482199 Jy
! Component: 150  -  total flux cleaned = -0.000531182 Jy
! Component: 200  -  total flux cleaned = -0.000531869 Jy
! Total flux subtracted in 200 components = -0.000531869 Jy
! Clean residual min=-0.002544 max=0.002205 Jy/beam
! Clean residual mean=-0.000036 rms=0.000595 Jy/beam
! Combined flux in latest and established models = 0.877265 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 62 components and 0.877265 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.307484Jy  sigma=0.001383
! Fit after  self-cal, rms=0.307477Jy  sigma=0.001383
! 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.307477Jy  sigma=0.001383
! Fit after  self-cal, rms=0.305747Jy  sigma=0.001380
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.604 mas, bmaj=2.99 mas, bpa=-18.59 degrees
! Estimated noise=358.705 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000531126 Jy
! Component: 100  -  total flux cleaned = -0.000805266 Jy
! Component: 150  -  total flux cleaned = -0.000920536 Jy
! Component: 200  -  total flux cleaned = -0.000970177 Jy
! Total flux subtracted in 200 components = -0.000970177 Jy
! Clean residual min=-0.002396 max=0.002049 Jy/beam
! Clean residual mean=-0.000032 rms=0.000554 Jy/beam
! Combined flux in latest and established models = 0.876295 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 62 components and 0.876295 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.305714Jy  sigma=0.001380
! Fit after  self-cal, rms=0.305740Jy  sigma=0.001380
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.000136837 Jy
! Component: 100  -  total flux cleaned = -0.000263445 Jy
! Component: 150  -  total flux cleaned = -0.000227824 Jy
! Component: 200  -  total flux cleaned = -0.000195264 Jy
! Total flux subtracted in 200 components = -0.000195264 Jy
! Clean residual min=-0.002360 max=0.002076 Jy/beam
! Clean residual mean=-0.000030 rms=0.000552 Jy/beam
! Combined flux in latest and established models = 0.876099 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 64 components and 0.876099 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.305728Jy  sigma=0.001380
! Fit after  self-cal, rms=0.305725Jy  sigma=0.001380
! 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.305725Jy  sigma=0.001380
! Fit after  self-cal, rms=0.306431Jy  sigma=0.001379
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.711 mas, bmaj=8.4 mas, bpa=9.552 degrees
! Estimated noise=544.589 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0010745 Jy
! Component: 100  -  total flux cleaned = 0.00114334 Jy
! Component: 150  -  total flux cleaned = 0.00118073 Jy
! Component: 200  -  total flux cleaned = 0.0012304 Jy
! Total flux subtracted in 200 components = 0.0012304 Jy
! Clean residual min=-0.003224 max=0.002910 Jy/beam
! Clean residual mean=-0.000188 rms=0.000810 Jy/beam
! Combined flux in latest and established models = 0.87733 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 68 components and 0.87733 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.306428Jy  sigma=0.001379
! Fit after  self-cal, rms=0.306429Jy  sigma=0.001379
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 = 4.11349e-05 Jy
! Component: 100  -  total flux cleaned = 7.26975e-05 Jy
! Component: 150  -  total flux cleaned = 0.00010001 Jy
! Component: 200  -  total flux cleaned = 0.000124732 Jy
! Total flux subtracted in 200 components = 0.000124732 Jy
! Clean residual min=-0.003231 max=0.002938 Jy/beam
! Clean residual mean=-0.000192 rms=0.000814 Jy/beam
! Combined flux in latest and established models = 0.877454 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 68 components and 0.877454 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.306429Jy  sigma=0.001379
! Fit after  self-cal, rms=0.306428Jy  sigma=0.001379
! 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.602 mas, bmaj=2.994 mas, bpa=-18.53 degrees
! Estimated noise=358.986 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.602 x 2.994 at -18.53 degrees (North through East)
! Clean map  min=-0.0021223  max=0.72546 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.306428Jy  sigma=0.001379
! Fit after  self-cal, rms=0.344250Jy  sigma=0.001272
! Inverting map and beam 
! Estimated beam: bmin=2.602 mas, bmaj=2.996 mas, bpa=-18.63 degrees
! Estimated noise=358.911 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000959052 Jy
! Component: 100  -  total flux cleaned = -0.00142005 Jy
! Component: 150  -  total flux cleaned = -0.00159238 Jy
! Component: 200  -  total flux cleaned = -0.00170593 Jy
! Total flux subtracted in 200 components = -0.00170593 Jy
! Clean residual min=-0.001991 max=0.001660 Jy/beam
! Clean residual mean=-0.000097 rms=0.000490 Jy/beam
! Combined flux in latest and established models = 0.875749 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 69 components and 0.875749 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.344234Jy  sigma=0.001271
! Fit after  self-cal, rms=0.344248Jy  sigma=0.001271
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000168225 Jy
! Component: 100  -  total flux cleaned = -0.000233686 Jy
! Component: 150  -  total flux cleaned = -0.000233495 Jy
! Component: 200  -  total flux cleaned = -0.000260145 Jy
! Total flux subtracted in 200 components = -0.000260145 Jy
! Clean residual min=-0.001964 max=0.001671 Jy/beam
! Clean residual mean=-0.000095 rms=0.000489 Jy/beam
! Combined flux in latest and established models = 0.875488 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 71 components and 0.875489 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.344240Jy  sigma=0.001271
! Fit after  self-cal, rms=0.344240Jy  sigma=0.001271
! 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.344240Jy  sigma=0.001271
! Fit after  self-cal, rms=0.386804Jy  sigma=0.001271
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.131 mas, bmaj=2.439 mas, bpa=-8.485 degrees
! Estimated noise=668.393 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.538292 Jy
! Component: 100  -  total flux cleaned = 0.676366 Jy
! Component: 150  -  total flux cleaned = 0.739604 Jy
! Component: 200  -  total flux cleaned = 0.776213 Jy
! Total flux subtracted in 200 components = 0.776213 Jy
! Clean residual min=-0.006825 max=0.019537 Jy/beam
! Clean residual mean=0.000063 rms=0.001383 Jy/beam
! Combined flux in latest and established models = 0.776213 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 19 model components to the UV plane model.
! The established model now contains 19 components and 0.776213 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.601 mas, bmaj=2.999 mas, bpa=-18.54 degrees
! Estimated noise=358.934 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.0392961 Jy
! Component: 100  -  total flux cleaned = 0.0617133 Jy
! Component: 150  -  total flux cleaned = 0.0753617 Jy
! Component: 200  -  total flux cleaned = 0.0839928 Jy
! Total flux subtracted in 200 components = 0.0839928 Jy
! Clean residual min=-0.002187 max=0.005953 Jy/beam
! Clean residual mean=0.000044 rms=0.000634 Jy/beam
! Combined flux in latest and established models = 0.860206 Jy
! Adding 39 model components to the UV plane model.
! The established model now contains 45 components and 0.860206 Jy
! Inverting map 
! Added new window around map position (2, -0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00604273 Jy
! Component: 100  -  total flux cleaned = 0.00944068 Jy
! Component: 150  -  total flux cleaned = 0.0106967 Jy
! Component: 200  -  total flux cleaned = 0.0116725 Jy
! Total flux subtracted in 200 components = 0.0116725 Jy
! Clean residual min=-0.002018 max=0.001999 Jy/beam
! Clean residual mean=-0.000071 rms=0.000510 Jy/beam
! Combined flux in latest and established models = 0.871878 Jy
! Adding 17 model components to the UV plane model.
! The established model now contains 52 components and 0.871878 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.715 mas, bmaj=8.404 mas, bpa=9.251 degrees
! Estimated noise=543.749 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00293527 Jy
! Component: 100  -  total flux cleaned = 0.00385904 Jy
! Component: 150  -  total flux cleaned = 0.00396638 Jy
! Component: 200  -  total flux cleaned = 0.00401152 Jy
! Total flux subtracted in 200 components = 0.00401152 Jy
! Clean residual min=-0.003071 max=0.001993 Jy/beam
! Clean residual mean=-0.000403 rms=0.000716 Jy/beam
! Combined flux in latest and established models = 0.87589 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 = 2.07151e-07 Jy
! Component: 100  -  total flux cleaned = -3.51382e-07 Jy
! Component: 150  -  total flux cleaned = -1.10958e-06 Jy
! Component: 200  -  total flux cleaned = -9.60995e-06 Jy
! Total flux subtracted in 200 components = -9.60995e-06 Jy
! Clean residual min=-0.003063 max=0.002004 Jy/beam
! Clean residual mean=-0.000403 rms=0.000712 Jy/beam
! Combined flux in latest and established models = 0.87588 Jy
! Adding 28 model components to the UV plane model.
! The established model now contains 71 components and 0.87588 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.601 mas, bmaj=2.999 mas, bpa=-18.54 degrees
! Estimated noise=358.934 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000330985 Jy
! Component: 100  -  total flux cleaned = -0.000179192 Jy
! Component: 150  -  total flux cleaned = -4.9264e-05 Jy
! Component: 200  -  total flux cleaned = 9.62127e-06 Jy
! Total flux subtracted in 200 components = 9.62127e-06 Jy
! Clean residual min=-0.001990 max=0.001711 Jy/beam
! Clean residual mean=-0.000110 rms=0.000489 Jy/beam
! Combined flux in latest and established models = 0.87589 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 74 components and 0.87589 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.386873Jy  sigma=0.001272
! Fit after  self-cal, rms=0.386897Jy  sigma=0.001272
wmodel J0808+4950_S_1999_03_08_pus_map.mod
! Writing 74 model components to file: J0808+4950_S_1999_03_08_pus_map.mod
wobs J0808+4950_S_1999_03_08_pus_uvs.fits
! Writing UV FITS file: J0808+4950_S_1999_03_08_pus_uvs.fits
wwins J0808+4950_S_1999_03_08_pus_map.win
! wwins: Wrote 3 windows to J0808+4950_S_1999_03_08_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.00091652 Jy
! Component: 100  -  total flux cleaned = -0.00164187 Jy
! Component: 150  -  total flux cleaned = -0.00207358 Jy
! Component: 200  -  total flux cleaned = -0.00249337 Jy
! Component: 250  -  total flux cleaned = -0.00280872 Jy
! Component: 300  -  total flux cleaned = -0.00305643 Jy
! Component: 350  -  total flux cleaned = -0.00339193 Jy
! Component: 400  -  total flux cleaned = -0.00366219 Jy
! Component: 450  -  total flux cleaned = -0.00395822 Jy
! Component: 500  -  total flux cleaned = -0.00427962 Jy
! Component: 550  -  total flux cleaned = -0.00453941 Jy
! Component: 600  -  total flux cleaned = -0.00488175 Jy
! Component: 650  -  total flux cleaned = -0.00513574 Jy
! Component: 700  -  total flux cleaned = -0.00538695 Jy
! Component: 750  -  total flux cleaned = -0.00558041 Jy
! Component: 800  -  total flux cleaned = -0.00579948 Jy
! Component: 850  -  total flux cleaned = -0.00601636 Jy
! Component: 900  -  total flux cleaned = -0.0062311 Jy
! Component: 950  -  total flux cleaned = -0.00639081 Jy
! Component: 1000  -  total flux cleaned = -0.00654911 Jy
! Component: 1050  -  total flux cleaned = -0.00668028 Jy
! Component: 1100  -  total flux cleaned = -0.0068883 Jy
! Component: 1150  -  total flux cleaned = -0.00701734 Jy
! Component: 1200  -  total flux cleaned = -0.00711996 Jy
! Component: 1250  -  total flux cleaned = -0.00724735 Jy
! Component: 1300  -  total flux cleaned = -0.00739938 Jy
! Component: 1350  -  total flux cleaned = -0.00744958 Jy
! Component: 1400  -  total flux cleaned = -0.00752464 Jy
! Component: 1450  -  total flux cleaned = -0.00762424 Jy
! Component: 1500  -  total flux cleaned = -0.00767366 Jy
! Component: 1550  -  total flux cleaned = -0.00777217 Jy
! Component: 1600  -  total flux cleaned = -0.00779662 Jy
! Component: 1650  -  total flux cleaned = -0.00789414 Jy
! Component: 1700  -  total flux cleaned = -0.00796678 Jy
! Component: 1750  -  total flux cleaned = -0.00801493 Jy
! Component: 1800  -  total flux cleaned = -0.00803906 Jy
! Component: 1850  -  total flux cleaned = -0.00813463 Jy
! Component: 1900  -  total flux cleaned = -0.00818219 Jy
! Component: 1950  -  total flux cleaned = -0.00822952 Jy
! Component: 2000  -  total flux cleaned = -0.00832386 Jy
! Total flux subtracted in 2048 components = -0.00832383 Jy
! Clean residual min=-0.001390 max=0.001308 Jy/beam
! Clean residual mean=-0.000036 rms=0.000432 Jy/beam
! Combined flux in latest and established models = 0.867566 Jy
keep
! Adding 175 model components to the UV plane model.
! The established model now contains 248 components and 0.867566 Jy
![Exited script file: muppet]
wmap "J0808+4950_S_1999_03_08_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.601 x 2.999 at -18.54 degrees (North through East)
! Clean map  min=-0.0016463  max=0.72645 Jy/beam
! Writing clean map to FITS file: J0808+4950_S_1999_03_08_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.726448 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000431508 
device "J0808+4950_S_1999_03_08_pus\_map.eps/VPS"
! Attempting to open device: 'J0808+4950_S_1999_03_08_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.178199 0.178199 0.356398 0.712796 1.42559 2.85119 5.70237 11.4047 22.8095 45.619 91.2379
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0012 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.726 
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.601 x 2.999 at -18.54 degrees (North through East)
! Clean map  min=-0.0016463  max=0.72645 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0808+4950_S_1999_03_08_pus\_map.gif/vgif"
! Attempting to open device: 'J0808+4950_S_1999_03_08_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0808+4950_S_1999_03_08_pus_uvs.log closed on Tue Jan  8 18:10:04 2008