! Started logfile: J1751+0939_S_1999_03_08_pus_uvs.log on Tue Jan  8 18:32:29 2008
obs J1751+0939_S_1999_03_08_pus_uva.fits
! Reading UV FITS file: J1751+0939_S_1999_03_08_pus_uva.fits
! AN table 1: 180 integrations on 190 of 190 possible baselines.
! AN table 2: 245 integrations on 190 of 190 possible baselines.
! AN table 3: 83 integrations on 190 of 190 possible baselines.
! AN table 4: 182 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0880092 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 2332 lines of history.
! 
! Reading 46152 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_03_08_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 3034 telescope corrections were flagged in sub-array 1.
!  A total of 4038 telescope corrections were flagged in sub-array 2.
!  A total of 1464 telescope corrections were flagged in sub-array 3.
!  A total of 2855 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 3034 telescope corrections were flagged in sub-array 1.
!  A total of 4038 telescope corrections were flagged in sub-array 2.
!  A total of 1464 telescope corrections were flagged in sub-array 3.
!  A total of 2855 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 2977 telescope corrections were flagged in sub-array 1.
!  A total of 4038 telescope corrections were flagged in sub-array 2.
!  A total of 1464 telescope corrections were flagged in sub-array 3.
!  A total of 2764 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 2977 telescope corrections were flagged in sub-array 1.
!  A total of 4038 telescope corrections were flagged in sub-array 2.
!  A total of 1464 telescope corrections were flagged in sub-array 3.
!  A total of 2764 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.381009Jy  sigma=0.009133
! Fit after  self-cal, rms=0.545446Jy  sigma=0.003721
! 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.08 mas, bmaj=4.184 mas, bpa=-5.282 degrees
! Estimated noise=1015.63 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.07014 Jy
! Component: 100  -  total flux cleaned = 1.3292 Jy
! Total flux subtracted in 100 components = 1.3292 Jy
! Clean residual min=-0.030877 max=0.108099 Jy/beam
! Clean residual mean=0.000391 rms=0.009476 Jy/beam
! Combined flux in latest and established models = 1.3292 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 1.3292 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.375301Jy  sigma=0.002282
! Fit after  self-cal, rms=0.375201Jy  sigma=0.002282
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.117244 Jy
! Component: 100  -  total flux cleaned = 0.184225 Jy
! Total flux subtracted in 100 components = 0.184225 Jy
! Clean residual min=-0.023796 max=0.036011 Jy/beam
! Clean residual mean=0.000139 rms=0.006995 Jy/beam
! Combined flux in latest and established models = 1.51343 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 19 components and 1.51343 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.338874Jy  sigma=0.001908
! Fit after  self-cal, rms=0.338778Jy  sigma=0.001907
! 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.402 mas, bmaj=4.782 mas, bpa=-4.76 degrees
! Estimated noise=520.623 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.048696 Jy
! Component: 100  -  total flux cleaned = 0.0767798 Jy
! Component: 150  -  total flux cleaned = 0.0936465 Jy
! Component: 200  -  total flux cleaned = 0.103798 Jy
! Total flux subtracted in 200 components = 0.103798 Jy
! Clean residual min=-0.020865 max=0.018511 Jy/beam
! Clean residual mean=-0.000403 rms=0.005233 Jy/beam
! Combined flux in latest and established models = 1.61722 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 28 components and 1.61722 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.333102Jy  sigma=0.001835
! Fit after  self-cal, rms=0.333012Jy  sigma=0.001835
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 273 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.97     GC        1.05     GG        1.00*    
!   HN        0.98     KP        0.97     LA        1.00     NL        1.04     
!   OV        0.99     PT        1.05     SC        0.99     WF        0.96     
!   GN        0.96     HH        1.00*    KK        1.00     MC        1.07     
!   MK        0.94     NY        1.03     ON        1.04     WZ        1.08     
! 
!  A total of 90 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        1.00     GC        1.11     GG        1.00*    
!   HN        0.98     KP        0.92     LA        0.99     NL        1.03     
!   OV        1.00     PT        1.03     SC        0.97     WF        0.97     
!   GN        0.97     HH        1.00*    KK        0.97     MC        1.13     
!   MK        0.92     NY        1.02     ON        1.05     WZ        1.03     
! 
!  A total of 57 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.00*    GC        0.98     GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    WF        1.12     
!   GN        1.05     HH        1.00*    KK        0.95     MC        1.00*    
!   MK        0.95     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.06     FD        1.00     GC        1.00*    GG        1.00*    
!   HN        0.98     KP        0.95     LA        1.00*    NL        1.06     
!   OV        1.00*    PT        1.05     SC        1.00     WF        1.01     
!   GN        0.99     HH        1.00*    KK        1.00*    MC        0.93     
!   MK        1.00*    NY        1.01     ON        0.97     WZ        1.02     
! 
! 
! Correcting IF 2.
!  A total of 273 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.02     GC        1.07     GG        1.00*    
!   HN        0.97     KP        0.97     LA        0.95     NL        0.92     
!   OV        0.91     PT        1.00     SC        1.04     WF        0.98     
!   GN        0.96     HH        1.00*    KK        0.95     MC        1.17     
!   MK        0.97     NY        1.01     ON        1.00     WZ        1.13     
! 
!  A total of 90 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.03     GC        1.14     GG        1.00*    
!   HN        0.96     KP        0.90     LA        0.98     NL        0.92     
!   OV        0.96     PT        0.99     SC        1.00     WF        0.97     
!   GN        0.97     HH        1.00*    KK        0.93     MC        1.78     
!   MK        0.95     NY        1.03     ON        1.06     WZ        1.02     
! 
!  A total of 57 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.00*    GC        1.01     GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    WF        1.19     
!   GN        1.06     HH        1.00*    KK        0.90     MC        1.00*    
!   MK        0.84     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.05     FD        1.03     GC        1.00*    GG        1.00*    
!   HN        0.96     KP        1.02     LA        1.00*    NL        0.97     
!   OV        1.00*    PT        1.00     SC        1.03     WF        1.00     
!   GN        0.98     HH        1.00*    KK        1.00*    MC        0.86     
!   MK        1.00*    NY        1.00     ON        0.99     WZ        1.01     
! 
! 
! Correcting IF 3.
!  A total of 135 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.96     GC        1.03     GG        1.00*    
!   HN        1.21     KP        0.96     LA        0.96     NL        0.98     
!   OV        0.86     PT        0.99     SC        1.01     WF        0.95     
!   GN        0.95     HH        0.82     KK        0.94     MC        1.69     
!   MK        0.95     NY        1.02     ON        0.86     WZ        0.98     
! 
!  A total of 90 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.99     GC        1.09     GG        1.00*    
!   HN        1.20     KP        0.92     LA        0.98     NL        0.97     
!   OV        0.97     PT        0.95     SC        0.97     WF        0.97     
!   GN        0.96     HH        1.00*    KK        0.95     MC        1.10     
!   MK        0.90     NY        1.02     ON        1.05     WZ        1.04     
! 
!  A total of 57 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.00*    GC        0.98     GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    WF        1.16     
!   GN        1.04     HH        1.00*    KK        0.90     MC        1.00*    
!   MK        0.81     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.07     FD        0.98     GC        1.00*    GG        1.00*    
!   HN        1.20     KP        1.00     LA        1.00*    NL        1.02     
!   OV        1.00*    PT        0.98     SC        1.00     WF        0.98     
!   GN        0.97     HH        0.93     KK        1.00*    MC        2.10     
!   MK        1.00*    NY        0.95     ON        0.97     WZ        0.97     
! 
! 
! Correcting IF 4.
!  A total of 135 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        0.97     GC        1.04     GG        1.00*    
!   HN        1.16     KP        0.96     LA        0.95     NL        0.92     
!   OV        0.87     PT        1.11     SC        0.98     WF        0.97     
!   GN        0.93     HH        0.83     KK        0.98     MC        1.97     
!   MK        0.96     NY        1.02     ON        0.92     WZ        1.03     
! 
!  A total of 90 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.93     FD        0.98     GC        1.10     GG        1.00*    
!   HN        1.14     KP        0.87     LA        0.98     NL        0.92     
!   OV        0.98     PT        0.95     SC        0.97     WF        0.96     
!   GN        0.94     HH        1.00*    KK        0.96     MC        1.02     
!   MK        0.93     NY        1.01     ON        1.05     WZ        1.03     
! 
!  A total of 57 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.00*    GC        0.99     GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    WF        1.17     
!   GN        1.03     HH        1.00*    KK        0.95     MC        1.00*    
!   MK        0.78     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        0.98     GC        1.00*    GG        1.00*    
!   HN        1.14     KP        1.00     LA        1.00*    NL        0.98     
!   OV        1.00*    PT        0.95     SC        0.98     WF        0.98     
!   GN        0.96     HH        0.95     KK        1.00*    MC        2.00     
!   MK        1.00*    NY        1.02     ON        0.96     WZ        0.98     
! 
! 
! Fit before self-cal, rms=0.333012Jy  sigma=0.001835
! Fit after  self-cal, rms=0.309400Jy  sigma=0.001521
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.399 mas, bmaj=4.767 mas, bpa=-4.292 degrees
! Estimated noise=529.373 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, 6.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00840343 Jy
! Component: 100  -  total flux cleaned = 0.0105772 Jy
! Component: 150  -  total flux cleaned = 0.0105769 Jy
! Component: 200  -  total flux cleaned = 0.0105831 Jy
! Total flux subtracted in 200 components = 0.0105831 Jy
! Clean residual min=-0.011180 max=0.007245 Jy/beam
! Clean residual mean=0.000230 rms=0.002010 Jy/beam
! Combined flux in latest and established models = 1.62781 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 43 components and 1.62781 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.308454Jy  sigma=0.001513
! Fit after  self-cal, rms=0.308783Jy  sigma=0.001512
! 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.308783Jy  sigma=0.001512
! Fit after  self-cal, rms=0.291553Jy  sigma=0.001429
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.401 mas, bmaj=4.767 mas, bpa=-4.3 degrees
! Estimated noise=529.128 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00663731 Jy
! Component: 100  -  total flux cleaned = -0.00752546 Jy
! Component: 150  -  total flux cleaned = -0.00753155 Jy
! Component: 200  -  total flux cleaned = -0.00738142 Jy
! Total flux subtracted in 200 components = -0.00738142 Jy
! Clean residual min=-0.006270 max=0.004760 Jy/beam
! Clean residual mean=0.000249 rms=0.001040 Jy/beam
! Combined flux in latest and established models = 1.62042 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 54 components and 1.62042 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.291163Jy  sigma=0.001426
! Fit after  self-cal, rms=0.291164Jy  sigma=0.001426
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 = -9.2745e-05 Jy
! Component: 100  -  total flux cleaned = 0.000431842 Jy
! Component: 150  -  total flux cleaned = 0.000780382 Jy
! Component: 200  -  total flux cleaned = 0.000993715 Jy
! Total flux subtracted in 200 components = 0.000993715 Jy
! Clean residual min=-0.005670 max=0.004097 Jy/beam
! Clean residual mean=0.000239 rms=0.001000 Jy/beam
! Combined flux in latest and established models = 1.62142 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 61 components and 1.62142 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.291060Jy  sigma=0.001425
! Fit after  self-cal, rms=0.291054Jy  sigma=0.001425
! 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.291054Jy  sigma=0.001425
! Fit after  self-cal, rms=0.291847Jy  sigma=0.001424
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.405 mas, bmaj=4.771 mas, bpa=-4.282 degrees
! Estimated noise=529.536 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00417437 Jy
! Component: 100  -  total flux cleaned = -0.00459352 Jy
! Component: 150  -  total flux cleaned = -0.00459291 Jy
! Component: 200  -  total flux cleaned = -0.00448649 Jy
! Total flux subtracted in 200 components = -0.00448649 Jy
! Clean residual min=-0.004342 max=0.003873 Jy/beam
! Clean residual mean=0.000249 rms=0.000921 Jy/beam
! Combined flux in latest and established models = 1.61693 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 63 components and 1.61693 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.291700Jy  sigma=0.001423
! Fit after  self-cal, rms=0.291709Jy  sigma=0.001423
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.000286415 Jy
! Component: 100  -  total flux cleaned = 0.000464015 Jy
! Component: 150  -  total flux cleaned = 0.00063121 Jy
! Component: 200  -  total flux cleaned = 0.000707284 Jy
! Total flux subtracted in 200 components = 0.000707284 Jy
! Clean residual min=-0.004084 max=0.003816 Jy/beam
! Clean residual mean=0.000242 rms=0.000904 Jy/beam
! Combined flux in latest and established models = 1.61764 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 65 components and 1.61764 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.291657Jy  sigma=0.001423
! Fit after  self-cal, rms=0.291653Jy  sigma=0.001423
! 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.291653Jy  sigma=0.001423
! Fit after  self-cal, rms=0.292279Jy  sigma=0.001423
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.162 mas, bmaj=9.051 mas, bpa=-3.227 degrees
! Estimated noise=712.786 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00024639 Jy
! Component: 100  -  total flux cleaned = -8.80068e-05 Jy
! Component: 150  -  total flux cleaned = 0.000141733 Jy
! Component: 200  -  total flux cleaned = 0.000184708 Jy
! Total flux subtracted in 200 components = 0.000184708 Jy
! Clean residual min=-0.003427 max=0.004088 Jy/beam
! Clean residual mean=0.000615 rms=0.001267 Jy/beam
! Combined flux in latest and established models = 1.61782 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 74 components and 1.61782 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.292270Jy  sigma=0.001422
! Fit after  self-cal, rms=0.292267Jy  sigma=0.001422
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.000123371 Jy
! Component: 100  -  total flux cleaned = 0.000287786 Jy
! Component: 150  -  total flux cleaned = 0.000323916 Jy
! Component: 200  -  total flux cleaned = 0.000391658 Jy
! Total flux subtracted in 200 components = 0.000391658 Jy
! Clean residual min=-0.003422 max=0.004111 Jy/beam
! Clean residual mean=0.000604 rms=0.001259 Jy/beam
! Combined flux in latest and established models = 1.61822 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 79 components and 1.61822 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.292273Jy  sigma=0.001422
! Fit after  self-cal, rms=0.292270Jy  sigma=0.001422
! 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=4.772 mas, bpa=-4.253 degrees
! Estimated noise=529.901 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.408 x 4.772 at -4.253 degrees (North through East)
! Clean map  min=-0.0031371  max=1.3859 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.292270Jy  sigma=0.001422
! Fit after  self-cal, rms=0.280765Jy  sigma=0.001247
! Inverting map and beam 
! Estimated beam: bmin=2.408 mas, bmaj=4.776 mas, bpa=-4.245 degrees
! Estimated noise=529.203 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00354245 Jy
! Component: 100  -  total flux cleaned = -0.00469628 Jy
! Component: 150  -  total flux cleaned = -0.00505339 Jy
! Component: 200  -  total flux cleaned = -0.00530188 Jy
! Total flux subtracted in 200 components = -0.00530188 Jy
! Clean residual min=-0.003211 max=0.003416 Jy/beam
! Clean residual mean=0.000183 rms=0.000800 Jy/beam
! Combined flux in latest and established models = 1.61291 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 86 components and 1.61291 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.280663Jy  sigma=0.001246
! Fit after  self-cal, rms=0.280668Jy  sigma=0.001246
! Inverting map 
! Added new window around map position (9.5, 9.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00251188 Jy
! Component: 100  -  total flux cleaned = 0.0026164 Jy
! Component: 150  -  total flux cleaned = 0.0026141 Jy
! Component: 200  -  total flux cleaned = 0.00254234 Jy
! Total flux subtracted in 200 components = 0.00254234 Jy
! Clean residual min=-0.003176 max=0.003323 Jy/beam
! Clean residual mean=0.000157 rms=0.000774 Jy/beam
! Combined flux in latest and established models = 1.61546 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 100 components and 1.61546 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.280593Jy  sigma=0.001246
! Fit after  self-cal, rms=0.280588Jy  sigma=0.001246
! 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.280588Jy  sigma=0.001246
! Fit after  self-cal, rms=0.280793Jy  sigma=0.001245
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.108 mas, bmaj=4.172 mas, bpa=-5.337 degrees
! Estimated noise=1022.84 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.06337 Jy
! Component: 100  -  total flux cleaned = 1.31241 Jy
! Component: 150  -  total flux cleaned = 1.41866 Jy
! Component: 200  -  total flux cleaned = 1.4716 Jy
! Total flux subtracted in 200 components = 1.4716 Jy
! Clean residual min=-0.008436 max=0.024910 Jy/beam
! Clean residual mean=0.000160 rms=0.002641 Jy/beam
! Combined flux in latest and established models = 1.4716 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 14 model components to the UV plane model.
! The established model now contains 14 components and 1.4716 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.41 mas, bmaj=4.777 mas, bpa=-4.234 degrees
! Estimated noise=528.99 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.0471015 Jy
! Component: 100  -  total flux cleaned = 0.0744053 Jy
! Component: 150  -  total flux cleaned = 0.0920198 Jy
! Component: 200  -  total flux cleaned = 0.104273 Jy
! Total flux subtracted in 200 components = 0.104273 Jy
! Clean residual min=-0.002910 max=0.006817 Jy/beam
! Clean residual mean=0.000565 rms=0.001167 Jy/beam
! Combined flux in latest and established models = 1.57587 Jy
! Adding 40 model components to the UV plane model.
! The established model now contains 50 components and 1.57587 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00879389 Jy
! Component: 100  -  total flux cleaned = 0.0154864 Jy
! Component: 150  -  total flux cleaned = 0.0206693 Jy
! Component: 200  -  total flux cleaned = 0.0247497 Jy
! Total flux subtracted in 200 components = 0.0247497 Jy
! Clean residual min=-0.002989 max=0.003255 Jy/beam
! Clean residual mean=0.000286 rms=0.000806 Jy/beam
! Combined flux in latest and established models = 1.60062 Jy
! Adding 25 model components to the UV plane model.
! The established model now contains 64 components and 1.60062 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.165 mas, bmaj=9.064 mas, bpa=-3.276 degrees
! Estimated noise=710.009 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00615686 Jy
! Component: 100  -  total flux cleaned = 0.00966534 Jy
! Component: 150  -  total flux cleaned = 0.0117219 Jy
! Component: 200  -  total flux cleaned = 0.0123589 Jy
! Total flux subtracted in 200 components = 0.0123589 Jy
! Clean residual min=-0.002942 max=0.003753 Jy/beam
! Clean residual mean=0.000441 rms=0.001028 Jy/beam
! Combined flux in latest and established models = 1.61298 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.000550923 Jy
! Component: 100  -  total flux cleaned = 0.000944373 Jy
! Component: 150  -  total flux cleaned = 0.00125838 Jy
! Component: 200  -  total flux cleaned = 0.00146377 Jy
! Total flux subtracted in 200 components = 0.00146377 Jy
! Clean residual min=-0.002950 max=0.003548 Jy/beam
! Clean residual mean=0.000396 rms=0.001018 Jy/beam
! Combined flux in latest and established models = 1.61445 Jy
! Adding 76 model components to the UV plane model.
! The established model now contains 133 components and 1.61445 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.41 mas, bmaj=4.777 mas, bpa=-4.234 degrees
! Estimated noise=528.99 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000385168 Jy
! Component: 100  -  total flux cleaned = 0.000493115 Jy
! Component: 150  -  total flux cleaned = 0.000641588 Jy
! Component: 200  -  total flux cleaned = 0.000686325 Jy
! Total flux subtracted in 200 components = 0.000686325 Jy
! Clean residual min=-0.003278 max=0.002896 Jy/beam
! Clean residual mean=0.000128 rms=0.000739 Jy/beam
! Combined flux in latest and established models = 1.61513 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 145 components and 1.61513 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.280692Jy  sigma=0.001245
! Fit after  self-cal, rms=0.280673Jy  sigma=0.001245
wmodel J1751+0939_S_1999_03_08_pus_map.mod
! Writing 145 model components to file: J1751+0939_S_1999_03_08_pus_map.mod
wobs J1751+0939_S_1999_03_08_pus_uvs.fits
! Writing UV FITS file: J1751+0939_S_1999_03_08_pus_uvs.fits
wwins J1751+0939_S_1999_03_08_pus_map.win
! wwins: Wrote 3 windows to J1751+0939_S_1999_03_08_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.000349844 Jy
! Component: 100  -  total flux cleaned = 0.00110773 Jy
! Component: 150  -  total flux cleaned = 0.0013962 Jy
! Component: 200  -  total flux cleaned = 0.0018601 Jy
! Component: 250  -  total flux cleaned = 0.00222092 Jy
! Component: 300  -  total flux cleaned = 0.00261742 Jy
! Component: 350  -  total flux cleaned = 0.00291961 Jy
! Component: 400  -  total flux cleaned = 0.00317402 Jy
! Component: 450  -  total flux cleaned = 0.00346597 Jy
! Component: 500  -  total flux cleaned = 0.00371152 Jy
! Component: 550  -  total flux cleaned = 0.00395328 Jy
! Component: 600  -  total flux cleaned = 0.00419063 Jy
! Component: 650  -  total flux cleaned = 0.00438529 Jy
! Component: 700  -  total flux cleaned = 0.00457743 Jy
! Component: 750  -  total flux cleaned = 0.00469097 Jy
! Component: 800  -  total flux cleaned = 0.00484049 Jy
! Component: 850  -  total flux cleaned = 0.00491469 Jy
! Component: 900  -  total flux cleaned = 0.00506098 Jy
! Component: 950  -  total flux cleaned = 0.00513328 Jy
! Component: 1000  -  total flux cleaned = 0.00527644 Jy
! Component: 1050  -  total flux cleaned = 0.00534733 Jy
! Component: 1100  -  total flux cleaned = 0.00545238 Jy
! Component: 1150  -  total flux cleaned = 0.0054874 Jy
! Component: 1200  -  total flux cleaned = 0.00562524 Jy
! Component: 1250  -  total flux cleaned = 0.00562524 Jy
! Component: 1300  -  total flux cleaned = 0.00572718 Jy
! Component: 1350  -  total flux cleaned = 0.00579461 Jy
! Component: 1400  -  total flux cleaned = 0.00589465 Jy
! Component: 1450  -  total flux cleaned = 0.00592766 Jy
! Component: 1500  -  total flux cleaned = 0.00605894 Jy
! Component: 1550  -  total flux cleaned = 0.00605898 Jy
! Component: 1600  -  total flux cleaned = 0.0061238 Jy
! Component: 1650  -  total flux cleaned = 0.00615609 Jy
! Component: 1700  -  total flux cleaned = 0.00625212 Jy
! Component: 1750  -  total flux cleaned = 0.00631565 Jy
! Component: 1800  -  total flux cleaned = 0.00641021 Jy
! Component: 1850  -  total flux cleaned = 0.0064414 Jy
! Component: 1900  -  total flux cleaned = 0.00650405 Jy
! Component: 1950  -  total flux cleaned = 0.00662814 Jy
! Component: 2000  -  total flux cleaned = 0.00672042 Jy
! Total flux subtracted in 2048 components = 0.0067816 Jy
! Clean residual min=-0.001651 max=0.001784 Jy/beam
! Clean residual mean=0.000051 rms=0.000597 Jy/beam
! Combined flux in latest and established models = 1.62191 Jy
keep
! Adding 147 model components to the UV plane model.
! The established model now contains 292 components and 1.62191 Jy
![Exited script file: muppet]
wmap "J1751+0939_S_1999_03_08_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.41 x 4.777 at -4.234 degrees (North through East)
! Clean map  min=-0.0030393  max=1.391 Jy/beam
! Writing clean map to FITS file: J1751+0939_S_1999_03_08_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.39096 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000595929 
device "J1751+0939_S_1999_03_08_pus\_map.eps/VPS"
! Attempting to open device: 'J1751+0939_S_1999_03_08_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.128529 0.128529 0.257058 0.514116 1.02823 2.05647 4.11293 8.22586 16.4517 32.9035 65.8069
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0017 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.39 
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 4.777 at -4.234 degrees (North through East)
! Clean map  min=-0.0030393  max=1.391 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1751+0939_S_1999_03_08_pus\_map.gif/vgif"
! Attempting to open device: 'J1751+0939_S_1999_03_08_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1751+0939_S_1999_03_08_pus_uvs.log closed on Tue Jan  8 18:33:00 2008