! Started logfile: 0829+046_S.log on Tue Mar 27 19:36:10 2007
observe 0829+046_S.edt
! Reading UV FITS file: 0829+046_S.edt
! AN table 1: 62 integrations on 105 of 105 possible baselines.
! AN table 2: 65 integrations on 105 of 105 possible baselines.
! AN table 3: 74 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.325468 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0829+046
! 
! 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 1268 lines of history.
! 
! Reading 27476 visibilities.
![@gonzo7-0.4 0829+046_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 750 telescope corrections were flagged in sub-array 1.
!  A total of 339 telescope corrections were flagged in sub-array 2.
!  A total of 402 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 750 telescope corrections were flagged in sub-array 1.
!  A total of 339 telescope corrections were flagged in sub-array 2.
!  A total of 340 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 750 telescope corrections were flagged in sub-array 1.
!  A total of 339 telescope corrections were flagged in sub-array 2.
!  A total of 402 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 750 telescope corrections were flagged in sub-array 1.
!  A total of 339 telescope corrections were flagged in sub-array 2.
!  A total of 402 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.564596Jy  sigma=0.006144
! Fit after  self-cal, rms=0.564394Jy  sigma=0.006144
! 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=2.311 mas, bmaj=7.313 mas, bpa=-11.44 degrees
! Estimated noise=909.156 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.343606 Jy
! Total flux subtracted in 50 components = 0.343606 Jy
! Clean residual min=-0.034860 max=0.118547 Jy/beam
! Clean residual mean=0.000175 rms=0.012833 Jy/beam
! Combined flux in latest and established models = 0.343606 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.343606 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.265604Jy  sigma=0.003051
! Fit after  self-cal, rms=0.265355Jy  sigma=0.003051
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.121596 Jy
! Total flux subtracted in 50 components = 0.121596 Jy
! Clean residual min=-0.028558 max=0.054380 Jy/beam
! Clean residual mean=0.000120 rms=0.008263 Jy/beam
! Combined flux in latest and established models = 0.465201 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 18 components and 0.465201 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.205005Jy  sigma=0.002236
! Fit after  self-cal, rms=0.204073Jy  sigma=0.002231
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0622303 Jy
! Total flux subtracted in 50 components = 0.0622303 Jy
! Clean residual min=-0.024704 max=0.048914 Jy/beam
! Clean residual mean=0.000092 rms=0.006552 Jy/beam
! Combined flux in latest and established models = 0.527432 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 26 components and 0.527432 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.182926Jy  sigma=0.001940
! Fit after  self-cal, rms=0.182684Jy  sigma=0.001938
! Inverting map 
! Added new window around map position (5.2, 4).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0484033 Jy
! Total flux subtracted in 50 components = 0.0484033 Jy
! Clean residual min=-0.021086 max=0.028076 Jy/beam
! Clean residual mean=0.000067 rms=0.005357 Jy/beam
! Combined flux in latest and established models = 0.575835 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 36 components and 0.575835 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.168447Jy  sigma=0.001737
! Fit after  self-cal, rms=0.167710Jy  sigma=0.001729
! 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=3.12 mas, bmaj=10.3 mas, bpa=-12.57 degrees
! Estimated noise=403.314 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.0520286 Jy
! Component: 100  -  total flux cleaned = 0.0822961 Jy
! Total flux subtracted in 100 components = 0.0822961 Jy
! Clean residual min=-0.021227 max=0.027813 Jy/beam
! Clean residual mean=0.000200 rms=0.005826 Jy/beam
! Combined flux in latest and established models = 0.658131 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 27 model components to the UV plane model.
! The established model now contains 54 components and 0.658131 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.153061Jy  sigma=0.001525
! Fit after  self-cal, rms=0.152485Jy  sigma=0.001517
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Natural Weighting CLEAN ***"
! *** Finished Natural Weighting CLEAN *** 
print "****************************************"
! **************************************** 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 180 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    HN        0.00*    KB        0.00*    
!   KP        0.00*    LA        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SV        0.00*    
!   WF        0.00*    WZ        0.00*    TC        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        0.82     HN        1.03     KB        1.00*    
!   KP        1.30     LA        1.02     MK        1.00*    NL        1.08     
!   NY        1.00*    OV        1.05     PT        1.01     SV        1.00*    
!   WF        1.01     WZ        1.18     TC        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.02     HN        1.06     KB        1.00*    
!   KP        0.68     LA        0.97     MK        0.97     NL        1.08     
!   NY        1.00*    OV        1.02     PT        0.92     SV        1.00*    
!   WF        1.02     WZ        1.00*    TC        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 180 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    HN        0.00*    KB        0.00*    
!   KP        0.00*    LA        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SV        0.00*    
!   WF        0.00*    WZ        0.00*    TC        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        0.83     HN        1.07     KB        1.00*    
!   KP        1.11     LA        1.01     MK        1.00*    NL        1.08     
!   NY        1.00*    OV        1.03     PT        1.01     SV        1.00*    
!   WF        0.98     WZ        1.11     TC        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.99     HN        1.05     KB        1.00*    
!   KP        0.85     LA        0.92     MK        0.89     NL        1.03     
!   NY        1.00*    OV        0.96     PT        0.90     SV        1.00*    
!   WF        1.03     WZ        1.00*    TC        1.23     
! 
! 
! Correcting IF 3.
!  A total of 180 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    HN        0.00*    KB        0.00*    
!   KP        0.00*    LA        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SV        0.00*    
!   WF        0.00*    WZ        0.00*    TC        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        0.83     HN        1.02     KB        1.00*    
!   KP        1.12     LA        1.02     MK        1.00*    NL        1.08     
!   NY        1.00*    OV        1.04     PT        1.03     SV        1.00*    
!   WF        1.01     WZ        1.14     TC        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.00     HN        1.06     KB        1.00*    
!   KP        0.79     LA        0.77     MK        0.90     NL        1.04     
!   NY        1.00*    OV        1.01     PT        0.95     SV        1.00*    
!   WF        1.03     WZ        1.00*    TC        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 180 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    HN        0.00*    KB        0.00*    
!   KP        0.00*    LA        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SV        0.00*    
!   WF        0.00*    WZ        0.00*    TC        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.85     HN        0.96     KB        1.00*    
!   KP        1.10     LA        1.01     MK        1.00*    NL        1.06     
!   NY        1.00*    OV        1.05     PT        1.03     SV        1.00*    
!   WF        1.05     WZ        1.10     TC        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        1.00     HN        1.09     KB        1.00*    
!   KP        0.82     LA        0.78     MK        0.95     NL        1.02     
!   NY        1.00*    OV        0.99     PT        0.93     SV        1.00*    
!   WF        1.01     WZ        1.00*    TC        1.00*    
! 
! 
! Fit before self-cal, rms=0.152485Jy  sigma=0.001517
! Fit after  self-cal, rms=0.129284Jy  sigma=0.001174
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.16 mas, bmaj=10.54 mas, bpa=-12.9 degrees
! Estimated noise=397.458 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 (12.4, 5.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0154728 Jy
! Component: 100  -  total flux cleaned = 0.0199931 Jy
! Total flux subtracted in 100 components = 0.0199931 Jy
! Clean residual min=-0.006672 max=0.008273 Jy/beam
! Clean residual mean=0.000426 rms=0.001428 Jy/beam
! Combined flux in latest and established models = 0.678124 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 67 components and 0.678124 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.127563Jy  sigma=0.001149
! Fit after  self-cal, rms=0.127416Jy  sigma=0.001146
! 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)
! Added new window around map position (19.6, 8.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0072641 Jy
! Component: 100  -  total flux cleaned = 0.00871087 Jy
! Total flux subtracted in 100 components = 0.00871087 Jy
! Clean residual min=-0.007214 max=0.005597 Jy/beam
! Clean residual mean=0.000363 rms=0.001227 Jy/beam
! Combined flux in latest and established models = 0.686835 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 81 components and 0.686835 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.126889Jy  sigma=0.001139
! Fit after  self-cal, rms=0.126337Jy  sigma=0.001126
! Inverting map and beam 
! Estimated beam: bmin=3.168 mas, bmaj=10.54 mas, bpa=-12.89 degrees
! Estimated noise=397.586 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.00407714 Jy
! Component: 100  -  total flux cleaned = 0.00540328 Jy
! Total flux subtracted in 100 components = 0.00540328 Jy
! Clean residual min=-0.006080 max=0.004754 Jy/beam
! Clean residual mean=0.000237 rms=0.001041 Jy/beam
! Combined flux in latest and established models = 0.692238 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 97 components and 0.692239 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.126039Jy  sigma=0.001122
! Fit after  self-cal, rms=0.126011Jy  sigma=0.001122
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0829+046_S
! Writing UV FITS file: 0829+046_S.uvf
! Writing 97 model components to file: 0829+046_S.mod
! wwins: Wrote 4 windows to 0829+046_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.168 x 10.54 at -12.89 degrees (North through East)
! Clean map  min=-0.0053889  max=0.44598 Jy/beam
! Writing clean map to FITS file: 0829+046_S.fits
! Writing difmap environment to: 0829+046_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 0829+046_S]
device 0829+046_Suv.ps/vps,1,2
! Attempting to open device: '0829+046_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0829+046_Sim.ps/vps
! Attempting to open device: '0829+046_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=3.168 mas, bmaj=10.54 mas, bpa=-12.89 degrees
! Estimated noise=397.586 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.168 x 10.54 at -12.89 degrees (North through East)
! Clean map  min=-0.0053889  max=0.44598 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.4]
quit
! Quitting program
! Log file 0829+046_S.log closed on Tue Mar 27 19:36:34 2007