! Started logfile: J2005+7752_S_1998_10_01_pus_uvs.log on Thu Feb  7 17:29:56 2008
obs J2005+7752_S_1998_10_01_pus_uva.fits
! Reading UV FITS file: J2005+7752_S_1998_10_01_pus_uva.fits
! AN table 1: 188 integrations on 136 of 136 possible baselines.
! AN table 2: 373 integrations on 136 of 136 possible baselines.
! AN table 3: 87 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.327058 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2005+7752
! 
! 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.22298e+09        4e+06          1        4e+06
!  02        2  2.24298e+09        4e+06          1        4e+06
!  03        3  2.33298e+09        4e+06          1        4e+06
!  04        4  2.36298e+09        4e+06          1        4e+06
! 
! Polarization(s): RR
! 
! Read 1537 lines of history.
! 
! Reading 115292 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 J2005+7752_S_1998_10_01_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 873 telescope corrections were flagged in sub-array 1.
!  A total of 3872 telescope corrections were flagged in sub-array 2.
!  A total of 1065 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 873 telescope corrections were flagged in sub-array 1.
!  A total of 3872 telescope corrections were flagged in sub-array 2.
!  A total of 1065 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 874 telescope corrections were flagged in sub-array 1.
!  A total of 3877 telescope corrections were flagged in sub-array 2.
!  A total of 1065 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 878 telescope corrections were flagged in sub-array 1.
!  A total of 3877 telescope corrections were flagged in sub-array 2.
!  A total of 1065 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.820657Jy  sigma=0.004507
! Fit after  self-cal, rms=0.581432Jy  sigma=0.002914
! 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.206 mas, bmaj=2.357 mas, bpa=24.28 degrees
! Estimated noise=734.174 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 = 0.637104 Jy
! Component: 100  -  total flux cleaned = 0.813715 Jy
! Total flux subtracted in 100 components = 0.813715 Jy
! Clean residual min=-0.016690 max=0.075901 Jy/beam
! Clean residual mean=0.000233 rms=0.004722 Jy/beam
! Combined flux in latest and established models = 0.813715 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.813715 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.567978Jy  sigma=0.002861
! Fit after  self-cal, rms=0.567904Jy  sigma=0.002861
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0814206 Jy
! Component: 100  -  total flux cleaned = 0.11994 Jy
! Total flux subtracted in 100 components = 0.11994 Jy
! Clean residual min=-0.014283 max=0.046529 Jy/beam
! Clean residual mean=0.000137 rms=0.003589 Jy/beam
! Combined flux in latest and established models = 0.933655 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 9 components and 0.933655 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.553835Jy  sigma=0.002723
! Fit after  self-cal, rms=0.553740Jy  sigma=0.002723
! Inverting map 
! Added new window around map position (-5.5, -0.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0404901 Jy
! Component: 100  -  total flux cleaned = 0.0628864 Jy
! Total flux subtracted in 100 components = 0.0628864 Jy
! Clean residual min=-0.013650 max=0.015521 Jy/beam
! Clean residual mean=0.000089 rms=0.003206 Jy/beam
! Combined flux in latest and established models = 0.996541 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 17 components and 0.996541 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.550070Jy  sigma=0.002685
! Fit after  self-cal, rms=0.549733Jy  sigma=0.002682
! 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.84 mas, bmaj=3.059 mas, bpa=65.46 degrees
! Estimated noise=328.59 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.0265597 Jy
! Component: 100  -  total flux cleaned = 0.0415784 Jy
! Component: 150  -  total flux cleaned = 0.0509587 Jy
! Component: 200  -  total flux cleaned = 0.057034 Jy
! Total flux subtracted in 200 components = 0.057034 Jy
! Clean residual min=-0.008296 max=0.011191 Jy/beam
! Clean residual mean=0.000263 rms=0.002204 Jy/beam
! Combined flux in latest and established models = 1.05357 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 32 components and 1.05357 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.548496Jy  sigma=0.002669
! Fit after  self-cal, rms=0.548410Jy  sigma=0.002668
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.93     FD        1.02     GC        0.99     HN        0.97     
!   KK        1.06     KP        1.03     LA        0.94     MK        0.99     
!   NL        0.98     NY        0.97     ON        1.00     OV        1.00     
!   PT        1.03     SC        1.08     WF        0.97     MC        1.01     
!   GN        0.96     
! 
!  A total of 72 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.04     GC        1.04     HN        0.99     
!   KK        0.99     KP        0.97     LA        0.96     MK        0.98     
!   NL        1.00     NY        0.93     ON        0.97     OV        1.01     
!   PT        1.04     SC        1.18     WF        0.92     MC        1.00     
!   GN        0.99     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.01     HN        0.95     
!   KK        1.00     KP        1.00*    LA        1.00*    MK        0.91     
!   NL        1.00*    NY        0.95     ON        0.92     OV        1.00*    
!   PT        1.00*    SC        1.00*    WF        1.00*    MC        1.03     
!   GN        0.92     
! 
! 
! Correcting IF 2.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        1.00     GC        0.97     HN        1.02     
!   KK        1.05     KP        1.02     LA        1.01     MK        1.05     
!   NL        0.97     NY        0.99     ON        1.03     OV        1.01     
!   PT        1.00     SC        1.10     WF        1.01     MC        0.96     
!   GN        0.95     
! 
!  A total of 72 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.03     GC        0.99     HN        1.04     
!   KK        1.02     KP        1.02     LA        1.02     MK        1.05     
!   NL        1.02     NY        0.95     ON        0.99     OV        1.02     
!   PT        1.00     SC        1.19     WF        1.02     MC        1.04     
!   GN        0.97     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        0.95     HN        0.99     
!   KK        1.00     KP        1.00*    LA        1.00*    MK        1.02     
!   NL        1.00*    NY        0.97     ON        0.93     OV        1.00*    
!   PT        1.00*    SC        1.00*    WF        1.00*    MC        1.16     
!   GN        0.93     
! 
! 
! Correcting IF 3.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.06     GC        1.00     HN        0.97     
!   KK        1.07     KP        1.03     LA        0.99     MK        0.99     
!   NL        0.97     NY        1.00     ON        1.00     OV        1.00     
!   PT        0.98     SC        1.11     WF        1.02     MC        0.99     
!   GN        0.98     
! 
!  A total of 75 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.10     GC        0.99     HN        0.99     
!   KK        1.01     KP        1.01     LA        1.01     MK        0.97     
!   NL        1.00     NY        0.96     ON        0.92     OV        1.02     
!   PT        0.97     SC        1.17     WF        0.99     MC        0.81     
!   GN        0.98     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        0.99     HN        0.94     
!   KK        0.99     KP        1.00*    LA        1.00*    MK        0.95     
!   NL        1.00*    NY        0.98     ON        0.96     OV        1.00*    
!   PT        1.00*    SC        1.00*    WF        1.00*    MC        1.04     
!   GN        0.96     
! 
! 
! Correcting IF 4.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.01     GC        0.99     HN        0.98     
!   KK        1.01     KP        1.04     LA        0.97     MK        0.98     
!   NL        0.96     NY        0.98     ON        1.05     OV        1.01     
!   PT        0.91     SC        1.09     WF        1.01     MC        0.89     
!   GN        0.96     
! 
!  A total of 75 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.04     GC        1.00     HN        1.01     
!   KK        1.01     KP        1.04     LA        1.00     MK        1.00     
!   NL        1.01     NY        1.00     ON        0.96     OV        1.01     
!   PT        0.84     SC        1.16     WF        0.94     MC        0.87     
!   GN        0.97     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00     HN        0.96     
!   KK        0.97     KP        1.00*    LA        1.00*    MK        0.99     
!   NL        1.00*    NY        1.04     ON        0.95     OV        1.00*    
!   PT        1.00*    SC        1.00*    WF        1.00*    MC        1.06     
!   GN        0.96     
! 
! 
! Fit before self-cal, rms=0.548410Jy  sigma=0.002668
! Fit after  self-cal, rms=0.545861Jy  sigma=0.002640
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.836 mas, bmaj=3.061 mas, bpa=64.01 degrees
! Estimated noise=327.892 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 (-18, -2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0111518 Jy
! Component: 100  -  total flux cleaned = 0.0175168 Jy
! Component: 150  -  total flux cleaned = 0.0219691 Jy
! Component: 200  -  total flux cleaned = 0.0253122 Jy
! Total flux subtracted in 200 components = 0.0253122 Jy
! Clean residual min=-0.005145 max=0.005259 Jy/beam
! Clean residual mean=-0.000007 rms=0.001265 Jy/beam
! Combined flux in latest and established models = 1.07889 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 58 components and 1.07889 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.545602Jy  sigma=0.002637
! Fit after  self-cal, rms=0.545707Jy  sigma=0.002637
! 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.545707Jy  sigma=0.002637
! Fit after  self-cal, rms=0.545808Jy  sigma=0.002624
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.831 mas, bmaj=3.065 mas, bpa=64.9 degrees
! Estimated noise=328.284 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00318166 Jy
! Component: 100  -  total flux cleaned = 0.0041507 Jy
! Component: 150  -  total flux cleaned = 0.00516835 Jy
! Component: 200  -  total flux cleaned = 0.00597505 Jy
! Total flux subtracted in 200 components = 0.00597505 Jy
! Clean residual min=-0.004400 max=0.004653 Jy/beam
! Clean residual mean=0.000004 rms=0.001017 Jy/beam
! Combined flux in latest and established models = 1.08486 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 76 components and 1.08486 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.545759Jy  sigma=0.002623
! Fit after  self-cal, rms=0.545872Jy  sigma=0.002623
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 (-32.5, -0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00487792 Jy
! Component: 100  -  total flux cleaned = 0.00774547 Jy
! Component: 150  -  total flux cleaned = 0.00902041 Jy
! Component: 200  -  total flux cleaned = 0.00989555 Jy
! Total flux subtracted in 200 components = 0.00989555 Jy
! Clean residual min=-0.004493 max=0.003760 Jy/beam
! Clean residual mean=-0.000041 rms=0.000946 Jy/beam
! Combined flux in latest and established models = 1.09476 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 92 components and 1.09476 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.545821Jy  sigma=0.002623
! Fit after  self-cal, rms=0.545819Jy  sigma=0.002623
! 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.545819Jy  sigma=0.002623
! Fit after  self-cal, rms=0.547536Jy  sigma=0.002622
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.83 mas, bmaj=3.065 mas, bpa=64.75 degrees
! Estimated noise=328.715 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00238072 Jy
! Component: 100  -  total flux cleaned = 0.00338498 Jy
! Component: 150  -  total flux cleaned = 0.00407944 Jy
! Component: 200  -  total flux cleaned = 0.00452685 Jy
! Total flux subtracted in 200 components = 0.00452685 Jy
! Clean residual min=-0.004625 max=0.003564 Jy/beam
! Clean residual mean=-0.000043 rms=0.000928 Jy/beam
! Combined flux in latest and established models = 1.09928 Jy
selfcal
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 99 components and 1.09928 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.547508Jy  sigma=0.002622
! Fit after  self-cal, rms=0.547528Jy  sigma=0.002622
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.000664386 Jy
! Component: 100  -  total flux cleaned = 0.00102145 Jy
! Component: 150  -  total flux cleaned = 0.00130111 Jy
! Component: 200  -  total flux cleaned = 0.00146024 Jy
! Total flux subtracted in 200 components = 0.00146024 Jy
! Clean residual min=-0.004608 max=0.003545 Jy/beam
! Clean residual mean=-0.000049 rms=0.000921 Jy/beam
! Combined flux in latest and established models = 1.10074 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 105 components and 1.10074 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.547515Jy  sigma=0.002622
! Fit after  self-cal, rms=0.547515Jy  sigma=0.002622
! 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.547515Jy  sigma=0.002622
! Fit after  self-cal, rms=0.548039Jy  sigma=0.002622
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.529 mas, bmaj=8.773 mas, bpa=-48.84 degrees
! Estimated noise=472.229 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00365598 Jy
! Component: 100  -  total flux cleaned = 0.00573037 Jy
! Component: 150  -  total flux cleaned = 0.00704942 Jy
! Component: 200  -  total flux cleaned = 0.00744044 Jy
! Total flux subtracted in 200 components = 0.00744044 Jy
! Clean residual min=-0.003377 max=0.005015 Jy/beam
! Clean residual mean=-0.000220 rms=0.001205 Jy/beam
! Combined flux in latest and established models = 1.10819 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 121 components and 1.10819 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.548040Jy  sigma=0.002622
! Fit after  self-cal, rms=0.548040Jy  sigma=0.002622
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.001169 Jy
! Component: 100  -  total flux cleaned = 0.00141927 Jy
! Component: 150  -  total flux cleaned = 0.00151421 Jy
! Component: 200  -  total flux cleaned = 0.00160253 Jy
! Total flux subtracted in 200 components = 0.00160253 Jy
! Clean residual min=-0.003395 max=0.004865 Jy/beam
! Clean residual mean=-0.000243 rms=0.001184 Jy/beam
! Combined flux in latest and established models = 1.10979 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 126 components and 1.10979 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.548040Jy  sigma=0.002622
! Fit after  self-cal, rms=0.548041Jy  sigma=0.002622
! 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.828 mas, bmaj=3.066 mas, bpa=64.63 degrees
! Estimated noise=329.071 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.828 x 3.066 at 64.63 degrees (North through East)
! Clean map  min=-0.0040892  max=0.86085 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.548041Jy  sigma=0.002622
! Fit after  self-cal, rms=2.184892Jy  sigma=0.002458
! Inverting map and beam 
! Estimated beam: bmin=2.823 mas, bmaj=3.061 mas, bpa=64.67 degrees
! Estimated noise=329.268 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00137052 Jy
! Component: 100  -  total flux cleaned = 0.00122801 Jy
! Component: 150  -  total flux cleaned = 0.00116266 Jy
! Component: 200  -  total flux cleaned = 0.00104741 Jy
! Total flux subtracted in 200 components = 0.00104741 Jy
! Clean residual min=-0.004219 max=0.003310 Jy/beam
! Clean residual mean=-0.000053 rms=0.000846 Jy/beam
! Combined flux in latest and established models = 1.11084 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 137 components and 1.11084 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.184884Jy  sigma=0.002457
! Fit after  self-cal, rms=2.184905Jy  sigma=0.002457
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000236762 Jy
! Component: 100  -  total flux cleaned = -0.000346383 Jy
! Component: 150  -  total flux cleaned = -0.000504615 Jy
! Component: 200  -  total flux cleaned = -0.000557291 Jy
! Total flux subtracted in 200 components = -0.000557291 Jy
! Clean residual min=-0.004198 max=0.003293 Jy/beam
! Clean residual mean=-0.000050 rms=0.000844 Jy/beam
! Combined flux in latest and established models = 1.11028 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 142 components and 1.11028 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.184900Jy  sigma=0.002457
! Fit after  self-cal, rms=2.184898Jy  sigma=0.002457
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.184898Jy  sigma=0.002457
! Fit after  self-cal, rms=3.478799Jy  sigma=0.002457
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.181 mas, bmaj=2.329 mas, bpa=24.55 degrees
! Estimated noise=728.547 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.6291 Jy
! Component: 100  -  total flux cleaned = 0.811247 Jy
! Component: 150  -  total flux cleaned = 0.896798 Jy
! Component: 200  -  total flux cleaned = 0.946634 Jy
! Total flux subtracted in 200 components = 0.946634 Jy
! Clean residual min=-0.008208 max=0.025963 Jy/beam
! Clean residual mean=0.000120 rms=0.002466 Jy/beam
! Combined flux in latest and established models = 0.946634 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 11 model components to the UV plane model.
! The established model now contains 11 components and 0.946634 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.819 mas, bmaj=3.061 mas, bpa=64.52 degrees
! Estimated noise=329.542 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.0482769 Jy
! Component: 100  -  total flux cleaned = 0.0745582 Jy
! Component: 150  -  total flux cleaned = 0.0912396 Jy
! Component: 200  -  total flux cleaned = 0.10334 Jy
! Total flux subtracted in 200 components = 0.10334 Jy
! Clean residual min=-0.003999 max=0.007129 Jy/beam
! Clean residual mean=0.000235 rms=0.001387 Jy/beam
! Combined flux in latest and established models = 1.04997 Jy
! Adding 43 model components to the UV plane model.
! The established model now contains 44 components and 1.04997 Jy
! Inverting map 
! Added new window around map position (-23, -2.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0095678 Jy
! Component: 100  -  total flux cleaned = 0.0174183 Jy
! Component: 150  -  total flux cleaned = 0.0240098 Jy
! Component: 200  -  total flux cleaned = 0.029643 Jy
! Total flux subtracted in 200 components = 0.029643 Jy
! Clean residual min=-0.004023 max=0.004751 Jy/beam
! Clean residual mean=0.000098 rms=0.001033 Jy/beam
! Combined flux in latest and established models = 1.07962 Jy
! Adding 43 model components to the UV plane model.
! The established model now contains 73 components and 1.07962 Jy
! Inverting map 
! Added new window around map position (-34, -5.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0051643 Jy
! Component: 100  -  total flux cleaned = 0.00943311 Jy
! Component: 150  -  total flux cleaned = 0.0131425 Jy
! Component: 200  -  total flux cleaned = 0.0163739 Jy
! Total flux subtracted in 200 components = 0.0163739 Jy
! Clean residual min=-0.003980 max=0.003570 Jy/beam
! Clean residual mean=0.000023 rms=0.000899 Jy/beam
! Combined flux in latest and established models = 1.09599 Jy
! Adding 45 model components to the UV plane model.
! The established model now contains 93 components and 1.09599 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.53 mas, bmaj=8.763 mas, bpa=-48.71 degrees
! Estimated noise=474.251 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00614618 Jy
! Component: 100  -  total flux cleaned = 0.0101623 Jy
! Component: 150  -  total flux cleaned = 0.0129463 Jy
! Component: 200  -  total flux cleaned = 0.0149626 Jy
! Total flux subtracted in 200 components = 0.0149626 Jy
! Clean residual min=-0.003385 max=0.003876 Jy/beam
! Clean residual mean=-0.000144 rms=0.001163 Jy/beam
! Combined flux in latest and established models = 1.11095 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.00149456 Jy
! Component: 100  -  total flux cleaned = 0.00261383 Jy
! Component: 150  -  total flux cleaned = 0.00345612 Jy
! Component: 200  -  total flux cleaned = 0.00409214 Jy
! Total flux subtracted in 200 components = 0.00409214 Jy
! Clean residual min=-0.003365 max=0.003488 Jy/beam
! Clean residual mean=-0.000207 rms=0.001105 Jy/beam
! Combined flux in latest and established models = 1.11505 Jy
! Adding 83 model components to the UV plane model.
! The established model now contains 166 components and 1.11505 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.819 mas, bmaj=3.061 mas, bpa=64.52 degrees
! Estimated noise=329.542 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00182245 Jy
! Component: 100  -  total flux cleaned = -0.0019587 Jy
! Component: 150  -  total flux cleaned = -0.00195848 Jy
! Component: 200  -  total flux cleaned = -0.00184081 Jy
! Total flux subtracted in 200 components = -0.00184081 Jy
! Clean residual min=-0.003915 max=0.003155 Jy/beam
! Clean residual mean=-0.000054 rms=0.000823 Jy/beam
! Combined flux in latest and established models = 1.11321 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 177 components and 1.11321 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=3.478756Jy  sigma=0.002457
! Fit after  self-cal, rms=3.478768Jy  sigma=0.002457
wmodel J2005+7752_S_1998_10_01_pus_map.mod
! Writing 177 model components to file: J2005+7752_S_1998_10_01_pus_map.mod
wobs J2005+7752_S_1998_10_01_pus_uvs.fits
! Writing UV FITS file: J2005+7752_S_1998_10_01_pus_uvs.fits
wwins J2005+7752_S_1998_10_01_pus_map.win
! wwins: Wrote 6 windows to J2005+7752_S_1998_10_01_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.000779143 Jy
! Component: 100  -  total flux cleaned = -0.000718263 Jy
! Component: 150  -  total flux cleaned = -0.000828308 Jy
! Component: 200  -  total flux cleaned = -0.00104051 Jy
! Component: 250  -  total flux cleaned = -0.00114355 Jy
! Component: 300  -  total flux cleaned = -0.00134535 Jy
! Component: 350  -  total flux cleaned = -0.0015429 Jy
! Component: 400  -  total flux cleaned = -0.00178533 Jy
! Component: 450  -  total flux cleaned = -0.00192876 Jy
! Component: 500  -  total flux cleaned = -0.00211721 Jy
! Component: 550  -  total flux cleaned = -0.00239528 Jy
! Component: 600  -  total flux cleaned = -0.00257821 Jy
! Component: 650  -  total flux cleaned = -0.00262339 Jy
! Component: 700  -  total flux cleaned = -0.00284743 Jy
! Component: 750  -  total flux cleaned = -0.00298029 Jy
! Component: 800  -  total flux cleaned = -0.00311216 Jy
! Component: 850  -  total flux cleaned = -0.00324271 Jy
! Component: 900  -  total flux cleaned = -0.00332888 Jy
! Component: 950  -  total flux cleaned = -0.00354349 Jy
! Component: 1000  -  total flux cleaned = -0.00371349 Jy
! Component: 1050  -  total flux cleaned = -0.003882 Jy
! Component: 1100  -  total flux cleaned = -0.00400737 Jy
! Component: 1150  -  total flux cleaned = -0.00421458 Jy
! Component: 1200  -  total flux cleaned = -0.00437884 Jy
! Component: 1250  -  total flux cleaned = -0.00446038 Jy
! Component: 1300  -  total flux cleaned = -0.00466336 Jy
! Component: 1350  -  total flux cleaned = -0.0048642 Jy
! Component: 1400  -  total flux cleaned = -0.00502425 Jy
! Component: 1450  -  total flux cleaned = -0.00530193 Jy
! Component: 1500  -  total flux cleaned = -0.00545977 Jy
! Component: 1550  -  total flux cleaned = -0.00553846 Jy
! Component: 1600  -  total flux cleaned = -0.00585063 Jy
! Component: 1650  -  total flux cleaned = -0.00600565 Jy
! Component: 1700  -  total flux cleaned = -0.00608259 Jy
! Component: 1750  -  total flux cleaned = -0.0062362 Jy
! Component: 1800  -  total flux cleaned = -0.00646489 Jy
! Component: 1850  -  total flux cleaned = -0.00661665 Jy
! Component: 1900  -  total flux cleaned = -0.0067675 Jy
! Component: 1950  -  total flux cleaned = -0.00695513 Jy
! Component: 2000  -  total flux cleaned = -0.00702962 Jy
! Total flux subtracted in 2048 components = -0.00714105 Jy
! Clean residual min=-0.001948 max=0.001995 Jy/beam
! Clean residual mean=-0.000032 rms=0.000698 Jy/beam
! Combined flux in latest and established models = 1.10606 Jy
keep
! Adding 163 model components to the UV plane model.
! The established model now contains 340 components and 1.10606 Jy
![Exited script file: muppet]
wmap "J2005+7752_S_1998_10_01_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.819 x 3.061 at 64.52 degrees (North through East)
! Clean map  min=-0.0034061  max=0.86136 Jy/beam
! Writing clean map to FITS file: J2005+7752_S_1998_10_01_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.861363 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000697539 
device "J2005+7752_S_1998_10_01_pus\_map.eps/VPS"
! Attempting to open device: 'J2005+7752_S_1998_10_01_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.242942 0.242942 0.485885 0.97177 1.94354 3.88708 7.77416 15.5483 31.0966 62.1933
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.002 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.861 
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.819 x 3.061 at 64.52 degrees (North through East)
! Clean map  min=-0.0034061  max=0.86136 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2005+7752_S_1998_10_01_pus\_map.gif/vgif"
! Attempting to open device: 'J2005+7752_S_1998_10_01_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2005+7752_S_1998_10_01_pus_uvs.log closed on Thu Feb  7 17:30:31 2008