! Started logfile: 1357+769_S.log on Thu Aug 14 09:12:11 2008
observe 1357+769_S.edt
! Reading UV FITS file: 1357+769_S.edt
! AN table 1: 12 integrations on 105 of 105 possible baselines.
! AN table 2: 16 integrations on 105 of 105 possible baselines.
! AN table 3: 20 integrations on 105 of 105 possible baselines.
! AN table 4: 59 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.280018 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1357+769
! 
! 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.23697e+09        8e+06          1        8e+06
!  02        2  2.26697e+09        8e+06          1        8e+06
!  03        3  2.35697e+09        8e+06          1        8e+06
!  04        4  2.37697e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 947 lines of history.
! 
! Reading 12584 visibilities.
![@gonzo7-0.4 1357+769_S]
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.4
integer clean_niter
clean_niter = 50
float clean_gain
clean_gain = 0.03
float dynam
dynam = 7.0
float win_mult
win_mult = 1.8
float solint
solint = 3.6/6.0
logical doflt
doflt = true
logical doamp
float new_peak
float flux_cutoff
mapsize field_size,field_cell
! Map grid = 1024x1024 pixels with 0.400x0.400 milli-arcsec cellsize.
select
! 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
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 72 telescope corrections were flagged in sub-array 1.
!  A total of 117 telescope corrections were flagged in sub-array 2.
!  A total of 171 telescope corrections were flagged in sub-array 3.
!  A total of 490 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 72 telescope corrections were flagged in sub-array 1.
!  A total of 117 telescope corrections were flagged in sub-array 2.
!  A total of 171 telescope corrections were flagged in sub-array 3.
!  A total of 490 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 72 telescope corrections were flagged in sub-array 1.
!  A total of 119 telescope corrections were flagged in sub-array 2.
!  A total of 171 telescope corrections were flagged in sub-array 3.
!  A total of 490 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 72 telescope corrections were flagged in sub-array 1.
!  A total of 119 telescope corrections were flagged in sub-array 2.
!  A total of 171 telescope corrections were flagged in sub-array 3.
!  A total of 493 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.368252Jy  sigma=0.003636
! Fit after  self-cal, rms=0.365961Jy  sigma=0.003622
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvweight 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.
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.84 mas, bmaj=2.114 mas, bpa=-54.75 degrees
! Estimated noise=970.605 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.883021 Jy
! Total flux subtracted in 50 components = 0.883021 Jy
! Clean residual min=-0.028591 max=0.246354 Jy/beam
! Clean residual mean=-0.000074 rms=0.007694 Jy/beam
! Combined flux in latest and established models = 0.883021 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 0.883021 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.441795Jy  sigma=0.004465
! Fit after  self-cal, rms=0.441795Jy  sigma=0.004465
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.194815 Jy
! Total flux subtracted in 50 components = 0.194815 Jy
! Clean residual min=-0.021932 max=0.065290 Jy/beam
! Clean residual mean=-0.000064 rms=0.005392 Jy/beam
! Combined flux in latest and established models = 1.07784 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 1.07784 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.329090Jy  sigma=0.003193
! Fit after  self-cal, rms=0.329078Jy  sigma=0.003192
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0718757 Jy
! Total flux subtracted in 50 components = 0.0718757 Jy
! Clean residual min=-0.021254 max=0.036720 Jy/beam
! Clean residual mean=-0.000060 rms=0.005039 Jy/beam
! Combined flux in latest and established models = 1.14971 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 15 components and 1.14971 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.304903Jy  sigma=0.002900
! Fit after  self-cal, rms=0.304873Jy  sigma=0.002900
! Inverting map 
! Added new window around map position (-1.2, -2.4).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0469754 Jy
! Total flux subtracted in 50 components = 0.0469754 Jy
! Clean residual min=-0.020715 max=0.032911 Jy/beam
! Clean residual mean=-0.000057 rms=0.004878 Jy/beam
! Combined flux in latest and established models = 1.19669 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 23 components and 1.19669 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.293400Jy  sigma=0.002761
! Fit after  self-cal, rms=0.293346Jy  sigma=0.002760
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Uniform Weighting CLEAN ***"
! *** Finished Uniform Weighting CLEAN *** 
print "****************************************"
! **************************************** 
uvweight 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
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.375 mas, bmaj=2.673 mas, bpa=-46.4 degrees
! Estimated noise=641.158 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0780783 Jy
! Component: 100  -  total flux cleaned = 0.122154 Jy
! Total flux subtracted in 100 components = 0.122154 Jy
! Clean residual min=-0.026543 max=0.035684 Jy/beam
! Clean residual mean=-0.000140 rms=0.005954 Jy/beam
! Combined flux in latest and established models = 1.31884 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 34 model components to the UV plane model.
! The established model now contains 43 components and 1.31884 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.274847Jy  sigma=0.002545
! Fit after  self-cal, rms=0.274794Jy  sigma=0.002545
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Natural Weighting CLEAN ***"
! *** Finished Natural Weighting CLEAN *** 
print "****************************************"
! **************************************** 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.98     HN        0.96     KB        0.89     
!   KK        0.99     KP        1.00     LA        1.00*    MK        0.94     
!   NL        0.99     NY        1.06     OV        1.01     PT        1.00     
!   SC        0.96     WZ        0.81     ZC        0.91     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        0.80     HN        0.88     KB        0.83     
!   KK        1.14     KP        0.97     LA        1.00*    MK        1.12     
!   NL        0.96     NY        1.34     OV        0.80     PT        0.93     
!   SC        1.07     WZ        0.94     ZC        0.91     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.92     HN        0.96     KB        0.86     
!   KK        1.12     KP        1.06     LA        1.00*    MK        1.00*    
!   NL        1.10     NY        1.09     OV        1.07     PT        1.06     
!   SC        1.04     WZ        0.90     ZC        0.98     
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        0.78     HN        0.86     KB        0.86     
!   KK        1.01     KP        1.00     LA        1.00*    MK        1.10     
!   NL        1.13     NY        1.32     OV        0.99     PT        1.02     
!   SC        1.05     WZ        0.98     ZC        1.01     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.00     HN        0.98     KB        0.88     
!   KK        0.97     KP        1.02     LA        1.00*    MK        0.98     
!   NL        0.98     NY        1.09     OV        1.02     PT        1.03     
!   SC        0.97     WZ        0.91     ZC        0.81     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.07     FD        0.83     HN        0.86     KB        0.80     
!   KK        0.94     KP        0.88     LA        1.00*    MK        0.95     
!   NL        0.95     NY        1.32     OV        0.95     PT        1.03     
!   SC        1.06     WZ        0.84     ZC        0.96     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        0.95     HN        0.99     KB        0.91     
!   KK        1.13     KP        1.07     LA        1.00*    MK        1.00*    
!   NL        1.12     NY        1.10     OV        1.08     PT        1.14     
!   SC        0.95     WZ        1.04     ZC        0.96     
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.80     HN        0.92     KB        0.92     
!   KK        1.02     KP        0.99     LA        1.00*    MK        1.15     
!   NL        1.14     NY        1.32     OV        1.02     PT        1.11     
!   SC        1.03     WZ        0.98     ZC        1.02     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.99     HN        0.99     KB        0.99     
!   KK        0.98     KP        0.98     LA        1.00*    MK        0.94     
!   NL        0.99     NY        1.14     OV        1.02     PT        1.00     
!   SC        1.12     WZ        0.86     ZC        0.87     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.75     HN        0.66     KB        1.17     
!   KK        1.05     KP        0.80     LA        1.00*    MK        1.00     
!   NL        0.93     NY        1.37     OV        0.93     PT        1.03     
!   SC        1.22     WZ        0.97     ZC        0.94     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        0.89     HN        0.91     KB        1.12     
!   KK        1.16     KP        0.97     LA        1.00*    MK        1.00*    
!   NL        1.11     NY        1.15     OV        1.07     PT        1.08     
!   SC        1.19     WZ        0.91     ZC        0.87     
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.94     FD        0.73     HN        0.86     KB        1.12     
!   KK        1.06     KP        0.86     LA        1.00*    MK        1.03     
!   NL        1.12     NY        1.39     OV        1.01     PT        1.07     
!   SC        1.50     WZ        0.97     ZC        1.12     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.99     HN        0.97     KB        1.85     
!   KK        1.02     KP        0.98     LA        1.00*    MK        0.99     
!   NL        1.01     NY        1.00     OV        1.03     PT        0.99     
!   SC        0.98     WZ        0.84     ZC        0.91     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.92     FD        0.71     HN        0.81     KB        1.89     
!   KK        1.04     KP        0.82     LA        1.00*    MK        0.98     
!   NL        0.97     NY        1.42     OV        0.89     PT        0.99     
!   SC        1.03     WZ        0.90     ZC        0.97     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        0.87     HN        0.98     KB        1.81     
!   KK        1.14     KP        1.00     LA        1.00*    MK        1.00*    
!   NL        1.10     NY        1.17     OV        1.02     PT        1.07     
!   SC        0.95     WZ        0.89     ZC        0.78     
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.85     FD        0.70     HN        0.88     KB        1.88     
!   KK        1.09     KP        0.89     LA        1.00*    MK        0.96     
!   NL        1.07     NY        1.42     OV        0.97     PT        1.02     
!   SC        1.04     WZ        0.93     ZC        1.07     
! 
! 
! Fit before self-cal, rms=0.274794Jy  sigma=0.002545
! Fit after  self-cal, rms=0.159660Jy  sigma=0.001316
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.41 mas, bmaj=2.694 mas, bpa=-46.9 degrees
! Estimated noise=632.326 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0147685 Jy
! Component: 100  -  total flux cleaned = -0.0208167 Jy
! Total flux subtracted in 100 components = -0.0208167 Jy
! Clean residual min=-0.008232 max=0.008325 Jy/beam
! Clean residual mean=-0.000081 rms=0.001946 Jy/beam
! Combined flux in latest and established models = 1.29802 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 48 components and 1.29802 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.158298Jy  sigma=0.001304
! Fit after  self-cal, rms=0.158338Jy  sigma=0.001304
! Inverting map 
dynam = dynam - 1.0
doamp = true
solint = solint * (6.0/3.6)
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 doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000704354 Jy
! Component: 100  -  total flux cleaned = -0.000889059 Jy
! Total flux subtracted in 100 components = -0.000889059 Jy
! Clean residual min=-0.008111 max=0.008099 Jy/beam
! Clean residual mean=-0.000081 rms=0.001935 Jy/beam
! Combined flux in latest and established models = 1.29714 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 50 components and 1.29714 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.158174Jy  sigma=0.001301
! Fit after  self-cal, rms=0.148184Jy  sigma=0.001148
! Inverting map and beam 
! Estimated beam: bmin=2.411 mas, bmaj=2.7 mas, bpa=-47.21 degrees
! Estimated noise=630.822 mJy/beam.
doamp = false
solint = solint / (6.0/3.6)
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 doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00456891 Jy
! Component: 100  -  total flux cleaned = -0.0056233 Jy
! Total flux subtracted in 100 components = -0.0056233 Jy
! Clean residual min=-0.003125 max=0.003157 Jy/beam
! Clean residual mean=0.000001 rms=0.000729 Jy/beam
! Combined flux in latest and established models = 1.29151 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 55 components and 1.29151 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.148053Jy  sigma=0.001147
! Fit after  self-cal, rms=0.148062Jy  sigma=0.001147
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1357+769_S
! Writing UV FITS file: 1357+769_S.uvf
! Writing 55 model components to file: 1357+769_S.mod
! wwins: Wrote 2 windows to 1357+769_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.411 x 2.7 at -47.21 degrees (North through East)
! Clean map  min=-0.0029185  max=1.1692 Jy/beam
! Writing clean map to FITS file: 1357+769_S.fits
! Writing difmap environment to: 1357+769_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1357+769_S]
device 1357+769_Suv.ps/vps,1,2
! Attempting to open device: '1357+769_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1357+769_Sim.ps/vps
! Attempting to open device: '1357+769_Sim.ps/vps'
uvweight 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.
loglevs -1,2048,2
! The new contour levels are:
!  -1 1 2 4 8 16 32 64 128 256 512 1024 2048
cmul = imstat(rms)*3
! Inverting map and beam 
! Estimated beam: bmin=2.411 mas, bmaj=2.7 mas, bpa=-47.21 degrees
! Estimated noise=630.822 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.411 x 2.7 at -47.21 degrees (North through East)
! Clean map  min=-0.0029185  max=1.1692 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.4]
quit
! Quitting program
! Log file 1357+769_S.log closed on Thu Aug 14 09:12:31 2008