! Started logfile: J0741+3112_S_1999_03_08_pus_uvs.log on Tue Jan  8 18:06:44 2008
obs J0741+3112_S_1999_03_08_pus_uva.fits
! Reading UV FITS file: J0741+3112_S_1999_03_08_pus_uva.fits
! AN table 1: 162 integrations on 190 of 190 possible baselines.
! AN table 2: 74 integrations on 190 of 190 possible baselines.
! AN table 3: 250 integrations on 190 of 190 possible baselines.
! AN table 4: 60 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.13742 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0741+3112
! 
! 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 57024 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 J0741+3112_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 2652 telescope corrections were flagged in sub-array 1.
!  A total of 1377 telescope corrections were flagged in sub-array 2.
!  A total of 3886 telescope corrections were flagged in sub-array 3.
!  A total of 500 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 2652 telescope corrections were flagged in sub-array 1.
!  A total of 1377 telescope corrections were flagged in sub-array 2.
!  A total of 3886 telescope corrections were flagged in sub-array 3.
!  A total of 500 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 2612 telescope corrections were flagged in sub-array 1.
!  A total of 1377 telescope corrections were flagged in sub-array 2.
!  A total of 3886 telescope corrections were flagged in sub-array 3.
!  A total of 500 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 2612 telescope corrections were flagged in sub-array 1.
!  A total of 1377 telescope corrections were flagged in sub-array 2.
!  A total of 3886 telescope corrections were flagged in sub-array 3.
!  A total of 500 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.890060Jy  sigma=0.014478
! Fit after  self-cal, rms=1.379052Jy  sigma=0.011273
! 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.067 mas, bmaj=3.218 mas, bpa=-11.93 degrees
! Estimated noise=766.715 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.54348 Jy
! Component: 100  -  total flux cleaned = 2.04977 Jy
! Total flux subtracted in 100 components = 2.04977 Jy
! Clean residual min=-0.048199 max=0.257360 Jy/beam
! Clean residual mean=0.000483 rms=0.016755 Jy/beam
! Combined flux in latest and established models = 2.04977 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 11 components and 2.04977 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.720890Jy  sigma=0.005653
! Fit after  self-cal, rms=0.717647Jy  sigma=0.005643
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.317026 Jy
! Component: 100  -  total flux cleaned = 0.520241 Jy
! Total flux subtracted in 100 components = 0.520241 Jy
! Clean residual min=-0.034830 max=0.111467 Jy/beam
! Clean residual mean=0.000226 rms=0.010062 Jy/beam
! Combined flux in latest and established models = 2.57001 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 22 components and 2.57001 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.516801Jy  sigma=0.003680
! Fit after  self-cal, rms=0.513898Jy  sigma=0.003669
! Inverting map 
! Added new window around map position (-0.5, 3).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.145234 Jy
! Component: 100  -  total flux cleaned = 0.246962 Jy
! Total flux subtracted in 100 components = 0.246962 Jy
! Clean residual min=-0.030478 max=0.059418 Jy/beam
! Clean residual mean=0.000105 rms=0.007764 Jy/beam
! Combined flux in latest and established models = 2.81697 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 31 components and 2.81697 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.458751Jy  sigma=0.003057
! Fit after  self-cal, rms=0.458177Jy  sigma=0.003054
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0753425 Jy
! Component: 100  -  total flux cleaned = 0.128779 Jy
! Total flux subtracted in 100 components = 0.128779 Jy
! Clean residual min=-0.027920 max=0.041363 Jy/beam
! Clean residual mean=0.000042 rms=0.006990 Jy/beam
! Combined flux in latest and established models = 2.94575 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 34 components and 2.94575 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.442865Jy  sigma=0.002866
! Fit after  self-cal, rms=0.442632Jy  sigma=0.002864
! 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.317 mas, bmaj=4.091 mas, bpa=-14.26 degrees
! Estimated noise=423.349 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, -2.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0674961 Jy
! Component: 100  -  total flux cleaned = 0.11324 Jy
! Component: 150  -  total flux cleaned = 0.147259 Jy
! Component: 200  -  total flux cleaned = 0.173018 Jy
! Total flux subtracted in 200 components = 0.173018 Jy
! Clean residual min=-0.028845 max=0.027183 Jy/beam
! Clean residual mean=-0.000963 rms=0.006961 Jy/beam
! Combined flux in latest and established models = 3.11877 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 62 components and 3.11877 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.431724Jy  sigma=0.002729
! Fit after  self-cal, rms=0.431191Jy  sigma=0.002725
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.00     GC        1.08     GG        1.00*    
!   HN        1.02     KP        0.90     LA        0.97     NL        1.00     
!   OV        0.98     PT        1.02     SC        1.04     WF        1.00     
!   GN        0.98     HH        1.00*    KK        0.98     MC        0.99     
!   MK        0.95     NY        1.02     ON        0.97     WZ        0.92     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00     GG        1.00*    
!   HN        1.00*    KP        1.00     LA        1.00*    NL        1.00*    
!   OV        0.98     PT        1.02     SC        1.00*    WF        1.11     
!   GN        1.07     HH        1.00*    KK        1.00     MC        1.00*    
!   MK        0.96     NY        1.10     ON        1.00*    WZ        1.00*    
! 
!  A total of 144 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        0.98     GC        0.98     GG        1.00*    
!   HN        1.02     KP        1.01     LA        0.99     NL        0.93     
!   OV        1.00     PT        1.03     SC        1.00     WF        1.00     
!   GN        0.95     HH        1.00*    KK        1.16     MC        1.37     
!   MK        1.00     NY        0.96     ON        1.02     WZ        0.96     
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        0.97     GC        1.01     GG        1.00*    
!   HN        0.99     KP        1.00     LA        0.98     NL        0.96     
!   OV        0.99     PT        1.03     SC        1.04     WF        0.99     
!   GN        0.94     HH        1.00*    KK        1.01     MC        1.10     
!   MK        0.99     NY        0.99     ON        1.00*    WZ        1.24     
! 
! 
! Correcting IF 2.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.07     GC        1.10     GG        1.00*    
!   HN        0.95     KP        0.94     LA        0.96     NL        1.00     
!   OV        0.95     PT        0.98     SC        1.09     WF        1.02     
!   GN        0.98     HH        1.00*    KK        0.94     MC        1.80     
!   MK        0.97     NY        1.01     ON        1.02     WZ        0.93     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.01     GG        1.00*    
!   HN        1.00*    KP        0.98     LA        1.00*    NL        1.00*    
!   OV        0.89     PT        1.00     SC        1.00*    WF        1.14     
!   GN        1.07     HH        1.00*    KK        0.96     MC        1.00*    
!   MK        0.97     NY        1.12     ON        1.00*    WZ        1.00*    
! 
!  A total of 144 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.03     GC        1.01     GG        1.00*    
!   HN        0.92     KP        0.97     LA        0.96     NL        1.06     
!   OV        0.95     PT        0.99     SC        1.04     WF        1.01     
!   GN        0.97     HH        1.00*    KK        1.11     MC        0.99     
!   MK        1.01     NY        0.96     ON        1.02     WZ        0.95     
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.00     GC        1.05     GG        1.00*    
!   HN        0.96     KP        0.96     LA        0.97     NL        1.14     
!   OV        0.96     PT        0.98     SC        1.08     WF        0.99     
!   GN        0.95     HH        1.00*    KK        0.97     MC        0.92     
!   MK        1.01     NY        0.98     ON        1.00*    WZ        1.24     
! 
! 
! Correcting IF 3.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.03     GC        1.08     GG        1.00*    
!   HN        1.21     KP        0.93     LA        0.96     NL        1.00     
!   OV        0.97     PT        0.97     SC        1.04     WF        1.00     
!   GN        0.98     HH        0.88     KK        0.92     MC        0.86     
!   MK        0.95     NY        1.00     ON        1.00     WZ        0.94     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.01     GG        1.00*    
!   HN        1.00*    KP        0.98     LA        1.00*    NL        1.00*    
!   OV        0.92     PT        0.95     SC        1.00*    WF        1.11     
!   GN        1.03     HH        1.00*    KK        0.97     MC        1.00*    
!   MK        0.95     NY        1.09     ON        1.00*    WZ        1.00*    
! 
!  A total of 144 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.00     GC        0.98     GG        1.00*    
!   HN        1.16     KP        0.96     LA        0.98     NL        0.96     
!   OV        0.97     PT        0.96     SC        1.00     WF        0.99     
!   GN        0.95     HH        1.00*    KK        1.10     MC        0.88     
!   MK        0.99     NY        0.93     ON        0.99     WZ        0.96     
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        0.97     GC        1.02     GG        1.00*    
!   HN        1.21     KP        0.95     LA        0.98     NL        0.97     
!   OV        0.96     PT        0.93     SC        1.03     WF        0.96     
!   GN        0.94     HH        1.00*    KK        0.97     MC        3.27     
!   MK        0.98     NY        0.97     ON        1.00*    WZ        1.25     
! 
! 
! Correcting IF 4.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.02     GC        1.08     GG        1.00*    
!   HN        1.14     KP        0.94     LA        0.97     NL        0.99     
!   OV        0.98     PT        1.05     SC        1.03     WF        0.99     
!   GN        0.96     HH        0.95     KK        0.95     MC        0.81     
!   MK        0.96     NY        0.99     ON        0.98     WZ        0.92     
! 
!  A total of 6 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*    
!   HN        1.00*    KP        0.97     LA        1.00*    NL        1.00*    
!   OV        0.95     PT        0.94     SC        1.00*    WF        1.09     
!   GN        1.03     HH        1.00*    KK        1.00     MC        1.00*    
!   MK        0.98     NY        1.11     ON        1.00*    WZ        1.00*    
! 
!  A total of 144 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        1.00     GC        0.99     GG        1.00*    
!   HN        1.10     KP        0.97     LA        0.97     NL        1.01     
!   OV        0.98     PT        1.06     SC        0.89     WF        0.99     
!   GN        0.93     HH        1.00*    KK        1.16     MC        0.87     
!   MK        1.02     NY        0.93     ON        0.95     WZ        0.92     
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.95     FD        0.97     GC        1.02     GG        1.00*    
!   HN        1.15     KP        0.98     LA        0.97     NL        1.10     
!   OV        0.99     PT        0.77     SC        1.03     WF        0.96     
!   GN        0.92     HH        1.00*    KK        1.00     MC        2.55     
!   MK        0.99     NY        0.98     ON        1.00*    WZ        1.25     
! 
! 
! Fit before self-cal, rms=0.431191Jy  sigma=0.002725
! Fit after  self-cal, rms=0.368627Jy  sigma=0.001913
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.334 mas, bmaj=4.137 mas, bpa=-13.39 degrees
! Estimated noise=427.859 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.00446627 Jy
! Component: 100  -  total flux cleaned = 0.00610904 Jy
! Component: 150  -  total flux cleaned = 0.00650887 Jy
! Component: 200  -  total flux cleaned = 0.00687146 Jy
! Total flux subtracted in 200 components = 0.00687146 Jy
! Clean residual min=-0.009580 max=0.009572 Jy/beam
! Clean residual mean=-0.000116 rms=0.002399 Jy/beam
! Combined flux in latest and established models = 3.12564 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 82 components and 3.12564 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.367172Jy  sigma=0.001899
! Fit after  self-cal, rms=0.367750Jy  sigma=0.001898
! 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.367750Jy  sigma=0.001898
! Fit after  self-cal, rms=0.356558Jy  sigma=0.001761
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.332 mas, bmaj=4.142 mas, bpa=-13.32 degrees
! Estimated noise=428.25 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00789871 Jy
! Component: 100  -  total flux cleaned = 0.010334 Jy
! Component: 150  -  total flux cleaned = 0.0110044 Jy
! Component: 200  -  total flux cleaned = 0.010421 Jy
! Total flux subtracted in 200 components = 0.010421 Jy
! Clean residual min=-0.007158 max=0.008626 Jy/beam
! Clean residual mean=-0.000064 rms=0.001552 Jy/beam
! Combined flux in latest and established models = 3.13606 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 87 components and 3.13606 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.355787Jy  sigma=0.001753
! Fit after  self-cal, rms=0.355706Jy  sigma=0.001753
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 (7.5, -5.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00359799 Jy
! Component: 100  -  total flux cleaned = 0.00439745 Jy
! Component: 150  -  total flux cleaned = 0.00484504 Jy
! Component: 200  -  total flux cleaned = 0.00505451 Jy
! Total flux subtracted in 200 components = 0.00505451 Jy
! Clean residual min=-0.007928 max=0.006430 Jy/beam
! Clean residual mean=-0.000100 rms=0.001471 Jy/beam
! Combined flux in latest and established models = 3.14112 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 103 components and 3.14112 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.355347Jy  sigma=0.001749
! Fit after  self-cal, rms=0.355290Jy  sigma=0.001749
! 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.355290Jy  sigma=0.001749
! Fit after  self-cal, rms=0.357168Jy  sigma=0.001739
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.331 mas, bmaj=4.144 mas, bpa=-13.25 degrees
! Estimated noise=428.896 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00476307 Jy
! Component: 100  -  total flux cleaned = 0.00661021 Jy
! Component: 150  -  total flux cleaned = 0.00729182 Jy
! Component: 200  -  total flux cleaned = 0.00749649 Jy
! Total flux subtracted in 200 components = 0.00749649 Jy
! Clean residual min=-0.006727 max=0.005163 Jy/beam
! Clean residual mean=-0.000130 rms=0.001324 Jy/beam
! Combined flux in latest and established models = 3.14861 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 109 components and 3.14861 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356845Jy  sigma=0.001736
! Fit after  self-cal, rms=0.356829Jy  sigma=0.001735
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.000799747 Jy
! Component: 100  -  total flux cleaned = 0.00115838 Jy
! Component: 150  -  total flux cleaned = 0.00149094 Jy
! Component: 200  -  total flux cleaned = 0.00179539 Jy
! Total flux subtracted in 200 components = 0.00179539 Jy
! Clean residual min=-0.007108 max=0.005039 Jy/beam
! Clean residual mean=-0.000143 rms=0.001291 Jy/beam
! Combined flux in latest and established models = 3.15041 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 118 components and 3.15041 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356679Jy  sigma=0.001734
! Fit after  self-cal, rms=0.356664Jy  sigma=0.001734
! 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.356664Jy  sigma=0.001734
! Fit after  self-cal, rms=0.357837Jy  sigma=0.001733
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.019 mas, bmaj=8.597 mas, bpa=8.118 degrees
! Estimated noise=621.865 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00385745 Jy
! Component: 100  -  total flux cleaned = 0.00397992 Jy
! Component: 150  -  total flux cleaned = 0.00418452 Jy
! Component: 200  -  total flux cleaned = 0.00434348 Jy
! Total flux subtracted in 200 components = 0.00434348 Jy
! Clean residual min=-0.007690 max=0.007140 Jy/beam
! Clean residual mean=-0.000512 rms=0.002348 Jy/beam
! Combined flux in latest and established models = 3.15475 Jy
selfcal
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 141 components and 3.15475 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.357790Jy  sigma=0.001732
! Fit after  self-cal, rms=0.357774Jy  sigma=0.001732
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.000453332 Jy
! Component: 100  -  total flux cleaned = 0.00053204 Jy
! Component: 150  -  total flux cleaned = 0.000601031 Jy
! Component: 200  -  total flux cleaned = 0.000601728 Jy
! Total flux subtracted in 200 components = 0.000601729 Jy
! Clean residual min=-0.007539 max=0.006982 Jy/beam
! Clean residual mean=-0.000527 rms=0.002339 Jy/beam
! Combined flux in latest and established models = 3.15535 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 148 components and 3.15535 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.357767Jy  sigma=0.001732
! Fit after  self-cal, rms=0.357761Jy  sigma=0.001732
! 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.33 mas, bmaj=4.144 mas, bpa=-13.19 degrees
! Estimated noise=429.399 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.33 x 4.144 at -13.19 degrees (North through East)
! Clean map  min=-0.0047883  max=2.1364 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.357761Jy  sigma=0.001732
! Fit after  self-cal, rms=0.412772Jy  sigma=0.001318
! Inverting map and beam 
! Estimated beam: bmin=2.331 mas, bmaj=4.144 mas, bpa=-13.18 degrees
! Estimated noise=429.127 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000992052 Jy
! Component: 100  -  total flux cleaned = -0.000993526 Jy
! Component: 150  -  total flux cleaned = -0.000988286 Jy
! Component: 200  -  total flux cleaned = -0.000850494 Jy
! Total flux subtracted in 200 components = -0.000850494 Jy
! Clean residual min=-0.006416 max=0.004704 Jy/beam
! Clean residual mean=-0.000119 rms=0.001089 Jy/beam
! Combined flux in latest and established models = 3.1545 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 156 components and 3.1545 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.412652Jy  sigma=0.001316
! Fit after  self-cal, rms=0.412651Jy  sigma=0.001316
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000178887 Jy
! Component: 100  -  total flux cleaned = -5.50235e-05 Jy
! Component: 150  -  total flux cleaned = 5.84396e-05 Jy
! Component: 200  -  total flux cleaned = 5.76443e-05 Jy
! Total flux subtracted in 200 components = 5.76443e-05 Jy
! Clean residual min=-0.006484 max=0.004579 Jy/beam
! Clean residual mean=-0.000119 rms=0.001075 Jy/beam
! Combined flux in latest and established models = 3.15456 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 161 components and 3.15456 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.412588Jy  sigma=0.001315
! Fit after  self-cal, rms=0.412586Jy  sigma=0.001315
! 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.412586Jy  sigma=0.001315
! Fit after  self-cal, rms=0.412805Jy  sigma=0.001315
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.083 mas, bmaj=3.235 mas, bpa=-10.6 degrees
! Estimated noise=775.779 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.55292 Jy
! Component: 100  -  total flux cleaned = 2.06495 Jy
! Component: 150  -  total flux cleaned = 2.37656 Jy
! Component: 200  -  total flux cleaned = 2.57407 Jy
! Total flux subtracted in 200 components = 2.57407 Jy
! Clean residual min=-0.019307 max=0.105625 Jy/beam
! Clean residual mean=0.000280 rms=0.007107 Jy/beam
! Combined flux in latest and established models = 2.57407 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 2.57407 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.331 mas, bmaj=4.145 mas, bpa=-13.13 degrees
! Estimated noise=429.281 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.193575 Jy
! Component: 100  -  total flux cleaned = 0.308094 Jy
! Component: 150  -  total flux cleaned = 0.382823 Jy
! Component: 200  -  total flux cleaned = 0.433226 Jy
! Total flux subtracted in 200 components = 0.433226 Jy
! Clean residual min=-0.006473 max=0.027884 Jy/beam
! Clean residual mean=0.000914 rms=0.003381 Jy/beam
! Combined flux in latest and established models = 3.00729 Jy
! Adding 42 model components to the UV plane model.
! The established model now contains 48 components and 3.00729 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0360262 Jy
! Component: 100  -  total flux cleaned = 0.0627968 Jy
! Component: 150  -  total flux cleaned = 0.0829009 Jy
! Component: 200  -  total flux cleaned = 0.0983529 Jy
! Total flux subtracted in 200 components = 0.0983529 Jy
! Clean residual min=-0.005424 max=0.009221 Jy/beam
! Clean residual mean=0.000224 rms=0.001541 Jy/beam
! Combined flux in latest and established models = 3.10565 Jy
! Adding 28 model components to the UV plane model.
! The established model now contains 66 components and 3.10565 Jy
! Inverting map 
! Added new window around map position (7, 1.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0120902 Jy
! Component: 100  -  total flux cleaned = 0.0188208 Jy
! Component: 150  -  total flux cleaned = 0.0232694 Jy
! Component: 200  -  total flux cleaned = 0.0272151 Jy
! Total flux subtracted in 200 components = 0.0272151 Jy
! Clean residual min=-0.004973 max=0.005934 Jy/beam
! Clean residual mean=0.000034 rms=0.001222 Jy/beam
! Combined flux in latest and established models = 3.13286 Jy
! Adding 39 model components to the UV plane model.
! The established model now contains 85 components and 3.13286 Jy
! Inverting map 
! Added new window around map position (46, -40.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00425868 Jy
! Component: 100  -  total flux cleaned = 0.00768922 Jy
! Component: 150  -  total flux cleaned = 0.00990411 Jy
! Component: 200  -  total flux cleaned = 0.0113341 Jy
! Total flux subtracted in 200 components = 0.0113341 Jy
! Clean residual min=-0.004672 max=0.004888 Jy/beam
! Clean residual mean=-0.000044 rms=0.001137 Jy/beam
! Combined flux in latest and established models = 3.1442 Jy
! Adding 31 model components to the UV plane model.
! The established model now contains 96 components and 3.1442 Jy
! Inverting map 
! Added new window around map position (11.5, 4.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0026386 Jy
! Component: 100  -  total flux cleaned = 0.00317193 Jy
! Component: 150  -  total flux cleaned = 0.00401276 Jy
! Component: 200  -  total flux cleaned = 0.00480669 Jy
! Total flux subtracted in 200 components = 0.00480669 Jy
! Clean residual min=-0.004416 max=0.004542 Jy/beam
! Clean residual mean=-0.000078 rms=0.001100 Jy/beam
! Combined flux in latest and established models = 3.149 Jy
! Adding 37 model components to the UV plane model.
! The established model now contains 111 components and 3.149 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.02 mas, bmaj=8.6 mas, bpa=8.222 degrees
! Estimated noise=621.19 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00380842 Jy
! Component: 100  -  total flux cleaned = 0.00436421 Jy
! Component: 150  -  total flux cleaned = 0.00450078 Jy
! Component: 200  -  total flux cleaned = 0.00444266 Jy
! Total flux subtracted in 200 components = 0.00444266 Jy
! Clean residual min=-0.005642 max=0.005310 Jy/beam
! Clean residual mean=-0.000394 rms=0.001996 Jy/beam
! Combined flux in latest and established models = 3.15345 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 = -5.03858e-05 Jy
! Component: 100  -  total flux cleaned = -9.33317e-05 Jy
! Component: 150  -  total flux cleaned = -0.00013368 Jy
! Component: 200  -  total flux cleaned = -0.000169143 Jy
! Total flux subtracted in 200 components = -0.000169143 Jy
! Clean residual min=-0.005604 max=0.005232 Jy/beam
! Clean residual mean=-0.000393 rms=0.001987 Jy/beam
! Combined flux in latest and established models = 3.15328 Jy
! Adding 42 model components to the UV plane model.
! The established model now contains 146 components and 3.15328 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.331 mas, bmaj=4.145 mas, bpa=-13.13 degrees
! Estimated noise=429.281 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00150131 Jy
! Component: 100  -  total flux cleaned = -0.00164788 Jy
! Component: 150  -  total flux cleaned = -0.00151598 Jy
! Component: 200  -  total flux cleaned = -0.0012625 Jy
! Total flux subtracted in 200 components = -0.0012625 Jy
! Clean residual min=-0.004095 max=0.004260 Jy/beam
! Clean residual mean=-0.000102 rms=0.001068 Jy/beam
! Combined flux in latest and established models = 3.15201 Jy
selfcal
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 153 components and 3.15201 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.412904Jy  sigma=0.001315
! Fit after  self-cal, rms=0.412886Jy  sigma=0.001314
wmodel J0741+3112_S_1999_03_08_pus_map.mod
! Writing 153 model components to file: J0741+3112_S_1999_03_08_pus_map.mod
wobs J0741+3112_S_1999_03_08_pus_uvs.fits
! Writing UV FITS file: J0741+3112_S_1999_03_08_pus_uvs.fits
wwins J0741+3112_S_1999_03_08_pus_map.win
! wwins: Wrote 7 windows to J0741+3112_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.00103243 Jy
! Component: 100  -  total flux cleaned = 0.00147844 Jy
! Component: 150  -  total flux cleaned = 0.0014798 Jy
! Component: 200  -  total flux cleaned = 0.00148049 Jy
! Component: 250  -  total flux cleaned = 0.00154692 Jy
! Component: 300  -  total flux cleaned = 0.0015474 Jy
! Component: 350  -  total flux cleaned = 0.00167678 Jy
! Component: 400  -  total flux cleaned = 0.00155 Jy
! Component: 450  -  total flux cleaned = 0.00155018 Jy
! Component: 500  -  total flux cleaned = 0.00161213 Jy
! Component: 550  -  total flux cleaned = 0.00167238 Jy
! Component: 600  -  total flux cleaned = 0.00155239 Jy
! Component: 650  -  total flux cleaned = 0.00167103 Jy
! Component: 700  -  total flux cleaned = 0.00143618 Jy
! Component: 750  -  total flux cleaned = 0.00132054 Jy
! Component: 800  -  total flux cleaned = 0.00132042 Jy
! Component: 850  -  total flux cleaned = 0.0011499 Jy
! Component: 900  -  total flux cleaned = 0.00103819 Jy
! Component: 950  -  total flux cleaned = 0.00114989 Jy
! Component: 1000  -  total flux cleaned = 0.000983959 Jy
! Component: 1050  -  total flux cleaned = 0.000929559 Jy
! Component: 1100  -  total flux cleaned = 0.000875364 Jy
! Component: 1150  -  total flux cleaned = 0.00082206 Jy
! Component: 1200  -  total flux cleaned = 0.000715492 Jy
! Component: 1250  -  total flux cleaned = 0.000715382 Jy
! Component: 1300  -  total flux cleaned = 0.000714939 Jy
! Component: 1350  -  total flux cleaned = 0.000558885 Jy
! Component: 1400  -  total flux cleaned = 0.000610515 Jy
! Component: 1450  -  total flux cleaned = 0.000559145 Jy
! Component: 1500  -  total flux cleaned = 0.000457193 Jy
! Component: 1550  -  total flux cleaned = 0.000457506 Jy
! Component: 1600  -  total flux cleaned = 0.000457708 Jy
! Component: 1650  -  total flux cleaned = 0.000458016 Jy
! Component: 1700  -  total flux cleaned = 0.000458031 Jy
! Component: 1750  -  total flux cleaned = 0.000408908 Jy
! Component: 1800  -  total flux cleaned = 0.000360109 Jy
! Component: 1850  -  total flux cleaned = 0.000408958 Jy
! Component: 1900  -  total flux cleaned = 0.000215373 Jy
! Component: 1950  -  total flux cleaned = 0.000359762 Jy
! Component: 2000  -  total flux cleaned = 0.000167989 Jy
! Total flux subtracted in 2048 components = 0.000215918 Jy
! Clean residual min=-0.002550 max=0.002873 Jy/beam
! Clean residual mean=-0.000105 rms=0.000885 Jy/beam
! Combined flux in latest and established models = 3.15223 Jy
keep
! Adding 166 model components to the UV plane model.
! The established model now contains 318 components and 3.15223 Jy
![Exited script file: muppet]
wmap "J0741+3112_S_1999_03_08_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.331 x 4.145 at -13.13 degrees (North through East)
! Clean map  min=-0.003445  max=2.1369 Jy/beam
! Writing clean map to FITS file: J0741+3112_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 2.13686 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000882687 
device "J0741+3112_S_1999_03_08_pus\_map.eps/VPS"
! Attempting to open device: 'J0741+3112_S_1999_03_08_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.123923 0.123923 0.247846 0.495691 0.991382 1.98276 3.96553 7.93106 15.8621 31.7242 63.4485
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0026 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.136 
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.331 x 4.145 at -13.13 degrees (North through East)
! Clean map  min=-0.003445  max=2.1369 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0741+3112_S_1999_03_08_pus\_map.gif/vgif"
! Attempting to open device: 'J0741+3112_S_1999_03_08_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0741+3112_S_1999_03_08_pus_uvs.log closed on Tue Jan  8 18:07:24 2008