! Started logfile: J1751+0939_S_2001_04_09_pus_uvs.log on Fri Oct  5 16:14:02 2007
obs J1751+0939_S_2001_04_09_pus_uva.fits
! Reading UV FITS file: J1751+0939_S_2001_04_09_pus_uva.fits
! AN table 1: 31 integrations on 190 of 190 possible baselines.
! AN table 2: 128 integrations on 190 of 190 possible baselines.
! AN table 3: 346 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.15038 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.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1949 lines of history.
! 
! Reading 57716 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_2001_04_09_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 563 telescope corrections were flagged in sub-array 1.
!  A total of 2041 telescope corrections were flagged in sub-array 2.
!  A total of 4037 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 563 telescope corrections were flagged in sub-array 1.
!  A total of 2041 telescope corrections were flagged in sub-array 2.
!  A total of 4037 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 563 telescope corrections were flagged in sub-array 1.
!  A total of 2041 telescope corrections were flagged in sub-array 2.
!  A total of 4037 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 563 telescope corrections were flagged in sub-array 1.
!  A total of 2045 telescope corrections were flagged in sub-array 2.
!  A total of 4037 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.951198Jy  sigma=0.007928
! Fit after  self-cal, rms=0.668422Jy  sigma=0.005625
! 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.93 mas, bmaj=3.88 mas, bpa=-0.8073 degrees
! Estimated noise=887.809 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.09389 Jy
! Component: 100  -  total flux cleaned = 1.34157 Jy
! Total flux subtracted in 100 components = 1.34157 Jy
! Clean residual min=-0.040575 max=0.089853 Jy/beam
! Clean residual mean=0.000535 rms=0.013097 Jy/beam
! Combined flux in latest and established models = 1.34157 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 1.34157 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.453010Jy  sigma=0.003256
! Fit after  self-cal, rms=0.452999Jy  sigma=0.003255
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.106908 Jy
! Component: 100  -  total flux cleaned = 0.175454 Jy
! Total flux subtracted in 100 components = 0.175454 Jy
! Clean residual min=-0.040865 max=0.053213 Jy/beam
! Clean residual mean=0.000301 rms=0.011731 Jy/beam
! Combined flux in latest and established models = 1.51703 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 26 components and 1.51703 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.403380Jy  sigma=0.002561
! Fit after  self-cal, rms=0.403169Jy  sigma=0.002560
! 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.603 mas, bmaj=5.519 mas, bpa=-6.937 degrees
! Estimated noise=343.772 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.107606 Jy
! Component: 100  -  total flux cleaned = 0.151363 Jy
! Component: 150  -  total flux cleaned = 0.171892 Jy
! Component: 200  -  total flux cleaned = 0.182741 Jy
! Total flux subtracted in 200 components = 0.182741 Jy
! Clean residual min=-0.021895 max=0.032487 Jy/beam
! Clean residual mean=0.000382 rms=0.005950 Jy/beam
! Combined flux in latest and established models = 1.69977 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 35 components and 1.69977 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.383097Jy  sigma=0.002176
! Fit after  self-cal, rms=0.382912Jy  sigma=0.002174
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 57 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.02     GG        1.00*    
!   HH        1.07     HN        1.00*    KK        0.99     KP        1.25     
!   LA        1.00*    MA        0.97     MC        1.23     MK        0.98     
!   NL        1.00*    NY        1.01     OV        1.10     PT        1.00*    
!   SC        1.00*    TS        0.97     WF        1.00*    WZ        1.03     
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.98     GC        1.25     GG        1.00*    
!   HH        1.01     HN        0.94     KK        1.00     KP        1.09     
!   LA        0.97     MA        1.41     MC        1.10     MK        1.02     
!   NL        0.99     NY        1.01     OV        1.02     PT        0.96     
!   SC        0.97     TS        0.97     WF        1.07     WZ        1.13     
! 
! 
! Correcting IF 2.
!  A total of 57 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        0.96     GG        1.00*    
!   HH        1.05     HN        1.00*    KK        0.94     KP        1.01     
!   LA        1.00*    MA        1.14     MC        0.98     MK        1.00     
!   NL        1.00*    NY        1.03     OV        1.06     PT        1.00*    
!   SC        1.00*    TS        1.02     WF        1.00*    WZ        1.00     
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.97     GC        1.21     GG        1.00*    
!   HH        1.04     HN        0.95     KK        0.97     KP        0.99     
!   LA        0.99     MA        1.15     MC        1.09     MK        1.03     
!   NL        1.00     NY        1.04     OV        0.98     PT        0.99     
!   SC        0.97     TS        1.00     WF        1.06     WZ        1.11     
! 
! 
! Correcting IF 3.
!  A total of 57 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        0.94     GG        1.00*    
!   HH        1.01     HN        1.00*    KK        0.94     KP        1.21     
!   LA        1.00*    MA        1.00     MC        0.87     MK        0.95     
!   NL        1.00*    NY        0.99     OV        1.04     PT        1.00*    
!   SC        1.00*    TS        1.00     WF        1.00*    WZ        1.01     
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.97     GC        1.20     GG        1.00*    
!   HH        0.99     HN        0.96     KK        0.97     KP        1.11     
!   LA        0.94     MA        0.93     MC        0.96     MK        0.98     
!   NL        0.98     NY        0.98     OV        0.98     PT        1.01     
!   SC        0.95     TS        0.99     WF        1.04     WZ        1.08     
! 
! 
! Correcting IF 4.
!  A total of 57 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        0.98     GG        1.00*    
!   HH        1.11     HN        1.00*    KK        0.91     KP        1.17     
!   LA        1.00*    MA        1.14     MC        1.87     MK        0.95     
!   NL        1.00*    NY        1.02     OV        1.03     PT        1.00*    
!   SC        1.00*    TS        0.95     WF        1.00*    WZ        0.99     
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.93     FD        0.97     GC        1.24     GG        1.00*    
!   HH        1.05     HN        0.97     KK        0.95     KP        1.10     
!   LA        0.98     MA        0.78     MC        2.06     MK        0.96     
!   NL        0.98     NY        1.02     OV        0.97     PT        1.06     
!   SC        0.97     TS        0.94     WF        1.03     WZ        1.08     
! 
! 
! Fit before self-cal, rms=0.382912Jy  sigma=0.002174
! Fit after  self-cal, rms=0.406277Jy  sigma=0.001895
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.616 mas, bmaj=5.656 mas, bpa=-7.038 degrees
! Estimated noise=343.717 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.00556134 Jy
! Component: 100  -  total flux cleaned = -0.0066952 Jy
! Component: 150  -  total flux cleaned = -0.00729108 Jy
! Component: 200  -  total flux cleaned = -0.00765958 Jy
! Total flux subtracted in 200 components = -0.00765958 Jy
! Clean residual min=-0.015692 max=0.019042 Jy/beam
! Clean residual mean=0.000192 rms=0.003885 Jy/beam
! Combined flux in latest and established models = 1.69211 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 41 components and 1.69211 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.406010Jy  sigma=0.001892
! Fit after  self-cal, rms=0.406958Jy  sigma=0.001891
! 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.406958Jy  sigma=0.001891
! Fit after  self-cal, rms=0.837308Jy  sigma=0.001412
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.616 mas, bmaj=5.656 mas, bpa=-7.161 degrees
! Estimated noise=344.571 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00147582 Jy
! Component: 100  -  total flux cleaned = 0.00120943 Jy
! Component: 150  -  total flux cleaned = 0.00120584 Jy
! Component: 200  -  total flux cleaned = 0.00101567 Jy
! Total flux subtracted in 200 components = 0.00101567 Jy
! Clean residual min=-0.005012 max=0.010648 Jy/beam
! Clean residual mean=0.000182 rms=0.001678 Jy/beam
! Combined flux in latest and established models = 1.69313 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 46 components and 1.69313 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.837087Jy  sigma=0.001407
! Fit after  self-cal, rms=0.837842Jy  sigma=0.001407
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 (6.5, 8.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0114142 Jy
! Component: 100  -  total flux cleaned = 0.0156076 Jy
! Component: 150  -  total flux cleaned = 0.0160279 Jy
! Component: 200  -  total flux cleaned = 0.0165637 Jy
! Total flux subtracted in 200 components = 0.0165637 Jy
! Clean residual min=-0.004984 max=0.005795 Jy/beam
! Clean residual mean=0.000100 rms=0.001276 Jy/beam
! Combined flux in latest and established models = 1.70969 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 68 components and 1.70969 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.837641Jy  sigma=0.001399
! Fit after  self-cal, rms=0.837618Jy  sigma=0.001399
! 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.837618Jy  sigma=0.001399
! Fit after  self-cal, rms=0.856001Jy  sigma=0.001378
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.618 mas, bmaj=5.639 mas, bpa=-7.205 degrees
! Estimated noise=344.396 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00513323 Jy
! Component: 100  -  total flux cleaned = 0.00621869 Jy
! Component: 150  -  total flux cleaned = 0.00707996 Jy
! Component: 200  -  total flux cleaned = 0.00771164 Jy
! Total flux subtracted in 200 components = 0.00771164 Jy
! Clean residual min=-0.003170 max=0.003666 Jy/beam
! Clean residual mean=0.000067 rms=0.000872 Jy/beam
! Combined flux in latest and established models = 1.7174 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 81 components and 1.7174 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.855933Jy  sigma=0.001375
! Fit after  self-cal, rms=0.855908Jy  sigma=0.001375
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 (16.5, 20).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00263143 Jy
! Component: 100  -  total flux cleaned = 0.00382281 Jy
! Component: 150  -  total flux cleaned = 0.00455991 Jy
! Component: 200  -  total flux cleaned = 0.00480833 Jy
! Total flux subtracted in 200 components = 0.00480833 Jy
! Clean residual min=-0.003144 max=0.003158 Jy/beam
! Clean residual mean=0.000052 rms=0.000807 Jy/beam
! Combined flux in latest and established models = 1.72221 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 96 components and 1.72221 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.855868Jy  sigma=0.001374
! Fit after  self-cal, rms=0.855850Jy  sigma=0.001374
! 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.855850Jy  sigma=0.001374
! Fit after  self-cal, rms=0.856943Jy  sigma=0.001370
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.691 mas, bmaj=10.56 mas, bpa=8.099 degrees
! Estimated noise=462.132 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00285462 Jy
! Component: 100  -  total flux cleaned = 0.00359029 Jy
! Component: 150  -  total flux cleaned = 0.00412292 Jy
! Component: 200  -  total flux cleaned = 0.00445202 Jy
! Total flux subtracted in 200 components = 0.00445202 Jy
! Clean residual min=-0.002461 max=0.003076 Jy/beam
! Clean residual mean=0.000099 rms=0.000901 Jy/beam
! Combined flux in latest and established models = 1.72666 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 120 components and 1.72666 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.856936Jy  sigma=0.001370
! Fit after  self-cal, rms=0.856920Jy  sigma=0.001370
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.000972112 Jy
! Component: 100  -  total flux cleaned = 0.000977526 Jy
! Component: 150  -  total flux cleaned = 0.000977165 Jy
! Component: 200  -  total flux cleaned = 0.00100897 Jy
! Total flux subtracted in 200 components = 0.00100897 Jy
! Clean residual min=-0.002632 max=0.002868 Jy/beam
! Clean residual mean=0.000089 rms=0.000885 Jy/beam
! Combined flux in latest and established models = 1.72767 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 133 components and 1.72767 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.856914Jy  sigma=0.001370
! Fit after  self-cal, rms=0.856916Jy  sigma=0.001370
! 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.619 mas, bmaj=5.638 mas, bpa=-7.241 degrees
! Estimated noise=344.547 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.619 x 5.638 at -7.241 degrees (North through East)
! Clean map  min=-0.0029358  max=1.5232 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.856916Jy  sigma=0.001370
! Fit after  self-cal, rms=1.364776Jy  sigma=0.001199
! Inverting map and beam 
! Estimated beam: bmin=2.62 mas, bmaj=5.637 mas, bpa=-7.263 degrees
! Estimated noise=344.444 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00137162 Jy
! Component: 100  -  total flux cleaned = -0.0013665 Jy
! Component: 150  -  total flux cleaned = -0.00136809 Jy
! Component: 200  -  total flux cleaned = -0.00143903 Jy
! Total flux subtracted in 200 components = -0.00143903 Jy
! Clean residual min=-0.002547 max=0.002442 Jy/beam
! Clean residual mean=0.000017 rms=0.000605 Jy/beam
! Combined flux in latest and established models = 1.72623 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 135 components and 1.72623 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.364762Jy  sigma=0.001199
! Fit after  self-cal, rms=1.364768Jy  sigma=0.001198
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000253761 Jy
! Component: 100  -  total flux cleaned = 0.00044919 Jy
! Component: 150  -  total flux cleaned = 0.000567092 Jy
! Component: 200  -  total flux cleaned = 0.000673969 Jy
! Total flux subtracted in 200 components = 0.000673969 Jy
! Clean residual min=-0.002487 max=0.002398 Jy/beam
! Clean residual mean=0.000014 rms=0.000593 Jy/beam
! Combined flux in latest and established models = 1.72691 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 139 components and 1.72691 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.364760Jy  sigma=0.001198
! Fit after  self-cal, rms=1.364763Jy  sigma=0.001198
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.364763Jy  sigma=0.001198
! Fit after  self-cal, rms=1.369878Jy  sigma=0.001198
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.939 mas, bmaj=3.925 mas, bpa=-1.663 degrees
! Estimated noise=934.929 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.14759 Jy
! Component: 100  -  total flux cleaned = 1.40834 Jy
! Component: 150  -  total flux cleaned = 1.5167 Jy
! Component: 200  -  total flux cleaned = 1.57594 Jy
! Total flux subtracted in 200 components = 1.57594 Jy
! Clean residual min=-0.009225 max=0.029396 Jy/beam
! Clean residual mean=0.000196 rms=0.002689 Jy/beam
! Combined flux in latest and established models = 1.57594 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 18 model components to the UV plane model.
! The established model now contains 18 components and 1.57594 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.621 mas, bmaj=5.639 mas, bpa=-7.288 degrees
! Estimated noise=344.338 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.0575377 Jy
! Component: 100  -  total flux cleaned = 0.0872079 Jy
! Component: 150  -  total flux cleaned = 0.10504 Jy
! Component: 200  -  total flux cleaned = 0.116723 Jy
! Total flux subtracted in 200 components = 0.116723 Jy
! Clean residual min=-0.003388 max=0.007384 Jy/beam
! Clean residual mean=0.000172 rms=0.001407 Jy/beam
! Combined flux in latest and established models = 1.69266 Jy
! Adding 46 model components to the UV plane model.
! The established model now contains 56 components and 1.69266 Jy
! Inverting map 
! Added new window around map position (2, 7).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00852217 Jy
! Component: 100  -  total flux cleaned = 0.0146077 Jy
! Component: 150  -  total flux cleaned = 0.0192492 Jy
! Component: 200  -  total flux cleaned = 0.0228609 Jy
! Total flux subtracted in 200 components = 0.0228609 Jy
! Clean residual min=-0.002699 max=0.003252 Jy/beam
! Clean residual mean=0.000053 rms=0.000735 Jy/beam
! Combined flux in latest and established models = 1.71552 Jy
! Adding 35 model components to the UV plane model.
! The established model now contains 82 components and 1.71552 Jy
! Inverting map 
! Added new window around map position (1.5, -4.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00226497 Jy
! Component: 100  -  total flux cleaned = 0.00361063 Jy
! Component: 150  -  total flux cleaned = 0.00472569 Jy
! Component: 200  -  total flux cleaned = 0.00583087 Jy
! Total flux subtracted in 200 components = 0.00583087 Jy
! Clean residual min=-0.002395 max=0.002398 Jy/beam
! Clean residual mean=0.000026 rms=0.000635 Jy/beam
! Combined flux in latest and established models = 1.72135 Jy
! Adding 26 model components to the UV plane model.
! The established model now contains 91 components and 1.72135 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.693 mas, bmaj=10.56 mas, bpa=8.012 degrees
! Estimated noise=461.429 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00270564 Jy
! Component: 100  -  total flux cleaned = 0.00356438 Jy
! Component: 150  -  total flux cleaned = 0.00416587 Jy
! Component: 200  -  total flux cleaned = 0.00468922 Jy
! Total flux subtracted in 200 components = 0.00468922 Jy
! Clean residual min=-0.002243 max=0.002434 Jy/beam
! Clean residual mean=0.000021 rms=0.000734 Jy/beam
! Combined flux in latest and established models = 1.72604 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.000425113 Jy
! Component: 100  -  total flux cleaned = 0.000751034 Jy
! Component: 150  -  total flux cleaned = 0.000928819 Jy
! Component: 200  -  total flux cleaned = 0.00108683 Jy
! Total flux subtracted in 200 components = 0.00108683 Jy
! Clean residual min=-0.002146 max=0.002292 Jy/beam
! Clean residual mean=0.000009 rms=0.000706 Jy/beam
! Combined flux in latest and established models = 1.72713 Jy
! Adding 65 model components to the UV plane model.
! The established model now contains 156 components and 1.72713 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.621 mas, bmaj=5.639 mas, bpa=-7.288 degrees
! Estimated noise=344.338 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000652267 Jy
! Component: 100  -  total flux cleaned = -0.000579272 Jy
! Component: 150  -  total flux cleaned = -0.000380744 Jy
! Component: 200  -  total flux cleaned = -0.000256633 Jy
! Total flux subtracted in 200 components = -0.000256633 Jy
! Clean residual min=-0.002246 max=0.002252 Jy/beam
! Clean residual mean=0.000005 rms=0.000572 Jy/beam
! Combined flux in latest and established models = 1.72687 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 162 components and 1.72687 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.369918Jy  sigma=0.001198
! Fit after  self-cal, rms=1.369921Jy  sigma=0.001198
wmodel J1751+0939_S_2001_04_09_pus_map.mod
! Writing 162 model components to file: J1751+0939_S_2001_04_09_pus_map.mod
wobs J1751+0939_S_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J1751+0939_S_2001_04_09_pus_uvs.fits
wwins J1751+0939_S_2001_04_09_pus_map.win
! wwins: Wrote 5 windows to J1751+0939_S_2001_04_09_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.000309588 Jy
! Component: 100  -  total flux cleaned = 0.000497633 Jy
! Component: 150  -  total flux cleaned = 0.000712082 Jy
! Component: 200  -  total flux cleaned = 0.000917866 Jy
! Component: 250  -  total flux cleaned = 0.00105085 Jy
! Component: 300  -  total flux cleaned = 0.00111635 Jy
! Component: 350  -  total flux cleaned = 0.0011159 Jy
! Component: 400  -  total flux cleaned = 0.00111586 Jy
! Component: 450  -  total flux cleaned = 0.00123752 Jy
! Component: 500  -  total flux cleaned = 0.00126721 Jy
! Component: 550  -  total flux cleaned = 0.00129641 Jy
! Component: 600  -  total flux cleaned = 0.00129625 Jy
! Component: 650  -  total flux cleaned = 0.00132502 Jy
! Component: 700  -  total flux cleaned = 0.00135303 Jy
! Component: 750  -  total flux cleaned = 0.00140858 Jy
! Component: 800  -  total flux cleaned = 0.00138108 Jy
! Component: 850  -  total flux cleaned = 0.00138105 Jy
! Component: 900  -  total flux cleaned = 0.00146183 Jy
! Component: 950  -  total flux cleaned = 0.00146167 Jy
! Component: 1000  -  total flux cleaned = 0.00151414 Jy
! Component: 1050  -  total flux cleaned = 0.00148773 Jy
! Component: 1100  -  total flux cleaned = 0.00146181 Jy
! Component: 1150  -  total flux cleaned = 0.00151325 Jy
! Component: 1200  -  total flux cleaned = 0.00156411 Jy
! Component: 1250  -  total flux cleaned = 0.00153898 Jy
! Component: 1300  -  total flux cleaned = 0.00153922 Jy
! Component: 1350  -  total flux cleaned = 0.00163795 Jy
! Component: 1400  -  total flux cleaned = 0.00158901 Jy
! Component: 1450  -  total flux cleaned = 0.00163783 Jy
! Component: 1500  -  total flux cleaned = 0.00161382 Jy
! Component: 1550  -  total flux cleaned = 0.00161391 Jy
! Component: 1600  -  total flux cleaned = 0.00161382 Jy
! Component: 1650  -  total flux cleaned = 0.00154318 Jy
! Component: 1700  -  total flux cleaned = 0.00154315 Jy
! Component: 1750  -  total flux cleaned = 0.00154288 Jy
! Component: 1800  -  total flux cleaned = 0.00138043 Jy
! Component: 1850  -  total flux cleaned = 0.00144973 Jy
! Component: 1900  -  total flux cleaned = 0.00140377 Jy
! Component: 1950  -  total flux cleaned = 0.00135833 Jy
! Component: 2000  -  total flux cleaned = 0.00129039 Jy
! Total flux subtracted in 2048 components = 0.00124549 Jy
! Clean residual min=-0.001532 max=0.001161 Jy/beam
! Clean residual mean=0.000010 rms=0.000420 Jy/beam
! Combined flux in latest and established models = 1.72812 Jy
keep
! Adding 145 model components to the UV plane model.
! The established model now contains 306 components and 1.72812 Jy
![Exited script file: muppet]
wmap "J1751+0939_S_2001_04_09_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.621 x 5.639 at -7.288 degrees (North through East)
! Clean map  min=-0.0019514  max=1.5242 Jy/beam
! Writing clean map to FITS file: J1751+0939_S_2001_04_09_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.52422 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000420848 
device "J1751+0939_S_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J1751+0939_S_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.082832 0.082832 0.165664 0.331328 0.662656 1.32531 2.65062 5.30125 10.6025 21.205 42.41 84.82
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0012 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.524 
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.621 x 5.639 at -7.288 degrees (North through East)
! Clean map  min=-0.0019514  max=1.5242 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1751+0939_S_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J1751+0939_S_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1751+0939_S_2001_04_09_pus_uvs.log closed on Fri Oct  5 16:14:27 2007