! Started logfile: J0808+4950_S_2001_07_05_pus_uvs.log on Fri Aug 10 00:34:51 2007
obs J0808+4950_S_2001_07_05_pus_uva.fits
! Reading UV FITS file: J0808+4950_S_2001_07_05_pus_uva.fits
! AN table 1: 269 integrations on 171 of 171 possible baselines.
! AN table 2: 179 integrations on 171 of 171 possible baselines.
! AN table 3: 81 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.278225 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0808+4950
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! 
! 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 1774 lines of history.
! 
! Reading 100672 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 
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 2831 telescope corrections were flagged in sub-array 1.
!  A total of 1982 telescope corrections were flagged in sub-array 2.
!  A total of 649 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 2808 telescope corrections were flagged in sub-array 1.
!  A total of 1982 telescope corrections were flagged in sub-array 2.
!  A total of 649 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 2806 telescope corrections were flagged in sub-array 1.
!  A total of 1982 telescope corrections were flagged in sub-array 2.
!  A total of 649 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 2806 telescope corrections were flagged in sub-array 1.
!  A total of 1982 telescope corrections were flagged in sub-array 2.
!  A total of 682 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.801583Jy  sigma=0.006128
! Fit after  self-cal, rms=0.596674Jy  sigma=0.004323
! 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.926 mas, bmaj=2.497 mas, bpa=2.028 degrees
! Estimated noise=621.852 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.358228 Jy
! Component: 100  -  total flux cleaned = 0.464411 Jy
! Total flux subtracted in 100 components = 0.464411 Jy
! Clean residual min=-0.008378 max=0.047530 Jy/beam
! Clean residual mean=0.000088 rms=0.002576 Jy/beam
! Combined flux in latest and established models = 0.464411 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.464411 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.340090Jy  sigma=0.001778
! Fit after  self-cal, rms=0.339979Jy  sigma=0.001777
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0539286 Jy
! Component: 100  -  total flux cleaned = 0.0870688 Jy
! Total flux subtracted in 100 components = 0.0870688 Jy
! Clean residual min=-0.006527 max=0.018162 Jy/beam
! Clean residual mean=0.000039 rms=0.001740 Jy/beam
! Combined flux in latest and established models = 0.55148 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 17 components and 0.55148 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.326746Jy  sigma=0.001578
! Fit after  self-cal, rms=0.326666Jy  sigma=0.001577
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0235199 Jy
! Component: 100  -  total flux cleaned = 0.0399888 Jy
! Total flux subtracted in 100 components = 0.0399888 Jy
! Clean residual min=-0.005485 max=0.009458 Jy/beam
! Clean residual mean=0.000017 rms=0.001501 Jy/beam
! Combined flux in latest and established models = 0.591469 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 19 components and 0.591469 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.323988Jy  sigma=0.001532
! Fit after  self-cal, rms=0.323960Jy  sigma=0.001532
! Inverting map 
! Added new window around map position (1.5, -2.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.012341 Jy
! Component: 100  -  total flux cleaned = 0.021446 Jy
! Total flux subtracted in 100 components = 0.021446 Jy
! Clean residual min=-0.005201 max=0.006503 Jy/beam
! Clean residual mean=0.000005 rms=0.001424 Jy/beam
! Combined flux in latest and established models = 0.612915 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 29 components and 0.612915 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.323262Jy  sigma=0.001520
! Fit after  self-cal, rms=0.323239Jy  sigma=0.001519
! 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.38 mas, bmaj=3.175 mas, bpa=-0.9295 degrees
! Estimated noise=286.141 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.011189 Jy
! Component: 100  -  total flux cleaned = 0.0176477 Jy
! Component: 150  -  total flux cleaned = 0.0217808 Jy
! Component: 200  -  total flux cleaned = 0.0237057 Jy
! Total flux subtracted in 200 components = 0.0237057 Jy
! Clean residual min=-0.004240 max=0.005627 Jy/beam
! Clean residual mean=-0.000118 rms=0.001129 Jy/beam
! Combined flux in latest and established models = 0.636621 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 46 components and 0.636621 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.322931Jy  sigma=0.001513
! Fit after  self-cal, rms=0.322901Jy  sigma=0.001512
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 144 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.98     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        0.98     KP        1.02     
!   LA        0.99     MC        1.06     MK        0.97     NL        0.97     
!   NY        0.97     OV        0.97     PT        0.96     SC        0.97     
!   TS        1.03     WF        1.04     WZ        0.96     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.98     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        0.90     KP        0.94     
!   LA        1.02     MC        0.92     MK        0.98     NL        0.98     
!   NY        0.95     OV        0.94     PT        0.99     SC        0.97     
!   TS        1.09     WF        0.98     WZ        0.96     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.01     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.15     KP        1.03     
!   LA        1.00     MC        0.93     MK        1.10     NL        0.99     
!   NY        0.97     OV        1.04     PT        1.00     SC        0.98     
!   TS        1.00*    WF        1.03     WZ        0.99     
! 
! 
! Correcting IF 2.
!  A total of 147 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.99     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        0.98     KP        0.97     
!   LA        0.95     MC        0.98     MK        0.96     NL        0.95     
!   NY        0.95     OV        1.00     PT        1.00     SC        1.00     
!   TS        1.01     WF        1.05     WZ        0.97     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.99     GC        0.95     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        0.94     KP        0.98     
!   LA        0.97     MC        1.00     MK        0.93     NL        0.95     
!   NY        0.95     OV        0.95     PT        1.02     SC        0.98     
!   TS        1.09     WF        0.95     WZ        0.97     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.04     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        0.95     KK        1.12     KP        1.22     
!   LA        0.98     MC        1.10     MK        1.06     NL        0.98     
!   NY        0.96     OV        1.06     PT        1.02     SC        1.00     
!   TS        1.00*    WF        1.00     WZ        0.96     
! 
! 
! Correcting IF 3.
!  A total of 144 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.95     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        1.06     KK        1.04     KP        1.02     
!   LA        0.99     MC        1.45     MK        1.00     NL        1.01     
!   NY        0.99     OV        1.04     PT        1.02     SC        0.99     
!   TS        1.03     WF        1.07     WZ        0.95     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        0.97     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.03     KK        1.03     KP        1.08     
!   LA        1.01     MC        0.90     MK        0.97     NL        1.01     
!   NY        0.99     OV        0.99     PT        1.03     SC        1.01     
!   TS        1.11     WF        0.97     WZ        1.00     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        1.00     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        1.05     KK        1.17     KP        1.14     
!   LA        1.03     MC        1.02     MK        1.10     NL        1.03     
!   NY        0.98     OV        1.15     PT        1.03     SC        1.00     
!   TS        1.00*    WF        1.02     WZ        0.97     
! 
! 
! Correcting IF 4.
!  A total of 144 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.99     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        0.95     KK        0.99     KP        1.03     
!   LA        1.00     MC        0.93     MK        1.00     NL        0.99     
!   NY        1.00     OV        0.96     PT        1.05     SC        1.00     
!   TS        1.04     WF        1.05     WZ        1.11     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.00     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        0.97     KP        1.06     
!   LA        1.01     MC        1.22     MK        0.94     NL        1.00     
!   NY        1.03     OV        0.91     PT        1.06     SC        0.99     
!   TS        1.13     WF        0.98     WZ        1.04     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.01     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        1.15     KP        1.11     
!   LA        1.02     MC        0.93     MK        1.10     NL        1.01     
!   NY        0.97     OV        1.05     PT        1.02     SC        0.97     
!   TS        1.00*    WF        0.97     WZ        0.95     
! 
! 
! Fit before self-cal, rms=0.322901Jy  sigma=0.001512
! Fit after  self-cal, rms=0.324414Jy  sigma=0.001484
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.401 mas, bmaj=3.19 mas, bpa=-0.857 degrees
! Estimated noise=288.188 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.5, -5.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00182506 Jy
! Component: 100  -  total flux cleaned = 0.00233713 Jy
! Component: 150  -  total flux cleaned = 0.00261856 Jy
! Component: 200  -  total flux cleaned = 0.00283926 Jy
! Total flux subtracted in 200 components = 0.00283926 Jy
! Clean residual min=-0.002987 max=0.003429 Jy/beam
! Clean residual mean=-0.000072 rms=0.000745 Jy/beam
! Combined flux in latest and established models = 0.63946 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 59 components and 0.63946 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.324346Jy  sigma=0.001484
! Fit after  self-cal, rms=0.324386Jy  sigma=0.001483
! 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.324386Jy  sigma=0.001483
! Fit after  self-cal, rms=0.332366Jy  sigma=0.001465
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.402 mas, bmaj=3.202 mas, bpa=-1.217 degrees
! Estimated noise=288.91 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -3.54456e-05 Jy
! Component: 100  -  total flux cleaned = 0.000542763 Jy
! Component: 150  -  total flux cleaned = 0.000827858 Jy
! Component: 200  -  total flux cleaned = 0.00111411 Jy
! Total flux subtracted in 200 components = 0.00111411 Jy
! Clean residual min=-0.001879 max=0.001860 Jy/beam
! Clean residual mean=0.000052 rms=0.000456 Jy/beam
! Combined flux in latest and established models = 0.640574 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 72 components and 0.640574 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.332325Jy  sigma=0.001464
! Fit after  self-cal, rms=0.332371Jy  sigma=0.001464
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.000337204 Jy
! Component: 100  -  total flux cleaned = 0.000695442 Jy
! Component: 150  -  total flux cleaned = 0.000879691 Jy
! Component: 200  -  total flux cleaned = 0.000945957 Jy
! Total flux subtracted in 200 components = 0.000945957 Jy
! Clean residual min=-0.001878 max=0.001850 Jy/beam
! Clean residual mean=0.000040 rms=0.000451 Jy/beam
! Combined flux in latest and established models = 0.64152 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 81 components and 0.64152 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.332359Jy  sigma=0.001464
! Fit after  self-cal, rms=0.332356Jy  sigma=0.001464
! 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.332356Jy  sigma=0.001464
! Fit after  self-cal, rms=0.333914Jy  sigma=0.001464
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.403 mas, bmaj=3.205 mas, bpa=-1.363 degrees
! Estimated noise=289.286 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 5.824e-05 Jy
! Component: 100  -  total flux cleaned = 0.000319295 Jy
! Component: 150  -  total flux cleaned = 0.000506842 Jy
! Component: 200  -  total flux cleaned = 0.000574376 Jy
! Total flux subtracted in 200 components = 0.000574376 Jy
! Clean residual min=-0.001998 max=0.001727 Jy/beam
! Clean residual mean=0.000038 rms=0.000446 Jy/beam
! Combined flux in latest and established models = 0.642094 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 81 components and 0.642094 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.333897Jy  sigma=0.001464
! Fit after  self-cal, rms=0.333903Jy  sigma=0.001464
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.000183094 Jy
! Component: 100  -  total flux cleaned = 0.000367571 Jy
! Component: 150  -  total flux cleaned = 0.000450325 Jy
! Component: 200  -  total flux cleaned = 0.000501777 Jy
! Total flux subtracted in 200 components = 0.000501777 Jy
! Clean residual min=-0.001985 max=0.001730 Jy/beam
! Clean residual mean=0.000032 rms=0.000444 Jy/beam
! Combined flux in latest and established models = 0.642596 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 87 components and 0.642596 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.333897Jy  sigma=0.001463
! Fit after  self-cal, rms=0.333894Jy  sigma=0.001463
! 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.333894Jy  sigma=0.001463
! Fit after  self-cal, rms=0.334714Jy  sigma=0.001463
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.041 mas, bmaj=8.212 mas, bpa=-89.61 degrees
! Estimated noise=435.205 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000957651 Jy
! Component: 100  -  total flux cleaned = 0.00101178 Jy
! Component: 150  -  total flux cleaned = 0.00106325 Jy
! Component: 200  -  total flux cleaned = 0.00107414 Jy
! Total flux subtracted in 200 components = 0.00107414 Jy
! Clean residual min=-0.001701 max=0.002602 Jy/beam
! Clean residual mean=0.000084 rms=0.000605 Jy/beam
! Combined flux in latest and established models = 0.64367 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 100 components and 0.64367 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.334708Jy  sigma=0.001463
! Fit after  self-cal, rms=0.334708Jy  sigma=0.001463
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 (-13.5, -64).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00228486 Jy
! Component: 100  -  total flux cleaned = 0.00308 Jy
! Component: 150  -  total flux cleaned = 0.00321058 Jy
! Component: 200  -  total flux cleaned = 0.00327027 Jy
! Total flux subtracted in 200 components = 0.00327027 Jy
! Clean residual min=-0.001623 max=0.001798 Jy/beam
! Clean residual mean=-0.000004 rms=0.000536 Jy/beam
! Combined flux in latest and established models = 0.646941 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 126 components and 0.646941 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.334706Jy  sigma=0.001463
! Fit after  self-cal, rms=0.334706Jy  sigma=0.001463
! 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.404 mas, bmaj=3.206 mas, bpa=-1.464 degrees
! Estimated noise=289.546 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.404 x 3.206 at -1.464 degrees (North through East)
! Clean map  min=-0.0018119  max=0.50064 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.334706Jy  sigma=0.001463
! Fit after  self-cal, rms=0.616746Jy  sigma=0.001386
! Inverting map and beam 
! Estimated beam: bmin=2.404 mas, bmaj=3.203 mas, bpa=-1.54 degrees
! Estimated noise=289.436 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000139403 Jy
! Component: 100  -  total flux cleaned = -4.48361e-05 Jy
! Component: 150  -  total flux cleaned = -0.000132944 Jy
! Component: 200  -  total flux cleaned = -0.000174126 Jy
! Total flux subtracted in 200 components = -0.000174126 Jy
! Clean residual min=-0.001749 max=0.001653 Jy/beam
! Clean residual mean=0.000017 rms=0.000403 Jy/beam
! Combined flux in latest and established models = 0.646766 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 152 components and 0.646766 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.616736Jy  sigma=0.001386
! Fit after  self-cal, rms=0.616737Jy  sigma=0.001386
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -3.56824e-06 Jy
! Component: 100  -  total flux cleaned = -4.27653e-05 Jy
! Component: 150  -  total flux cleaned = -4.23378e-05 Jy
! Component: 200  -  total flux cleaned = -4.21543e-05 Jy
! Total flux subtracted in 200 components = -4.21543e-05 Jy
! Clean residual min=-0.001721 max=0.001642 Jy/beam
! Clean residual mean=0.000017 rms=0.000400 Jy/beam
! Combined flux in latest and established models = 0.646724 Jy
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 162 components and 0.646724 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.616732Jy  sigma=0.001386
! Fit after  self-cal, rms=0.616727Jy  sigma=0.001386
! 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.616727Jy  sigma=0.001386
! Fit after  self-cal, rms=0.659876Jy  sigma=0.001386
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.943 mas, bmaj=2.513 mas, bpa=1.132 degrees
! Estimated noise=632.509 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.360275 Jy
! Component: 100  -  total flux cleaned = 0.46544 Jy
! Component: 150  -  total flux cleaned = 0.517475 Jy
! Component: 200  -  total flux cleaned = 0.549525 Jy
! Total flux subtracted in 200 components = 0.549525 Jy
! Clean residual min=-0.005099 max=0.017292 Jy/beam
! Clean residual mean=0.000053 rms=0.001374 Jy/beam
! Combined flux in latest and established models = 0.549525 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 13 model components to the UV plane model.
! The established model now contains 13 components and 0.549526 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.405 mas, bmaj=3.202 mas, bpa=-1.564 degrees
! Estimated noise=289.446 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.0364135 Jy
! Component: 100  -  total flux cleaned = 0.0564878 Jy
! Component: 150  -  total flux cleaned = 0.0688226 Jy
! Component: 200  -  total flux cleaned = 0.0767632 Jy
! Total flux subtracted in 200 components = 0.0767632 Jy
! Clean residual min=-0.001694 max=0.004292 Jy/beam
! Clean residual mean=0.000237 rms=0.000568 Jy/beam
! Combined flux in latest and established models = 0.626289 Jy
! Adding 53 model components to the UV plane model.
! The established model now contains 58 components and 0.626288 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00530615 Jy
! Component: 100  -  total flux cleaned = 0.00893124 Jy
! Component: 150  -  total flux cleaned = 0.011527 Jy
! Component: 200  -  total flux cleaned = 0.0135301 Jy
! Total flux subtracted in 200 components = 0.0135301 Jy
! Clean residual min=-0.001661 max=0.001806 Jy/beam
! Clean residual mean=0.000085 rms=0.000433 Jy/beam
! Combined flux in latest and established models = 0.639819 Jy
! Adding 33 model components to the UV plane model.
! The established model now contains 78 components and 0.639819 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.042 mas, bmaj=8.216 mas, bpa=-89.92 degrees
! Estimated noise=434.949 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00271974 Jy
! Component: 100  -  total flux cleaned = 0.00425225 Jy
! Component: 150  -  total flux cleaned = 0.00527694 Jy
! Component: 200  -  total flux cleaned = 0.00560249 Jy
! Total flux subtracted in 200 components = 0.00560249 Jy
! Clean residual min=-0.001292 max=0.001590 Jy/beam
! Clean residual mean=0.000098 rms=0.000477 Jy/beam
! Combined flux in latest and established models = 0.645421 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.000161422 Jy
! Component: 100  -  total flux cleaned = 0.000321017 Jy
! Component: 150  -  total flux cleaned = 0.000437706 Jy
! Component: 200  -  total flux cleaned = 0.000506971 Jy
! Total flux subtracted in 200 components = 0.000506971 Jy
! Clean residual min=-0.001305 max=0.001528 Jy/beam
! Clean residual mean=0.000079 rms=0.000470 Jy/beam
! Combined flux in latest and established models = 0.645928 Jy
! Adding 55 model components to the UV plane model.
! The established model now contains 123 components and 0.645928 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.405 mas, bmaj=3.202 mas, bpa=-1.564 degrees
! Estimated noise=289.446 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000408291 Jy
! Component: 100  -  total flux cleaned = -0.000244091 Jy
! Component: 150  -  total flux cleaned = -9.4881e-05 Jy
! Component: 200  -  total flux cleaned = 1.36677e-06 Jy
! Total flux subtracted in 200 components = 1.36677e-06 Jy
! Clean residual min=-0.001643 max=0.001805 Jy/beam
! Clean residual mean=0.000023 rms=0.000410 Jy/beam
! Combined flux in latest and established models = 0.645929 Jy
selfcal
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 143 components and 0.645929 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.659880Jy  sigma=0.001386
! Fit after  self-cal, rms=0.659930Jy  sigma=0.001386
wmodel J0808+4950_S_2001_07_05_pus_map.mod
! Writing 143 model components to file: J0808+4950_S_2001_07_05_pus_map.mod
wobs J0808+4950_S_2001_07_05_pus_uvs.fits
! Writing UV FITS file: J0808+4950_S_2001_07_05_pus_uvs.fits
wwins J0808+4950_S_2001_07_05_pus_map.win
! wwins: Wrote 4 windows to J0808+4950_S_2001_07_05_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.000434152 Jy
! Component: 100  -  total flux cleaned = 0.000581599 Jy
! Component: 150  -  total flux cleaned = 0.000777145 Jy
! Component: 200  -  total flux cleaned = 0.00102082 Jy
! Component: 250  -  total flux cleaned = 0.00123156 Jy
! Component: 300  -  total flux cleaned = 0.00138633 Jy
! Component: 350  -  total flux cleaned = 0.0015132 Jy
! Component: 400  -  total flux cleaned = 0.00166332 Jy
! Component: 450  -  total flux cleaned = 0.00181129 Jy
! Component: 500  -  total flux cleaned = 0.00198158 Jy
! Component: 550  -  total flux cleaned = 0.00207785 Jy
! Component: 600  -  total flux cleaned = 0.00222056 Jy
! Component: 650  -  total flux cleaned = 0.00229122 Jy
! Component: 700  -  total flux cleaned = 0.00238442 Jy
! Component: 750  -  total flux cleaned = 0.00245347 Jy
! Component: 800  -  total flux cleaned = 0.00249915 Jy
! Component: 850  -  total flux cleaned = 0.00258972 Jy
! Component: 900  -  total flux cleaned = 0.00261224 Jy
! Component: 950  -  total flux cleaned = 0.00267927 Jy
! Component: 1000  -  total flux cleaned = 0.00276765 Jy
! Component: 1050  -  total flux cleaned = 0.00281153 Jy
! Component: 1100  -  total flux cleaned = 0.00289852 Jy
! Component: 1150  -  total flux cleaned = 0.00289835 Jy
! Component: 1200  -  total flux cleaned = 0.00294131 Jy
! Component: 1250  -  total flux cleaned = 0.00296268 Jy
! Component: 1300  -  total flux cleaned = 0.0030051 Jy
! Component: 1350  -  total flux cleaned = 0.00302613 Jy
! Component: 1400  -  total flux cleaned = 0.00304715 Jy
! Component: 1450  -  total flux cleaned = 0.00310967 Jy
! Component: 1500  -  total flux cleaned = 0.00310965 Jy
! Component: 1550  -  total flux cleaned = 0.00313025 Jy
! Component: 1600  -  total flux cleaned = 0.00319178 Jy
! Component: 1650  -  total flux cleaned = 0.00323242 Jy
! Component: 1700  -  total flux cleaned = 0.00327297 Jy
! Component: 1750  -  total flux cleaned = 0.00331327 Jy
! Component: 1800  -  total flux cleaned = 0.00331329 Jy
! Component: 1850  -  total flux cleaned = 0.00333335 Jy
! Component: 1900  -  total flux cleaned = 0.00341289 Jy
! Component: 1950  -  total flux cleaned = 0.0033931 Jy
! Component: 2000  -  total flux cleaned = 0.00339305 Jy
! Total flux subtracted in 2048 components = 0.00341267 Jy
! Clean residual min=-0.001215 max=0.001266 Jy/beam
! Clean residual mean=-0.000009 rms=0.000362 Jy/beam
! Combined flux in latest and established models = 0.649342 Jy
keep
! Adding 149 model components to the UV plane model.
! The established model now contains 292 components and 0.649342 Jy
wmap "J0808+4950_S_2001_07_05_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.405 x 3.202 at -1.564 degrees (North through East)
! Clean map  min=-0.0014639  max=0.50086 Jy/beam
! Writing clean map to FITS file: J0808+4950_S_2001_07_05_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.500861 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000362484 
device "J0808+4950_S_2001_07_05_pus\_map.eps/VPS"
! Attempting to open device: 'J0808+4950_S_2001_07_05_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.217117 0.217117 0.434233 0.868466 1.73693 3.47386 6.94773 13.8955 27.7909 55.5818
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.001 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.5 
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.405 x 3.202 at -1.564 degrees (North through East)
! Clean map  min=-0.0014639  max=0.50086 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0808+4950_S_2001_07_05_pus\_map.gif/vgif"
! Attempting to open device: 'J0808+4950_S_2001_07_05_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0808+4950_S_2001_07_05_pus_uvs.log closed on Fri Aug 10 00:38:15 2007