! Started logfile: J0808+4950_S_1999_12_20_pus_uvs.log on Thu Dec 20 15:00:26 2007
obs J0808+4950_S_1999_12_20_pus_uva.fits
! Reading UV FITS file: J0808+4950_S_1999_12_20_pus_uva.fits
! AN table 1: 400 integrations on 190 of 190 possible baselines.
! AN table 2: 238 integrations on 190 of 190 possible baselines.
! AN table 3: 47 integrations on 190 of 190 possible baselines.
! AN table 4: 254 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.164441 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 2298 lines of history.
! 
! Reading 117352 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_12_20_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 5398 telescope corrections were flagged in sub-array 1.
!  A total of 3084 telescope corrections were flagged in sub-array 2.
!  A total of 689 telescope corrections were flagged in sub-array 3.
!  A total of 3487 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 5398 telescope corrections were flagged in sub-array 1.
!  A total of 3084 telescope corrections were flagged in sub-array 2.
!  A total of 689 telescope corrections were flagged in sub-array 3.
!  A total of 3487 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 5486 telescope corrections were flagged in sub-array 1.
!  A total of 3112 telescope corrections were flagged in sub-array 2.
!  A total of 715 telescope corrections were flagged in sub-array 3.
!  A total of 3508 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 5398 telescope corrections were flagged in sub-array 1.
!  A total of 3084 telescope corrections were flagged in sub-array 2.
!  A total of 689 telescope corrections were flagged in sub-array 3.
!  A total of 3488 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.878726Jy  sigma=0.006414
! Fit after  self-cal, rms=0.494459Jy  sigma=0.003354
! 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.965 mas, bmaj=2.398 mas, bpa=-3.575 degrees
! Estimated noise=607.512 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.427904 Jy
! Component: 100  -  total flux cleaned = 0.549372 Jy
! Total flux subtracted in 100 components = 0.549372 Jy
! Clean residual min=-0.008867 max=0.053993 Jy/beam
! Clean residual mean=0.000056 rms=0.002690 Jy/beam
! Combined flux in latest and established models = 0.549372 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.549372 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.303017Jy  sigma=0.001878
! Fit after  self-cal, rms=0.302772Jy  sigma=0.001877
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0617106 Jy
! Component: 100  -  total flux cleaned = 0.102393 Jy
! Total flux subtracted in 100 components = 0.102393 Jy
! Clean residual min=-0.007195 max=0.022545 Jy/beam
! Clean residual mean=0.000021 rms=0.001883 Jy/beam
! Combined flux in latest and established models = 0.651765 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 16 components and 0.651765 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.280872Jy  sigma=0.001576
! Fit after  self-cal, rms=0.280663Jy  sigma=0.001575
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0293711 Jy
! Component: 100  -  total flux cleaned = 0.0505707 Jy
! Total flux subtracted in 100 components = 0.0505707 Jy
! Clean residual min=-0.007386 max=0.013029 Jy/beam
! Clean residual mean=0.000004 rms=0.001623 Jy/beam
! Combined flux in latest and established models = 0.702336 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 23 components and 0.702336 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.275412Jy  sigma=0.001486
! Fit after  self-cal, rms=0.275301Jy  sigma=0.001486
! Inverting map 
! Added new window around map position (2, -0.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0163553 Jy
! Component: 100  -  total flux cleaned = 0.0282989 Jy
! Total flux subtracted in 100 components = 0.0282989 Jy
! Clean residual min=-0.007324 max=0.011851 Jy/beam
! Clean residual mean=-0.000006 rms=0.001529 Jy/beam
! Combined flux in latest and established models = 0.730635 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 29 components and 0.730635 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.273850Jy  sigma=0.001456
! Fit after  self-cal, rms=0.273781Jy  sigma=0.001456
! 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.0115433 Jy
! Component: 100  -  total flux cleaned = 0.0195185 Jy
! Total flux subtracted in 100 components = 0.0195185 Jy
! Clean residual min=-0.007129 max=0.007597 Jy/beam
! Clean residual mean=-0.000013 rms=0.001484 Jy/beam
! Combined flux in latest and established models = 0.750153 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 34 components and 0.750153 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.273190Jy  sigma=0.001443
! Fit after  self-cal, rms=0.273133Jy  sigma=0.001442
! 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.564 mas, bmaj=3.081 mas, bpa=-2.177 degrees
! Estimated noise=284.439 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.0108631 Jy
! Component: 100  -  total flux cleaned = 0.0166503 Jy
! Component: 150  -  total flux cleaned = 0.0192544 Jy
! Component: 200  -  total flux cleaned = 0.0202564 Jy
! Total flux subtracted in 200 components = 0.0202564 Jy
! Clean residual min=-0.005960 max=0.005109 Jy/beam
! Clean residual mean=-0.000455 rms=0.001449 Jy/beam
! Combined flux in latest and established models = 0.770409 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 49 components and 0.770409 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.272990Jy  sigma=0.001434
! Fit after  self-cal, rms=0.272937Jy  sigma=0.001434
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 111 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.02     GC        1.03     HH        1.00*    
!   HN        0.98     KK        0.99     KP        1.03     LA        1.02     
!   MC        1.04     MK        0.99     NY        1.01     ON        0.95     
!   OV        0.99     PT        1.04     SC        1.11     TS        1.01     
!   WF        1.00     WZ        1.06     GN        0.99     NL        0.98     
! 
!  A total of 72 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.99     GC        1.05     HH        1.00*    
!   HN        0.95     KK        0.99     KP        0.97     LA        1.03     
!   MC        0.96     MK        0.94     NY        1.00     ON        1.02     
!   OV        0.94     PT        1.00     SC        0.95     TS        1.03     
!   WF        1.06     WZ        1.04     GN        1.06     NL        0.94     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        1.00*    GC        0.99     HH        1.00*    
!   HN        1.00     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.90     MK        1.00*    NY        1.00     ON        1.00     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        0.99     
!   WF        1.09     WZ        0.98     GN        1.00*    NL        1.00*    
! 
!  A total of 48 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        0.98     GC        1.01     HH        1.00*    
!   HN        0.99     KK        1.00*    KP        1.02     LA        0.98     
!   MC        0.95     MK        0.98     NY        0.96     ON        1.04     
!   OV        0.97     PT        1.00     SC        1.04     TS        1.00*    
!   WF        1.05     WZ        1.08     GN        0.97     NL        0.96     
! 
! 
! Correcting IF 2.
!  A total of 111 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.07     GC        1.03     HH        1.00*    
!   HN        1.02     KK        0.95     KP        1.01     LA        1.00     
!   MC        1.11     MK        0.97     NY        1.02     ON        0.98     
!   OV        0.96     PT        0.99     SC        1.16     TS        1.02     
!   WF        1.03     WZ        1.10     GN        1.01     NL        0.98     
! 
!  A total of 72 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.04     GC        1.06     HH        1.00*    
!   HN        1.02     KK        0.98     KP        1.00     LA        1.01     
!   MC        1.04     MK        0.95     NY        0.97     ON        1.19     
!   OV        0.91     PT        0.98     SC        0.93     TS        1.04     
!   WF        1.04     WZ        1.06     GN        1.06     NL        0.95     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.00*    GC        0.99     HH        1.00*    
!   HN        1.08     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.88     MK        1.00*    NY        1.01     ON        0.98     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00     
!   WF        1.06     WZ        1.03     GN        1.00*    NL        1.00*    
! 
!  A total of 48 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.03     GC        1.00     HH        1.00*    
!   HN        1.04     KK        1.00*    KP        1.00     LA        0.96     
!   MC        1.06     MK        0.99     NY        0.99     ON        1.04     
!   OV        0.95     PT        0.98     SC        1.05     TS        1.00*    
!   WF        1.06     WZ        1.13     GN        0.98     NL        0.96     
! 
! 
! Correcting IF 3.
!  A total of 120 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.05     GC        1.04     HH        1.00*    
!   HN        1.01     KK        1.00     KP        1.00     LA        1.04     
!   MC        1.00*    MK        0.97     NY        1.02     ON        0.94     
!   OV        1.00     PT        0.99     SC        1.16     TS        0.98     
!   WF        1.01     WZ        1.16     GN        1.01     NL        0.97     
! 
!  A total of 72 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.02     GC        1.06     HH        1.00*    
!   HN        0.98     KK        0.95     KP        1.00     LA        1.06     
!   MC        1.00*    MK        0.92     NY        1.01     ON        1.02     
!   OV        0.95     PT        0.89     SC        0.98     TS        1.00     
!   WF        1.03     WZ        1.11     GN        1.08     NL        0.93     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.00*    GC        1.05     HH        1.00*    
!   HN        1.04     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        1.00*    NY        1.05     ON        1.03     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        0.95     
!   WF        1.07     WZ        0.99     GN        1.00*    NL        1.00*    
! 
!  A total of 48 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.00     GC        1.01     HH        1.00*    
!   HN        1.03     KK        1.00*    KP        0.98     LA        0.99     
!   MC        1.00*    MK        0.98     NY        0.99     ON        1.07     
!   OV        0.98     PT        0.96     SC        1.09     TS        1.00*    
!   WF        1.03     WZ        1.17     GN        0.98     NL        0.96     
! 
! 
! Correcting IF 4.
!  A total of 111 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.04     GC        1.04     HH        1.00*    
!   HN        1.00     KK        1.00     KP        1.00     LA        1.03     
!   MC        0.96     MK        1.01     NY        1.02     ON        1.07     
!   OV        0.97     PT        1.02     SC        1.14     TS        1.01     
!   WF        1.02     WZ        1.15     GN        1.02     NL        0.96     
! 
!  A total of 72 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        1.02     GC        1.05     HH        1.00*    
!   HN        0.98     KK        0.98     KP        1.01     LA        1.04     
!   MC        0.80     MK        0.98     NY        0.97     ON        0.98     
!   OV        0.92     PT        0.87     SC        1.01     TS        1.01     
!   WF        1.04     WZ        1.09     GN        1.09     NL        0.95     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.00*    GC        1.02     HH        1.00*    
!   HN        1.10     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.82     MK        1.00*    NY        1.02     ON        1.00     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        0.94     
!   WF        1.02     WZ        1.05     GN        1.00*    NL        1.00*    
! 
!  A total of 48 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        1.00     GC        1.03     HH        1.00*    
!   HN        1.03     KK        1.00*    KP        1.00     LA        1.00     
!   MC        0.89     MK        1.03     NY        0.99     ON        1.06     
!   OV        0.96     PT        1.03     SC        1.11     TS        1.00*    
!   WF        1.04     WZ        1.17     GN        1.00     NL        0.94     
! 
! 
! Fit before self-cal, rms=0.272937Jy  sigma=0.001434
! Fit after  self-cal, rms=0.277364Jy  sigma=0.001400
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.589 mas, bmaj=3.106 mas, bpa=-2.012 degrees
! Estimated noise=286.156 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.00471372 Jy
! Component: 100  -  total flux cleaned = -0.00657975 Jy
! Component: 150  -  total flux cleaned = -0.00691308 Jy
! Component: 200  -  total flux cleaned = -0.00719348 Jy
! Total flux subtracted in 200 components = -0.00719348 Jy
! Clean residual min=-0.004409 max=0.003378 Jy/beam
! Clean residual mean=-0.000195 rms=0.001049 Jy/beam
! Combined flux in latest and established models = 0.763216 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 62 components and 0.763216 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.277242Jy  sigma=0.001399
! Fit after  self-cal, rms=0.277422Jy  sigma=0.001399
! 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.277422Jy  sigma=0.001399
! Fit after  self-cal, rms=0.283209Jy  sigma=0.001363
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.585 mas, bmaj=3.117 mas, bpa=-1.494 degrees
! Estimated noise=286.172 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0010861 Jy
! Component: 100  -  total flux cleaned = -0.00079888 Jy
! Component: 150  -  total flux cleaned = -0.000674564 Jy
! Component: 200  -  total flux cleaned = -0.000565166 Jy
! Total flux subtracted in 200 components = -0.000565166 Jy
! Clean residual min=-0.001766 max=0.001739 Jy/beam
! Clean residual mean=0.000123 rms=0.000464 Jy/beam
! Combined flux in latest and established models = 0.762651 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 70 components and 0.762651 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.283175Jy  sigma=0.001363
! Fit after  self-cal, rms=0.283268Jy  sigma=0.001363
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.0001574 Jy
! Component: 100  -  total flux cleaned = 0.000385446 Jy
! Component: 150  -  total flux cleaned = 0.000501496 Jy
! Component: 200  -  total flux cleaned = 0.000602784 Jy
! Total flux subtracted in 200 components = 0.000602784 Jy
! Clean residual min=-0.001754 max=0.001740 Jy/beam
! Clean residual mean=0.000116 rms=0.000461 Jy/beam
! Combined flux in latest and established models = 0.763253 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 73 components and 0.763253 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.283252Jy  sigma=0.001363
! Fit after  self-cal, rms=0.283254Jy  sigma=0.001363
! 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.283254Jy  sigma=0.001363
! Fit after  self-cal, rms=0.284650Jy  sigma=0.001362
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.588 mas, bmaj=3.122 mas, bpa=-1.529 degrees
! Estimated noise=286.494 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000627651 Jy
! Component: 100  -  total flux cleaned = -0.000528296 Jy
! Component: 150  -  total flux cleaned = -0.000441939 Jy
! Component: 200  -  total flux cleaned = -0.000366624 Jy
! Total flux subtracted in 200 components = -0.000366624 Jy
! Clean residual min=-0.001661 max=0.001752 Jy/beam
! Clean residual mean=0.000128 rms=0.000439 Jy/beam
! Combined flux in latest and established models = 0.762887 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 74 components and 0.762887 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.284635Jy  sigma=0.001362
! Fit after  self-cal, rms=0.284647Jy  sigma=0.001362
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.000113211 Jy
! Component: 100  -  total flux cleaned = 0.000275381 Jy
! Component: 150  -  total flux cleaned = 0.000331825 Jy
! Component: 200  -  total flux cleaned = 0.000356452 Jy
! Total flux subtracted in 200 components = 0.000356452 Jy
! Clean residual min=-0.001667 max=0.001758 Jy/beam
! Clean residual mean=0.000124 rms=0.000438 Jy/beam
! Combined flux in latest and established models = 0.763243 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 75 components and 0.763243 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.284640Jy  sigma=0.001362
! Fit after  self-cal, rms=0.284641Jy  sigma=0.001362
! 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.284641Jy  sigma=0.001362
! Fit after  self-cal, rms=0.285246Jy  sigma=0.001361
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.246 mas, bmaj=9.153 mas, bpa=-2.881 degrees
! Estimated noise=413.318 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000300272 Jy
! Component: 100  -  total flux cleaned = 0.000269246 Jy
! Component: 150  -  total flux cleaned = 0.000229713 Jy
! Component: 200  -  total flux cleaned = 0.000216471 Jy
! Total flux subtracted in 200 components = 0.000216471 Jy
! Clean residual min=-0.001795 max=0.002296 Jy/beam
! Clean residual mean=0.000366 rms=0.000615 Jy/beam
! Combined flux in latest and established models = 0.763459 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 82 components and 0.76346 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.285244Jy  sigma=0.001361
! Fit after  self-cal, rms=0.285245Jy  sigma=0.001361
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.000147353 Jy
! Component: 100  -  total flux cleaned = 0.000164016 Jy
! Component: 150  -  total flux cleaned = 0.000164691 Jy
! Component: 200  -  total flux cleaned = 0.000164727 Jy
! Total flux subtracted in 200 components = 0.000164727 Jy
! Clean residual min=-0.001830 max=0.002305 Jy/beam
! Clean residual mean=0.000362 rms=0.000619 Jy/beam
! Combined flux in latest and established models = 0.763624 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 83 components and 0.763624 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.285242Jy  sigma=0.001361
! Fit after  self-cal, rms=0.285242Jy  sigma=0.001361
! 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.59 mas, bmaj=3.126 mas, bpa=-1.54 degrees
! Estimated noise=286.76 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.59 x 3.126 at -1.54 degrees (North through East)
! Clean map  min=-0.0015909  max=0.60483 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.285242Jy  sigma=0.001361
! Fit after  self-cal, rms=0.334025Jy  sigma=0.001255
! Inverting map and beam 
! Estimated beam: bmin=2.592 mas, bmaj=3.124 mas, bpa=-1.588 degrees
! Estimated noise=286.495 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000303069 Jy
! Component: 100  -  total flux cleaned = -0.000345296 Jy
! Component: 150  -  total flux cleaned = -0.000380626 Jy
! Component: 200  -  total flux cleaned = -0.000381516 Jy
! Total flux subtracted in 200 components = -0.000381516 Jy
! Clean residual min=-0.001361 max=0.001616 Jy/beam
! Clean residual mean=0.000124 rms=0.000378 Jy/beam
! Combined flux in latest and established models = 0.763243 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 84 components and 0.763243 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.334014Jy  sigma=0.001255
! Fit after  self-cal, rms=0.334018Jy  sigma=0.001255
! Inverting map 
! Added new window around map position (38, -18.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00051913 Jy
! Component: 100  -  total flux cleaned = 0.000510672 Jy
! Component: 150  -  total flux cleaned = 0.000479977 Jy
! Component: 200  -  total flux cleaned = 0.000479391 Jy
! Total flux subtracted in 200 components = 0.00047939 Jy
! Clean residual min=-0.001366 max=0.001573 Jy/beam
! Clean residual mean=0.000120 rms=0.000376 Jy/beam
! Combined flux in latest and established models = 0.763722 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 94 components and 0.763722 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.334002Jy  sigma=0.001255
! Fit after  self-cal, rms=0.334001Jy  sigma=0.001255
! 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.334001Jy  sigma=0.001255
! Fit after  self-cal, rms=0.337226Jy  sigma=0.001255
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.977 mas, bmaj=2.421 mas, bpa=-3.888 degrees
! Estimated noise=612.931 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.432269 Jy
! Component: 100  -  total flux cleaned = 0.5545 Jy
! Component: 150  -  total flux cleaned = 0.613452 Jy
! Component: 200  -  total flux cleaned = 0.650771 Jy
! Total flux subtracted in 200 components = 0.650771 Jy
! Clean residual min=-0.004719 max=0.020385 Jy/beam
! Clean residual mean=0.000045 rms=0.001367 Jy/beam
! Combined flux in latest and established models = 0.650772 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.650772 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.593 mas, bmaj=3.126 mas, bpa=-1.551 degrees
! Estimated noise=286.442 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.0489766 Jy
! Component: 100  -  total flux cleaned = 0.074915 Jy
! Component: 150  -  total flux cleaned = 0.0897143 Jy
! Component: 200  -  total flux cleaned = 0.098533 Jy
! Total flux subtracted in 200 components = 0.098533 Jy
! Clean residual min=-0.001441 max=0.004608 Jy/beam
! Clean residual mean=0.000245 rms=0.000550 Jy/beam
! Combined flux in latest and established models = 0.749305 Jy
! Adding 44 model components to the UV plane model.
! The established model now contains 50 components and 0.749304 Jy
! Inverting map 
! Added new window around map position (-0.5, -4.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00552038 Jy
! Component: 100  -  total flux cleaned = 0.00912276 Jy
! Component: 150  -  total flux cleaned = 0.0113357 Jy
! Component: 200  -  total flux cleaned = 0.0122276 Jy
! Total flux subtracted in 200 components = 0.0122276 Jy
! Clean residual min=-0.001416 max=0.001691 Jy/beam
! Clean residual mean=0.000134 rms=0.000394 Jy/beam
! Combined flux in latest and established models = 0.761532 Jy
! Adding 29 model components to the UV plane model.
! The established model now contains 69 components and 0.761532 Jy
! Inverting map 
! Added new window around map position (20, -48.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00101922 Jy
! Component: 100  -  total flux cleaned = 0.00160366 Jy
! Component: 150  -  total flux cleaned = 0.00212858 Jy
! Component: 200  -  total flux cleaned = 0.0024492 Jy
! Total flux subtracted in 200 components = 0.0024492 Jy
! Clean residual min=-0.001491 max=0.001613 Jy/beam
! Clean residual mean=0.000112 rms=0.000384 Jy/beam
! Combined flux in latest and established models = 0.763981 Jy
! Adding 26 model components to the UV plane model.
! The established model now contains 77 components and 0.763981 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.24 mas, bmaj=9.144 mas, bpa=-2.95 degrees
! Estimated noise=412.596 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00120997 Jy
! Component: 100  -  total flux cleaned = 0.00129893 Jy
! Component: 150  -  total flux cleaned = 0.00136885 Jy
! Component: 200  -  total flux cleaned = 0.00146865 Jy
! Total flux subtracted in 200 components = 0.00146865 Jy
! Clean residual min=-0.001019 max=0.001612 Jy/beam
! Clean residual mean=0.000316 rms=0.000454 Jy/beam
! Combined flux in latest and established models = 0.76545 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 = 3.4449e-05 Jy
! Component: 100  -  total flux cleaned = 6.43237e-05 Jy
! Component: 150  -  total flux cleaned = 9.10047e-05 Jy
! Component: 200  -  total flux cleaned = 0.000103644 Jy
! Total flux subtracted in 200 components = 0.000103644 Jy
! Clean residual min=-0.001012 max=0.001618 Jy/beam
! Clean residual mean=0.000313 rms=0.000450 Jy/beam
! Combined flux in latest and established models = 0.765554 Jy
! Adding 33 model components to the UV plane model.
! The established model now contains 103 components and 0.765554 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.593 mas, bmaj=3.126 mas, bpa=-1.551 degrees
! Estimated noise=286.442 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000177871 Jy
! Component: 100  -  total flux cleaned = -0.000135617 Jy
! Component: 150  -  total flux cleaned = -9.63409e-05 Jy
! Component: 200  -  total flux cleaned = -5.97938e-05 Jy
! Total flux subtracted in 200 components = -5.97938e-05 Jy
! Clean residual min=-0.001485 max=0.001610 Jy/beam
! Clean residual mean=0.000099 rms=0.000374 Jy/beam
! Combined flux in latest and established models = 0.765494 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 107 components and 0.765494 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.337220Jy  sigma=0.001255
! Fit after  self-cal, rms=0.337234Jy  sigma=0.001255
wmodel J0808+4950_S_1999_12_20_pus_map.mod
! Writing 107 model components to file: J0808+4950_S_1999_12_20_pus_map.mod
wobs J0808+4950_S_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J0808+4950_S_1999_12_20_pus_uvs.fits
wwins J0808+4950_S_1999_12_20_pus_map.win
! wwins: Wrote 6 windows to J0808+4950_S_1999_12_20_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.000549366 Jy
! Component: 100  -  total flux cleaned = 0.0010548 Jy
! Component: 150  -  total flux cleaned = 0.0014898 Jy
! Component: 200  -  total flux cleaned = 0.00188765 Jy
! Component: 250  -  total flux cleaned = 0.00227667 Jy
! Component: 300  -  total flux cleaned = 0.00265748 Jy
! Component: 350  -  total flux cleaned = 0.00300783 Jy
! Component: 400  -  total flux cleaned = 0.003352 Jy
! Component: 450  -  total flux cleaned = 0.00364573 Jy
! Component: 500  -  total flux cleaned = 0.00389098 Jy
! Component: 550  -  total flux cleaned = 0.00415502 Jy
! Component: 600  -  total flux cleaned = 0.00437226 Jy
! Component: 650  -  total flux cleaned = 0.00458685 Jy
! Component: 700  -  total flux cleaned = 0.00477797 Jy
! Component: 750  -  total flux cleaned = 0.00492515 Jy
! Component: 800  -  total flux cleaned = 0.0050713 Jy
! Component: 850  -  total flux cleaned = 0.00523696 Jy
! Component: 900  -  total flux cleaned = 0.0054012 Jy
! Component: 950  -  total flux cleaned = 0.00560469 Jy
! Component: 1000  -  total flux cleaned = 0.00572591 Jy
! Component: 1050  -  total flux cleaned = 0.00590651 Jy
! Component: 1100  -  total flux cleaned = 0.00602615 Jy
! Component: 1150  -  total flux cleaned = 0.00616471 Jy
! Component: 1200  -  total flux cleaned = 0.00632202 Jy
! Component: 1250  -  total flux cleaned = 0.00645852 Jy
! Component: 1300  -  total flux cleaned = 0.00653618 Jy
! Component: 1350  -  total flux cleaned = 0.00661335 Jy
! Component: 1400  -  total flux cleaned = 0.00676693 Jy
! Component: 1450  -  total flux cleaned = 0.00680514 Jy
! Component: 1500  -  total flux cleaned = 0.0069759 Jy
! Component: 1550  -  total flux cleaned = 0.00703247 Jy
! Component: 1600  -  total flux cleaned = 0.0070889 Jy
! Component: 1650  -  total flux cleaned = 0.00723836 Jy
! Component: 1700  -  total flux cleaned = 0.00731269 Jy
! Component: 1750  -  total flux cleaned = 0.0074236 Jy
! Component: 1800  -  total flux cleaned = 0.007442 Jy
! Component: 1850  -  total flux cleaned = 0.0075336 Jy
! Component: 1900  -  total flux cleaned = 0.00762484 Jy
! Component: 1950  -  total flux cleaned = 0.00767933 Jy
! Component: 2000  -  total flux cleaned = 0.00775164 Jy
! Total flux subtracted in 2048 components = 0.00782378 Jy
! Clean residual min=-0.001164 max=0.001075 Jy/beam
! Clean residual mean=0.000034 rms=0.000333 Jy/beam
! Combined flux in latest and established models = 0.773318 Jy
keep
! Adding 166 model components to the UV plane model.
! The established model now contains 273 components and 0.773317 Jy
![Exited script file: muppet]
wmap "J0808+4950_S_1999_12_20_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.593 x 3.126 at -1.551 degrees (North through East)
! Clean map  min=-0.0013918  max=0.60422 Jy/beam
! Writing clean map to FITS file: J0808+4950_S_1999_12_20_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.604217 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000332813 
device "J0808+4950_S_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J0808+4950_S_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.165245 0.165245 0.33049 0.66098 1.32196 2.64392 5.28784 10.5757 21.1514 42.3027 84.6055
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0009 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.604 
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.593 x 3.126 at -1.551 degrees (North through East)
! Clean map  min=-0.0013918  max=0.60422 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0808+4950_S_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J0808+4950_S_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0808+4950_S_1999_12_20_pus_uvs.log closed on Thu Dec 20 15:01:54 2007