! Started logfile: J1751+0939_S_2000_05_22_pus_uvs.log on Mon Nov 19 18:56:45 2007
obs J1751+0939_S_2000_05_22_pus_uva.fits
! Reading UV FITS file: J1751+0939_S_2000_05_22_pus_uva.fits
! AN table 1: 66 integrations on 190 of 190 possible baselines.
! AN table 2: 44 integrations on 190 of 190 possible baselines.
! AN table 3: 89 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.212748 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 2003 lines of history.
! 
! Reading 32176 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_2000_05_22_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 673 telescope corrections were flagged in sub-array 1.
!  A total of 476 telescope corrections were flagged in sub-array 2.
!  A total of 1293 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 673 telescope corrections were flagged in sub-array 1.
!  A total of 476 telescope corrections were flagged in sub-array 2.
!  A total of 1293 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 673 telescope corrections were flagged in sub-array 1.
!  A total of 476 telescope corrections were flagged in sub-array 2.
!  A total of 1293 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 673 telescope corrections were flagged in sub-array 1.
!  A total of 476 telescope corrections were flagged in sub-array 2.
!  A total of 1293 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.139826Jy  sigma=0.013285
! Fit after  self-cal, rms=0.509509Jy  sigma=0.005607
! 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.921 mas, bmaj=4.061 mas, bpa=-0.4399 degrees
! Estimated noise=763.409 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.0162 Jy
! Component: 100  -  total flux cleaned = 1.27355 Jy
! Total flux subtracted in 100 components = 1.27355 Jy
! Clean residual min=-0.031649 max=0.110638 Jy/beam
! Clean residual mean=0.000406 rms=0.009540 Jy/beam
! Combined flux in latest and established models = 1.27355 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 1.27355 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.389083Jy  sigma=0.003494
! Fit after  self-cal, rms=0.388642Jy  sigma=0.003493
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.121983 Jy
! Component: 100  -  total flux cleaned = 0.187667 Jy
! Total flux subtracted in 100 components = 0.187667 Jy
! Clean residual min=-0.022768 max=0.032818 Jy/beam
! Clean residual mean=0.000053 rms=0.005879 Jy/beam
! Combined flux in latest and established models = 1.46121 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 18 components and 1.46121 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.353888Jy  sigma=0.002594
! Fit after  self-cal, rms=0.353211Jy  sigma=0.002592
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0392646 Jy
! Component: 100  -  total flux cleaned = 0.0628888 Jy
! Total flux subtracted in 100 components = 0.0628887 Jy
! Clean residual min=-0.022356 max=0.024587 Jy/beam
! Clean residual mean=-0.000062 rms=0.005256 Jy/beam
! Combined flux in latest and established models = 1.5241 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 24 components and 1.5241 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.350531Jy  sigma=0.002441
! Fit after  self-cal, rms=0.350339Jy  sigma=0.002440
! 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.346 mas, bmaj=5.255 mas, bpa=-2.213 degrees
! Estimated noise=399.951 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.0273065 Jy
! Component: 100  -  total flux cleaned = 0.0382136 Jy
! Component: 150  -  total flux cleaned = 0.0404205 Jy
! Component: 200  -  total flux cleaned = 0.0406436 Jy
! Total flux subtracted in 200 components = 0.0406436 Jy
! Clean residual min=-0.022317 max=0.022274 Jy/beam
! Clean residual mean=-0.000227 rms=0.005420 Jy/beam
! Combined flux in latest and established models = 1.56475 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 32 components and 1.56475 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.351539Jy  sigma=0.002370
! Fit after  self-cal, rms=0.351518Jy  sigma=0.002370
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.96     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        0.94     KP        0.86     
!   MA        1.00*    MC        1.00*    MK        0.97     NL        0.98     
!   NY        1.00*    OV        0.98     PT        0.97     SC        0.98     
!   TS        1.00*    WF        0.92     WZ        1.00*    LA        0.97     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.06     GC        1.00*    GG        1.00*    
!   HH        1.00     HN        1.01     KK        1.00*    KP        1.01     
!   MA        3.01     MC        1.02     MK        1.00*    NL        1.06     
!   NY        1.03     OV        1.00*    PT        1.08     SC        1.05     
!   TS        1.00*    WF        1.07     WZ        0.99     LA        1.08     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.01     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        0.97     KP        1.06     
!   MA        1.97     MC        1.07     MK        1.09     NL        1.01     
!   NY        1.08     OV        1.02     PT        0.99     SC        0.99     
!   TS        0.86     WF        1.20     WZ        1.02     LA        1.03     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.98     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        1.05     KK        0.95     KP        0.94     
!   MA        1.00*    MC        1.00*    MK        0.93     NL        1.02     
!   NY        1.00*    OV        0.96     PT        0.98     SC        0.99     
!   TS        1.00*    WF        1.02     WZ        1.00*    LA        0.94     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.08     GC        1.00*    GG        1.00*    
!   HH        0.99     HN        1.08     KK        1.00*    KP        1.06     
!   MA        1.26     MC        0.86     MK        1.00*    NL        1.11     
!   NY        1.02     OV        1.00*    PT        1.09     SC        1.08     
!   TS        1.00*    WF        1.03     WZ        0.98     LA        1.03     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.04     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        1.06     KK        0.97     KP        1.02     
!   MA        0.74     MC        0.93     MK        1.04     NL        1.05     
!   NY        1.07     OV        1.01     PT        1.00     SC        1.01     
!   TS        0.88     WF        1.02     WZ        1.03     LA        0.98     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        0.96     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        0.92     KP        1.00     
!   MA        1.00*    MC        1.00*    MK        0.93     NL        0.98     
!   NY        1.00*    OV        0.99     PT        0.99     SC        0.98     
!   TS        1.00*    WF        1.02     WZ        1.00*    LA        0.97     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.07     GC        1.00*    GG        1.00*    
!   HH        0.91     HN        1.06     KK        1.00*    KP        1.11     
!   MA        2.05     MC        1.32     MK        1.00*    NL        1.05     
!   NY        1.03     OV        1.00*    PT        1.07     SC        1.07     
!   TS        1.00*    WF        1.03     WZ        0.98     LA        1.09     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.02     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        0.94     KP        1.01     
!   MA        1.50     MC        1.12     MK        1.05     NL        1.00     
!   NY        1.09     OV        1.03     PT        0.94     SC        0.98     
!   TS        0.90     WF        1.00     WZ        1.04     LA        1.04     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.97     GC        0.96     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        0.94     KP        0.97     
!   MA        1.00*    MC        1.00*    MK        0.98     NL        0.99     
!   NY        1.00*    OV        0.96     PT        1.25     SC        0.99     
!   TS        1.00*    WF        1.01     WZ        1.00*    LA        0.98     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.07     GC        1.00*    GG        1.00*    
!   HH        1.09     HN        1.05     KK        1.00*    KP        1.08     
!   MA        1.51     MC        2.23     MK        1.00*    NL        1.08     
!   NY        1.00     OV        1.00*    PT        1.10     SC        1.06     
!   TS        1.00*    WF        1.05     WZ        0.96     LA        1.08     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.02     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        0.99     KP        1.02     
!   MA        2.86     MC        1.70     MK        1.10     NL        1.01     
!   NY        1.04     OV        1.00     PT        0.87     SC        0.98     
!   TS        0.92     WF        1.01     WZ        1.00     LA        1.03     
! 
! 
! Fit before self-cal, rms=0.351518Jy  sigma=0.002370
! Fit after  self-cal, rms=0.499207Jy  sigma=0.001826
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.385 mas, bmaj=5.313 mas, bpa=-2.373 degrees
! Estimated noise=401.921 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 (3, 3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00595261 Jy
! Component: 100  -  total flux cleaned = 0.00599585 Jy
! Component: 150  -  total flux cleaned = 0.00714738 Jy
! Component: 200  -  total flux cleaned = 0.00745824 Jy
! Total flux subtracted in 200 components = 0.00745824 Jy
! Clean residual min=-0.009483 max=0.008998 Jy/beam
! Clean residual mean=0.000366 rms=0.001724 Jy/beam
! Combined flux in latest and established models = 1.5722 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 44 components and 1.5722 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.498178Jy  sigma=0.001800
! Fit after  self-cal, rms=0.498950Jy  sigma=0.001797
! 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.498950Jy  sigma=0.001797
! Fit after  self-cal, rms=0.506650Jy  sigma=0.001778
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.394 mas, bmaj=5.314 mas, bpa=-2.325 degrees
! Estimated noise=401.455 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00436411 Jy
! Component: 100  -  total flux cleaned = -0.00408996 Jy
! Component: 150  -  total flux cleaned = -0.00384283 Jy
! Component: 200  -  total flux cleaned = -0.00338349 Jy
! Total flux subtracted in 200 components = -0.00338349 Jy
! Clean residual min=-0.007149 max=0.006062 Jy/beam
! Clean residual mean=0.000268 rms=0.001334 Jy/beam
! Combined flux in latest and established models = 1.56882 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 49 components and 1.56882 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.506215Jy  sigma=0.001769
! Fit after  self-cal, rms=0.506272Jy  sigma=0.001768
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.00169861 Jy
! Component: 100  -  total flux cleaned = 0.00241125 Jy
! Component: 150  -  total flux cleaned = 0.0027287 Jy
! Component: 200  -  total flux cleaned = 0.00329532 Jy
! Total flux subtracted in 200 components = 0.00329532 Jy
! Clean residual min=-0.006045 max=0.005547 Jy/beam
! Clean residual mean=0.000239 rms=0.001245 Jy/beam
! Combined flux in latest and established models = 1.57212 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 54 components and 1.57212 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.506146Jy  sigma=0.001765
! Fit after  self-cal, rms=0.506162Jy  sigma=0.001764
! 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.506162Jy  sigma=0.001764
! Fit after  self-cal, rms=0.516017Jy  sigma=0.001762
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.402 mas, bmaj=5.322 mas, bpa=-2.337 degrees
! Estimated noise=401.529 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00395655 Jy
! Component: 100  -  total flux cleaned = -0.0037639 Jy
! Component: 150  -  total flux cleaned = -0.00360558 Jy
! Component: 200  -  total flux cleaned = -0.00333297 Jy
! Total flux subtracted in 200 components = -0.00333297 Jy
! Clean residual min=-0.004975 max=0.005100 Jy/beam
! Clean residual mean=0.000200 rms=0.001078 Jy/beam
! Combined flux in latest and established models = 1.56878 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 57 components and 1.56878 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.515877Jy  sigma=0.001759
! Fit after  self-cal, rms=0.515934Jy  sigma=0.001759
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.000799707 Jy
! Component: 100  -  total flux cleaned = 0.00112801 Jy
! Component: 150  -  total flux cleaned = 0.00122569 Jy
! Component: 200  -  total flux cleaned = 0.00140716 Jy
! Total flux subtracted in 200 components = 0.00140716 Jy
! Clean residual min=-0.004807 max=0.004899 Jy/beam
! Clean residual mean=0.000187 rms=0.001047 Jy/beam
! Combined flux in latest and established models = 1.57019 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 62 components and 1.57019 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.515889Jy  sigma=0.001758
! Fit after  self-cal, rms=0.515900Jy  sigma=0.001758
! Inverting map 
! Added new window around map position (16, 24).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00364787 Jy
! Component: 100  -  total flux cleaned = 0.00452354 Jy
! Component: 150  -  total flux cleaned = 0.00493785 Jy
! Component: 200  -  total flux cleaned = 0.00516627 Jy
! Total flux subtracted in 200 components = 0.00516627 Jy
! Clean residual min=-0.004387 max=0.003972 Jy/beam
! Clean residual mean=0.000143 rms=0.000985 Jy/beam
! Combined flux in latest and established models = 1.57536 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 77 components and 1.57536 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.515840Jy  sigma=0.001756
! Fit after  self-cal, rms=0.515847Jy  sigma=0.001756
! 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.515847Jy  sigma=0.001756
! Fit after  self-cal, rms=0.522125Jy  sigma=0.001755
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.142 mas, bmaj=10.82 mas, bpa=-6.565 degrees
! Estimated noise=526.207 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 6.31322e-05 Jy
! Component: 100  -  total flux cleaned = 0.000221865 Jy
! Component: 150  -  total flux cleaned = 0.000335093 Jy
! Component: 200  -  total flux cleaned = 0.000424971 Jy
! Total flux subtracted in 200 components = 0.000424971 Jy
! Clean residual min=-0.003757 max=0.003833 Jy/beam
! Clean residual mean=0.000302 rms=0.001324 Jy/beam
! Combined flux in latest and established models = 1.57578 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 87 components and 1.57578 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.522123Jy  sigma=0.001755
! Fit after  self-cal, rms=0.522132Jy  sigma=0.001755
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.000231485 Jy
! Component: 100  -  total flux cleaned = 0.000311608 Jy
! Component: 150  -  total flux cleaned = 0.000280489 Jy
! Component: 200  -  total flux cleaned = 0.000279064 Jy
! Total flux subtracted in 200 components = 0.000279064 Jy
! Clean residual min=-0.003685 max=0.003797 Jy/beam
! Clean residual mean=0.000297 rms=0.001319 Jy/beam
! Combined flux in latest and established models = 1.57606 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 93 components and 1.57606 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.522131Jy  sigma=0.001755
! Fit after  self-cal, rms=0.522128Jy  sigma=0.001755
! 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.408 mas, bmaj=5.327 mas, bpa=-2.335 degrees
! Estimated noise=401.69 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.408 x 5.327 at -2.335 degrees (North through East)
! Clean map  min=-0.0038488  max=1.3668 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.522128Jy  sigma=0.001755
! Fit after  self-cal, rms=0.593808Jy  sigma=0.001477
! Inverting map and beam 
! Estimated beam: bmin=2.407 mas, bmaj=5.328 mas, bpa=-2.352 degrees
! Estimated noise=401.023 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00325457 Jy
! Component: 100  -  total flux cleaned = -0.00325159 Jy
! Component: 150  -  total flux cleaned = -0.0029856 Jy
! Component: 200  -  total flux cleaned = -0.002675 Jy
! Total flux subtracted in 200 components = -0.002675 Jy
! Clean residual min=-0.003523 max=0.003477 Jy/beam
! Clean residual mean=0.000120 rms=0.000798 Jy/beam
! Combined flux in latest and established models = 1.57339 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 99 components and 1.57339 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.593758Jy  sigma=0.001476
! Fit after  self-cal, rms=0.593784Jy  sigma=0.001475
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000279656 Jy
! Component: 100  -  total flux cleaned = 0.000416127 Jy
! Component: 150  -  total flux cleaned = 0.000352734 Jy
! Component: 200  -  total flux cleaned = 0.000353333 Jy
! Total flux subtracted in 200 components = 0.000353333 Jy
! Clean residual min=-0.003438 max=0.003314 Jy/beam
! Clean residual mean=0.000117 rms=0.000788 Jy/beam
! Combined flux in latest and established models = 1.57374 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 104 components and 1.57374 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.593766Jy  sigma=0.001475
! Fit after  self-cal, rms=0.593777Jy  sigma=0.001475
! 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.593777Jy  sigma=0.001475
! Fit after  self-cal, rms=0.597322Jy  sigma=0.001475
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.986 mas, bmaj=4.082 mas, bpa=0.04597 degrees
! Estimated noise=784.444 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.0438 Jy
! Component: 100  -  total flux cleaned = 1.28631 Jy
! Component: 150  -  total flux cleaned = 1.38914 Jy
! Component: 200  -  total flux cleaned = 1.44353 Jy
! Total flux subtracted in 200 components = 1.44353 Jy
! Clean residual min=-0.006903 max=0.026738 Jy/beam
! Clean residual mean=0.000211 rms=0.002615 Jy/beam
! Combined flux in latest and established models = 1.44353 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.44353 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.41 mas, bmaj=5.33 mas, bpa=-2.346 degrees
! Estimated noise=400.96 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.0479938 Jy
! Component: 100  -  total flux cleaned = 0.0736353 Jy
! Component: 150  -  total flux cleaned = 0.089408 Jy
! Component: 200  -  total flux cleaned = 0.0999951 Jy
! Total flux subtracted in 200 components = 0.0999951 Jy
! Clean residual min=-0.003324 max=0.006355 Jy/beam
! Clean residual mean=0.000372 rms=0.001159 Jy/beam
! Combined flux in latest and established models = 1.54353 Jy
! Adding 35 model components to the UV plane model.
! The established model now contains 48 components and 1.54353 Jy
! Inverting map 
! Added new window around map position (7, 8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00752817 Jy
! Component: 100  -  total flux cleaned = 0.0131984 Jy
! Component: 150  -  total flux cleaned = 0.0176192 Jy
! Component: 200  -  total flux cleaned = 0.0211186 Jy
! Total flux subtracted in 200 components = 0.0211186 Jy
! Clean residual min=-0.002849 max=0.003126 Jy/beam
! Clean residual mean=0.000174 rms=0.000777 Jy/beam
! Combined flux in latest and established models = 1.56464 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 68 components and 1.56464 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.143 mas, bmaj=10.82 mas, bpa=-6.582 degrees
! Estimated noise=524.501 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00438106 Jy
! Component: 100  -  total flux cleaned = 0.00683692 Jy
! Component: 150  -  total flux cleaned = 0.00837572 Jy
! Component: 200  -  total flux cleaned = 0.00905151 Jy
! Total flux subtracted in 200 components = 0.00905151 Jy
! Clean residual min=-0.003066 max=0.003304 Jy/beam
! Clean residual mean=0.000254 rms=0.001033 Jy/beam
! Combined flux in latest and established models = 1.5737 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.000260901 Jy
! Component: 100  -  total flux cleaned = 0.000400941 Jy
! Component: 150  -  total flux cleaned = 0.0004764 Jy
! Component: 200  -  total flux cleaned = 0.000522817 Jy
! Total flux subtracted in 200 components = 0.000522817 Jy
! Clean residual min=-0.003040 max=0.003207 Jy/beam
! Clean residual mean=0.000241 rms=0.001026 Jy/beam
! Combined flux in latest and established models = 1.57422 Jy
! Adding 45 model components to the UV plane model.
! The established model now contains 106 components and 1.57422 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.41 mas, bmaj=5.33 mas, bpa=-2.346 degrees
! Estimated noise=400.96 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.86513e-05 Jy
! Component: 100  -  total flux cleaned = 0.00010351 Jy
! Component: 150  -  total flux cleaned = 0.00017757 Jy
! Component: 200  -  total flux cleaned = 0.000310395 Jy
! Total flux subtracted in 200 components = 0.000310395 Jy
! Clean residual min=-0.002791 max=0.002725 Jy/beam
! Clean residual mean=0.000085 rms=0.000709 Jy/beam
! Combined flux in latest and established models = 1.57453 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 114 components and 1.57453 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.597359Jy  sigma=0.001473
! Fit after  self-cal, rms=0.597406Jy  sigma=0.001472
wmodel J1751+0939_S_2000_05_22_pus_map.mod
! Writing 114 model components to file: J1751+0939_S_2000_05_22_pus_map.mod
wobs J1751+0939_S_2000_05_22_pus_uvs.fits
! Writing UV FITS file: J1751+0939_S_2000_05_22_pus_uvs.fits
wwins J1751+0939_S_2000_05_22_pus_map.win
! wwins: Wrote 4 windows to J1751+0939_S_2000_05_22_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.000275941 Jy
! Component: 100  -  total flux cleaned = 0.000906615 Jy
! Component: 150  -  total flux cleaned = 0.00133681 Jy
! Component: 200  -  total flux cleaned = 0.00154379 Jy
! Component: 250  -  total flux cleaned = 0.00182406 Jy
! Component: 300  -  total flux cleaned = 0.00205747 Jy
! Component: 350  -  total flux cleaned = 0.00220953 Jy
! Component: 400  -  total flux cleaned = 0.00243339 Jy
! Component: 450  -  total flux cleaned = 0.00261667 Jy
! Component: 500  -  total flux cleaned = 0.00283281 Jy
! Component: 550  -  total flux cleaned = 0.00308035 Jy
! Component: 600  -  total flux cleaned = 0.00328904 Jy
! Component: 650  -  total flux cleaned = 0.00352912 Jy
! Component: 700  -  total flux cleaned = 0.00369806 Jy
! Component: 750  -  total flux cleaned = 0.00376467 Jy
! Component: 800  -  total flux cleaned = 0.00389688 Jy
! Component: 850  -  total flux cleaned = 0.00402819 Jy
! Component: 900  -  total flux cleaned = 0.00422198 Jy
! Component: 950  -  total flux cleaned = 0.00438152 Jy
! Component: 1000  -  total flux cleaned = 0.00453952 Jy
! Component: 1050  -  total flux cleaned = 0.00466489 Jy
! Component: 1100  -  total flux cleaned = 0.00481941 Jy
! Component: 1150  -  total flux cleaned = 0.00494159 Jy
! Component: 1200  -  total flux cleaned = 0.00500188 Jy
! Component: 1250  -  total flux cleaned = 0.00512206 Jy
! Component: 1300  -  total flux cleaned = 0.00521155 Jy
! Component: 1350  -  total flux cleaned = 0.00532964 Jy
! Component: 1400  -  total flux cleaned = 0.00535896 Jy
! Component: 1450  -  total flux cleaned = 0.00553344 Jy
! Component: 1500  -  total flux cleaned = 0.00556242 Jy
! Component: 1550  -  total flux cleaned = 0.00573446 Jy
! Component: 1600  -  total flux cleaned = 0.00581969 Jy
! Component: 1650  -  total flux cleaned = 0.0059324 Jy
! Component: 1700  -  total flux cleaned = 0.00598846 Jy
! Component: 1750  -  total flux cleaned = 0.0060721 Jy
! Component: 1800  -  total flux cleaned = 0.00612725 Jy
! Component: 1850  -  total flux cleaned = 0.00620967 Jy
! Component: 1900  -  total flux cleaned = 0.00626415 Jy
! Component: 1950  -  total flux cleaned = 0.00634544 Jy
! Component: 2000  -  total flux cleaned = 0.00629184 Jy
! Total flux subtracted in 2048 components = 0.00639875 Jy
! Clean residual min=-0.002196 max=0.001437 Jy/beam
! Clean residual mean=0.000036 rms=0.000510 Jy/beam
! Combined flux in latest and established models = 1.58093 Jy
keep
! Adding 149 model components to the UV plane model.
! The established model now contains 263 components and 1.58093 Jy
![Exited script file: muppet]
wmap "J1751+0939_S_2000_05_22_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.41 x 5.33 at -2.346 degrees (North through East)
! Clean map  min=-0.0022275  max=1.3697 Jy/beam
! Writing clean map to FITS file: J1751+0939_S_2000_05_22_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.36967 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000508273 
device "J1751+0939_S_2000_05_22_pus\_map.eps/VPS"
! Attempting to open device: 'J1751+0939_S_2000_05_22_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.111328 0.111328 0.222655 0.445311 0.890622 1.78124 3.56249 7.12497 14.2499 28.4999 56.9998
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0015 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.369 
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.41 x 5.33 at -2.346 degrees (North through East)
! Clean map  min=-0.0022275  max=1.3697 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1751+0939_S_2000_05_22_pus\_map.gif/vgif"
! Attempting to open device: 'J1751+0939_S_2000_05_22_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1751+0939_S_2000_05_22_pus_uvs.log closed on Mon Nov 19 18:56:58 2007