! Started logfile: J1751+0939_S_1999_05_10_pus_uvs.log on Tue Jan 22 14:50:27 2008
obs J1751+0939_S_1999_05_10_pus_uva.fits
! Reading UV FITS file: J1751+0939_S_1999_05_10_pus_uva.fits
! AN table 1: 242 integrations on 153 of 153 possible baselines.
! AN table 2: 78 integrations on 153 of 153 possible baselines.
! AN table 3: 124 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.169994 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1751+0939
! 
! 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 2002 lines of history.
! 
! Reading 46192 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 J1751+0939_S_1999_05_10_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 2712 telescope corrections were flagged in sub-array 1.
!  A total of 615 telescope corrections were flagged in sub-array 2.
!  A total of 2173 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 2709 telescope corrections were flagged in sub-array 1.
!  A total of 591 telescope corrections were flagged in sub-array 2.
!  A total of 2173 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 2709 telescope corrections were flagged in sub-array 1.
!  A total of 600 telescope corrections were flagged in sub-array 2.
!  A total of 2173 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 2852 telescope corrections were flagged in sub-array 1.
!  A total of 619 telescope corrections were flagged in sub-array 2.
!  A total of 2184 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.774620Jy  sigma=0.006450
! Fit after  self-cal, rms=0.532555Jy  sigma=0.004556
! 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.162 mas, bmaj=3.531 mas, bpa=1.197 degrees
! Estimated noise=909.067 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 = 1.03722 Jy
! Component: 100  -  total flux cleaned = 1.31632 Jy
! Total flux subtracted in 100 components = 1.31632 Jy
! Clean residual min=-0.035594 max=0.120903 Jy/beam
! Clean residual mean=0.000443 rms=0.010868 Jy/beam
! Combined flux in latest and established models = 1.31632 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 1.31632 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.370566Jy  sigma=0.002759
! Fit after  self-cal, rms=0.370372Jy  sigma=0.002759
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.129779 Jy
! Component: 100  -  total flux cleaned = 0.197401 Jy
! Total flux subtracted in 100 components = 0.197401 Jy
! Clean residual min=-0.032923 max=0.040627 Jy/beam
! Clean residual mean=0.000167 rms=0.007916 Jy/beam
! Combined flux in latest and established models = 1.51373 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 17 components and 1.51373 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.329209Jy  sigma=0.002128
! Fit after  self-cal, rms=0.328904Jy  sigma=0.002127
! 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.55 mas, bmaj=4.341 mas, bpa=1.361 degrees
! Estimated noise=441.529 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.058563 Jy
! Component: 100  -  total flux cleaned = 0.0794055 Jy
! Component: 150  -  total flux cleaned = 0.0903103 Jy
! Component: 200  -  total flux cleaned = 0.0956484 Jy
! Total flux subtracted in 200 components = 0.0956484 Jy
! Clean residual min=-0.020363 max=0.029619 Jy/beam
! Clean residual mean=0.000945 rms=0.004819 Jy/beam
! Combined flux in latest and established models = 1.60937 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 28 components and 1.60937 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.323026Jy  sigma=0.002001
! Fit after  self-cal, rms=0.323013Jy  sigma=0.002001
! Inverting map 
! Added new window around map position (3, 6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0253629 Jy
! Component: 100  -  total flux cleaned = 0.0312484 Jy
! Component: 150  -  total flux cleaned = 0.0312809 Jy
! Component: 200  -  total flux cleaned = 0.0309621 Jy
! Total flux subtracted in 200 components = 0.0309621 Jy
! Clean residual min=-0.020778 max=0.019577 Jy/beam
! Clean residual mean=0.000551 rms=0.004498 Jy/beam
! Combined flux in latest and established models = 1.64034 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 43 components and 1.64034 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.321587Jy  sigma=0.001973
! Fit after  self-cal, rms=0.321314Jy  sigma=0.001970
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 51 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.99     GC        1.00     HH        1.05     
!   HN        1.00     KK        0.95     KP        1.45     LA        1.00     
!   MC        1.01     MK        0.91     NL        0.98     NY        0.97     
!   ON        0.98     OV        1.04     PT        1.02     SC        1.03     
!   WF        1.01     WZ        0.95     
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.00     GC        1.10     HH        1.00*    
!   HN        1.02     KK        1.02     KP        1.09     LA        1.01     
!   MC        1.92     MK        0.97     NL        0.98     NY        1.09     
!   ON        2.13     OV        1.04     PT        1.04     SC        1.04     
!   WF        1.05     WZ        1.22     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.84     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.05     MK        1.00*    NL        1.00*    NY        0.94     
!   ON        1.08     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        0.99     
! 
! 
! Correcting IF 2.
!  A total of 54 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.01     GC        0.97     HH        1.03     
!   HN        0.99     KK        0.93     KP        1.02     LA        0.96     
!   MC        0.96     MK        0.96     NL        0.99     NY        0.96     
!   ON        0.99     OV        1.00     PT        0.99     SC        1.05     
!   WF        1.00     WZ        0.94     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.04     GC        1.08     HH        1.00*    
!   HN        1.00     KK        1.03     KP        1.02     LA        0.97     
!   MC        3.75     MK        1.02     NL        1.00     NY        1.29     
!   ON        1.92     OV        1.00     PT        1.01     SC        0.99     
!   WF        1.02     WZ        1.17     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.90     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.96     MK        1.00*    NL        1.00*    NY        1.01     
!   ON        1.04     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.01     
! 
! 
! Correcting IF 3.
!  A total of 54 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.97     GC        0.98     HH        0.98     
!   HN        0.98     KK        0.93     KP        0.99     LA        0.98     
!   MC        1.43     MK        0.88     NL        0.99     NY        0.95     
!   ON        0.94     OV        0.96     PT        0.94     SC        1.03     
!   WF        0.99     WZ        1.37     
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.00     GC        1.07     HH        1.00*    
!   HN        1.00     KK        1.00     KP        0.99     LA        0.98     
!   MC        2.85     MK        0.95     NL        0.99     NY        1.37     
!   ON        2.26     OV        0.98     PT        0.96     SC        0.90     
!   WF        1.02     WZ        1.14     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.75     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.25     MK        1.00*    NL        1.00*    NY        1.02     
!   ON        1.03     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        0.98     
! 
! 
! Correcting IF 4.
!  A total of 129 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.93     FD        0.96     GC        0.97     HH        0.99     
!   HN        0.98     KK        0.92     KP        0.97     LA        0.97     
!   MC        1.29     MK        0.90     NL        1.00     NY        0.91     
!   ON        0.93     OV        0.93     PT        1.03     SC        1.04     
!   WF        1.00     WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.94     FD        0.98     GC        1.06     HH        1.00*    
!   HN        0.99     KK        0.99     KP        1.00     LA        0.99     
!   MC        2.93     MK        0.98     NL        0.99     NY        1.31     
!   ON        2.19     OV        0.94     PT        1.00     SC        0.91     
!   WF        1.00     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.84     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.03     MK        1.00*    NL        1.00*    NY        0.99     
!   ON        1.11     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.321314Jy  sigma=0.001970
! Fit after  self-cal, rms=0.370756Jy  sigma=0.001616
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.57 mas, bmaj=4.395 mas, bpa=1.606 degrees
! Estimated noise=445.931 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 (11.5, 19.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00340382 Jy
! Component: 100  -  total flux cleaned = 0.00382361 Jy
! Component: 150  -  total flux cleaned = 0.00493689 Jy
! Component: 200  -  total flux cleaned = 0.0058937 Jy
! Total flux subtracted in 200 components = 0.0058937 Jy
! Clean residual min=-0.011161 max=0.011749 Jy/beam
! Clean residual mean=0.000341 rms=0.002416 Jy/beam
! Combined flux in latest and established models = 1.64623 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 62 components and 1.64623 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.369454Jy  sigma=0.001604
! Fit after  self-cal, rms=0.371697Jy  sigma=0.001602
! 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.371697Jy  sigma=0.001602
! Fit after  self-cal, rms=0.386735Jy  sigma=0.001515
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.577 mas, bmaj=4.392 mas, bpa=1.636 degrees
! Estimated noise=446.523 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00220491 Jy
! Component: 100  -  total flux cleaned = -0.00194045 Jy
! Component: 150  -  total flux cleaned = -0.00122769 Jy
! Component: 200  -  total flux cleaned = -0.000816806 Jy
! Total flux subtracted in 200 components = -0.000816806 Jy
! Clean residual min=-0.007015 max=0.007161 Jy/beam
! Clean residual mean=0.000326 rms=0.001694 Jy/beam
! Combined flux in latest and established models = 1.64541 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 74 components and 1.64541 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.386325Jy  sigma=0.001510
! Fit after  self-cal, rms=0.386546Jy  sigma=0.001510
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.00112758 Jy
! Component: 100  -  total flux cleaned = 0.00113609 Jy
! Component: 150  -  total flux cleaned = 0.000982722 Jy
! Component: 200  -  total flux cleaned = 0.000984125 Jy
! Total flux subtracted in 200 components = 0.000984125 Jy
! Clean residual min=-0.006376 max=0.006670 Jy/beam
! Clean residual mean=0.000314 rms=0.001650 Jy/beam
! Combined flux in latest and established models = 1.6464 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 87 components and 1.6464 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.386334Jy  sigma=0.001508
! Fit after  self-cal, rms=0.386350Jy  sigma=0.001508
! 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.386350Jy  sigma=0.001508
! Fit after  self-cal, rms=0.402155Jy  sigma=0.001496
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.582 mas, bmaj=4.391 mas, bpa=1.651 degrees
! Estimated noise=446.614 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00100662 Jy
! Component: 100  -  total flux cleaned = -0.000836375 Jy
! Component: 150  -  total flux cleaned = -0.000688202 Jy
! Component: 200  -  total flux cleaned = -0.000964989 Jy
! Total flux subtracted in 200 components = -0.000964989 Jy
! Clean residual min=-0.005651 max=0.006297 Jy/beam
! Clean residual mean=0.000311 rms=0.001460 Jy/beam
! Combined flux in latest and established models = 1.64543 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 100 components and 1.64543 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.402031Jy  sigma=0.001494
! Fit after  self-cal, rms=0.402157Jy  sigma=0.001494
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 (31, -47.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00455627 Jy
! Component: 100  -  total flux cleaned = 0.00414658 Jy
! Component: 150  -  total flux cleaned = 0.00401572 Jy
! Component: 200  -  total flux cleaned = 0.00377564 Jy
! Total flux subtracted in 200 components = 0.00377564 Jy
! Clean residual min=-0.005621 max=0.005692 Jy/beam
! Clean residual mean=0.000263 rms=0.001417 Jy/beam
! Combined flux in latest and established models = 1.64921 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 111 components and 1.64921 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.401937Jy  sigma=0.001493
! Fit after  self-cal, rms=0.401939Jy  sigma=0.001493
! 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.401939Jy  sigma=0.001493
! Fit after  self-cal, rms=0.406278Jy  sigma=0.001492
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.032 mas, bmaj=9.447 mas, bpa=-7.945 degrees
! Estimated noise=589.563 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00161286 Jy
! Component: 100  -  total flux cleaned = 0.00215732 Jy
! Component: 150  -  total flux cleaned = 0.0023064 Jy
! Component: 200  -  total flux cleaned = 0.00237713 Jy
! Total flux subtracted in 200 components = 0.00237713 Jy
! Clean residual min=-0.006488 max=0.006292 Jy/beam
! Clean residual mean=0.000602 rms=0.001838 Jy/beam
! Combined flux in latest and established models = 1.65158 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 121 components and 1.65158 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.406201Jy  sigma=0.001492
! Fit after  self-cal, rms=0.406219Jy  sigma=0.001492
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.000291088 Jy
! Component: 100  -  total flux cleaned = 0.000230413 Jy
! Component: 150  -  total flux cleaned = 0.000176983 Jy
! Component: 200  -  total flux cleaned = 0.000178921 Jy
! Total flux subtracted in 200 components = 0.000178921 Jy
! Clean residual min=-0.006551 max=0.006373 Jy/beam
! Clean residual mean=0.000600 rms=0.001842 Jy/beam
! Combined flux in latest and established models = 1.65176 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 127 components and 1.65176 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.406171Jy  sigma=0.001492
! Fit after  self-cal, rms=0.406165Jy  sigma=0.001492
! 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.585 mas, bmaj=4.395 mas, bpa=1.674 degrees
! Estimated noise=446.743 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.585 x 4.395 at 1.674 degrees (North through East)
! Clean map  min=-0.0053197  max=1.4035 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.406165Jy  sigma=0.001492
! Fit after  self-cal, rms=0.433363Jy  sigma=0.001277
! Inverting map and beam 
! Estimated beam: bmin=2.584 mas, bmaj=4.394 mas, bpa=1.641 degrees
! Estimated noise=446.244 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00130269 Jy
! Component: 100  -  total flux cleaned = -0.00141591 Jy
! Component: 150  -  total flux cleaned = -0.00184955 Jy
! Component: 200  -  total flux cleaned = -0.00224742 Jy
! Total flux subtracted in 200 components = -0.00224742 Jy
! Clean residual min=-0.004906 max=0.005066 Jy/beam
! Clean residual mean=0.000153 rms=0.001268 Jy/beam
! Combined flux in latest and established models = 1.64952 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 136 components and 1.64952 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.433330Jy  sigma=0.001276
! Fit after  self-cal, rms=0.433368Jy  sigma=0.001276
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000103251 Jy
! Component: 100  -  total flux cleaned = -0.000287801 Jy
! Component: 150  -  total flux cleaned = -0.00028649 Jy
! Component: 200  -  total flux cleaned = -0.000450356 Jy
! Total flux subtracted in 200 components = -0.000450356 Jy
! Clean residual min=-0.004775 max=0.005025 Jy/beam
! Clean residual mean=0.000159 rms=0.001252 Jy/beam
! Combined flux in latest and established models = 1.64907 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 143 components and 1.64907 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.433312Jy  sigma=0.001275
! Fit after  self-cal, rms=0.433329Jy  sigma=0.001275
! 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.433329Jy  sigma=0.001275
! Fit after  self-cal, rms=0.436024Jy  sigma=0.001275
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.211 mas, bmaj=3.519 mas, bpa=3.137 degrees
! Estimated noise=947.779 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.07598 Jy
! Component: 100  -  total flux cleaned = 1.33856 Jy
! Component: 150  -  total flux cleaned = 1.45243 Jy
! Component: 200  -  total flux cleaned = 1.51054 Jy
! Total flux subtracted in 200 components = 1.51054 Jy
! Clean residual min=-0.012330 max=0.028754 Jy/beam
! Clean residual mean=0.000209 rms=0.003505 Jy/beam
! Combined flux in latest and established models = 1.51054 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 17 model components to the UV plane model.
! The established model now contains 17 components and 1.51054 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.586 mas, bmaj=4.396 mas, bpa=1.661 degrees
! Estimated noise=446.324 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.0456176 Jy
! Component: 100  -  total flux cleaned = 0.0714327 Jy
! Component: 150  -  total flux cleaned = 0.0874985 Jy
! Component: 200  -  total flux cleaned = 0.09886 Jy
! Total flux subtracted in 200 components = 0.09886 Jy
! Clean residual min=-0.003942 max=0.007097 Jy/beam
! Clean residual mean=0.000621 rms=0.001496 Jy/beam
! Combined flux in latest and established models = 1.6094 Jy
! Adding 36 model components to the UV plane model.
! The established model now contains 49 components and 1.6094 Jy
! Inverting map 
! Added new window around map position (20, -47.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00896582 Jy
! Component: 100  -  total flux cleaned = 0.0161881 Jy
! Component: 150  -  total flux cleaned = 0.0221108 Jy
! Component: 200  -  total flux cleaned = 0.0269948 Jy
! Total flux subtracted in 200 components = 0.0269948 Jy
! Clean residual min=-0.004147 max=0.005693 Jy/beam
! Clean residual mean=0.000287 rms=0.001239 Jy/beam
! Combined flux in latest and established models = 1.63639 Jy
! Adding 40 model components to the UV plane model.
! The established model now contains 74 components and 1.63639 Jy
! Inverting map 
! Added new window around map position (-12.5, 50.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00534774 Jy
! Component: 100  -  total flux cleaned = 0.00903326 Jy
! Component: 150  -  total flux cleaned = 0.0114522 Jy
! Component: 200  -  total flux cleaned = 0.0127946 Jy
! Total flux subtracted in 200 components = 0.0127946 Jy
! Clean residual min=-0.004235 max=0.005173 Jy/beam
! Clean residual mean=0.000133 rms=0.001186 Jy/beam
! Combined flux in latest and established models = 1.64919 Jy
! Adding 30 model components to the UV plane model.
! The established model now contains 91 components and 1.64919 Jy
! Inverting map 
! Added new window around map position (-12, -1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00209708 Jy
! Component: 100  -  total flux cleaned = 0.00234437 Jy
! Component: 150  -  total flux cleaned = 0.00281715 Jy
! Component: 200  -  total flux cleaned = 0.00315335 Jy
! Total flux subtracted in 200 components = 0.00315335 Jy
! Clean residual min=-0.004359 max=0.004753 Jy/beam
! Clean residual mean=0.000099 rms=0.001175 Jy/beam
! Combined flux in latest and established models = 1.65234 Jy
! Adding 28 model components to the UV plane model.
! The established model now contains 107 components and 1.65234 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.034 mas, bmaj=9.455 mas, bpa=-7.93 degrees
! Estimated noise=588.581 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00079643 Jy
! Component: 100  -  total flux cleaned = 0.00137426 Jy
! Component: 150  -  total flux cleaned = 0.00186595 Jy
! Component: 200  -  total flux cleaned = 0.00220357 Jy
! Total flux subtracted in 200 components = 0.00220357 Jy
! Clean residual min=-0.005277 max=0.005334 Jy/beam
! Clean residual mean=0.000212 rms=0.001515 Jy/beam
! Combined flux in latest and established models = 1.65454 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.000145506 Jy
! Component: 100  -  total flux cleaned = 0.000212042 Jy
! Component: 150  -  total flux cleaned = 8.67643e-05 Jy
! Component: 200  -  total flux cleaned = 2.8748e-05 Jy
! Total flux subtracted in 200 components = 2.8748e-05 Jy
! Clean residual min=-0.005182 max=0.005332 Jy/beam
! Clean residual mean=0.000210 rms=0.001502 Jy/beam
! Combined flux in latest and established models = 1.65457 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 135 components and 1.65457 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.586 mas, bmaj=4.396 mas, bpa=1.661 degrees
! Estimated noise=446.324 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 5.73137e-05 Jy
! Component: 100  -  total flux cleaned = -5.65769e-05 Jy
! Component: 150  -  total flux cleaned = -0.000162533 Jy
! Component: 200  -  total flux cleaned = -0.00026354 Jy
! Total flux subtracted in 200 components = -0.00026354 Jy
! Clean residual min=-0.004024 max=0.004647 Jy/beam
! Clean residual mean=0.000078 rms=0.001146 Jy/beam
! Combined flux in latest and established models = 1.65431 Jy
selfcal
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 148 components and 1.65431 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.435889Jy  sigma=0.001272
! Fit after  self-cal, rms=0.436180Jy  sigma=0.001272
wmodel J1751+0939_S_1999_05_10_pus_map.mod
! Writing 148 model components to file: J1751+0939_S_1999_05_10_pus_map.mod
wobs J1751+0939_S_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J1751+0939_S_1999_05_10_pus_uvs.fits
wwins J1751+0939_S_1999_05_10_pus_map.win
! wwins: Wrote 7 windows to J1751+0939_S_1999_05_10_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00150694 Jy
! Component: 100  -  total flux cleaned = 0.00242501 Jy
! Component: 150  -  total flux cleaned = 0.00293801 Jy
! Component: 200  -  total flux cleaned = 0.00336598 Jy
! Component: 250  -  total flux cleaned = 0.00385338 Jy
! Component: 300  -  total flux cleaned = 0.00439615 Jy
! Component: 350  -  total flux cleaned = 0.00486037 Jy
! Component: 400  -  total flux cleaned = 0.00531616 Jy
! Component: 450  -  total flux cleaned = 0.00582634 Jy
! Component: 500  -  total flux cleaned = 0.0062017 Jy
! Component: 550  -  total flux cleaned = 0.0065102 Jy
! Component: 600  -  total flux cleaned = 0.00681399 Jy
! Component: 650  -  total flux cleaned = 0.00723298 Jy
! Component: 700  -  total flux cleaned = 0.00758677 Jy
! Component: 750  -  total flux cleaned = 0.00793608 Jy
! Component: 800  -  total flux cleaned = 0.00828134 Jy
! Component: 850  -  total flux cleaned = 0.00850855 Jy
! Component: 900  -  total flux cleaned = 0.00879036 Jy
! Component: 950  -  total flux cleaned = 0.00906831 Jy
! Component: 1000  -  total flux cleaned = 0.00923356 Jy
! Component: 1050  -  total flux cleaned = 0.00945162 Jy
! Component: 1100  -  total flux cleaned = 0.00961351 Jy
! Component: 1150  -  total flux cleaned = 0.00972062 Jy
! Component: 1200  -  total flux cleaned = 0.00972066 Jy
! Component: 1250  -  total flux cleaned = 0.00977361 Jy
! Component: 1300  -  total flux cleaned = 0.00982601 Jy
! Component: 1350  -  total flux cleaned = 0.00977397 Jy
! Component: 1400  -  total flux cleaned = 0.00987745 Jy
! Component: 1450  -  total flux cleaned = 0.00998006 Jy
! Component: 1500  -  total flux cleaned = 0.0099291 Jy
! Component: 1550  -  total flux cleaned = 0.00997977 Jy
! Component: 1600  -  total flux cleaned = 0.00997952 Jy
! Component: 1650  -  total flux cleaned = 0.00992953 Jy
! Component: 1700  -  total flux cleaned = 0.00987969 Jy
! Component: 1750  -  total flux cleaned = 0.00992939 Jy
! Component: 1800  -  total flux cleaned = 0.00992949 Jy
! Component: 1850  -  total flux cleaned = 0.00992964 Jy
! Component: 1900  -  total flux cleaned = 0.00992954 Jy
! Component: 1950  -  total flux cleaned = 0.0100263 Jy
! Component: 2000  -  total flux cleaned = 0.00992943 Jy
! Total flux subtracted in 2048 components = 0.0100736 Jy
! Clean residual min=-0.002779 max=0.002400 Jy/beam
! Clean residual mean=-0.000040 rms=0.000959 Jy/beam
! Combined flux in latest and established models = 1.66438 Jy
keep
! Adding 146 model components to the UV plane model.
! The established model now contains 294 components and 1.66438 Jy
![Exited script file: muppet]
wmap "J1751+0939_S_1999_05_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.586 x 4.396 at 1.661 degrees (North through East)
! Clean map  min=-0.0037943  max=1.4106 Jy/beam
! Writing clean map to FITS file: J1751+0939_S_1999_05_10_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.41063 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000959734 
device "J1751+0939_S_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J1751+0939_S_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.204108 0.204108 0.408216 0.816432 1.63286 3.26573 6.53146 13.0629 26.1258 52.2517
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0028 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.41 
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.586 x 4.396 at 1.661 degrees (North through East)
! Clean map  min=-0.0037943  max=1.4106 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1751+0939_S_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J1751+0939_S_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1751+0939_S_1999_05_10_pus_uvs.log closed on Tue Jan 22 14:50:46 2008