! Started logfile: 0812+020_X.log on Tue Mar 27 20:50:57 2007
observe 0812+020_X.edt
! Reading UV FITS file: 0812+020_X.edt
! AN table 1: 109 integrations on 105 of 105 possible baselines.
! AN table 2: 122 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.15638 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0812+020
! 
! 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  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1241 lines of history.
! 
! Reading 15172 visibilities.
![@gonzo7-0.1 0812+020_X]
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.1
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.100x0.100 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 1446 telescope corrections were flagged in sub-array 1.
!  A total of 1174 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 1446 telescope corrections were flagged in sub-array 1.
!  A total of 1174 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 1446 telescope corrections were flagged in sub-array 1.
!  A total of 1174 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 1446 telescope corrections were flagged in sub-array 1.
!  A total of 1174 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=0.785941Jy  sigma=0.011144
! Fit after  self-cal, rms=0.786617Jy  sigma=0.011184
! 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=0.5346 mas, bmaj=2.345 mas, bpa=-11.8 degrees
! Estimated noise=795.954 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.174249 Jy
! Total flux subtracted in 50 components = 0.174249 Jy
! Clean residual min=-0.013882 max=0.048616 Jy/beam
! Clean residual mean=0.000137 rms=0.004824 Jy/beam
! Combined flux in latest and established models = 0.174249 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.174249 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.113356Jy  sigma=0.001403
! Fit after  self-cal, rms=0.113356Jy  sigma=0.001403
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0381181 Jy
! Total flux subtracted in 50 components = 0.0381181 Jy
! Clean residual min=-0.011393 max=0.017225 Jy/beam
! Clean residual mean=0.000012 rms=0.002657 Jy/beam
! Combined flux in latest and established models = 0.212367 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.212367 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.103874Jy  sigma=0.001199
! Fit after  self-cal, rms=0.103867Jy  sigma=0.001199
! 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=0.6378 mas, bmaj=2.867 mas, bpa=-11.57 degrees
! Estimated noise=435.501 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.0132077 Jy
! Component: 100  -  total flux cleaned = 0.019556 Jy
! Total flux subtracted in 100 components = 0.019556 Jy
! Clean residual min=-0.007432 max=0.009029 Jy/beam
! Clean residual mean=-0.000199 rms=0.002017 Jy/beam
! Combined flux in latest and established models = 0.231923 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 19 components and 0.231923 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.102617Jy  sigma=0.001171
! Fit after  self-cal, rms=0.102603Jy  sigma=0.001171
! 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 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00*    HN        1.00*    KB        0.89     
!   KP        1.00*    LA        1.00*    MK        0.88     NL        1.00*    
!   NY        1.00*    OV        1.03     PT        1.00*    SV        1.00*    
!   WF        1.00*    WZ        1.00*    TC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.10     HN        1.05     KB        1.00*    
!   KP        1.07     LA        0.91     MK        1.00*    NL        1.05     
!   NY        1.13     OV        1.06     PT        0.90     SV        1.00*    
!   WF        1.07     WZ        0.97     TC        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.00*    HN        1.00*    KB        0.91     
!   KP        1.00*    LA        1.00*    MK        0.82     NL        1.00*    
!   NY        1.00*    OV        1.00     PT        1.00*    SV        1.00*    
!   WF        1.00*    WZ        1.00*    TC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.11     HN        1.04     KB        1.00*    
!   KP        1.00     LA        0.89     MK        1.00*    NL        1.05     
!   NY        1.14     OV        1.00     PT        0.89     SV        1.00*    
!   WF        1.06     WZ        1.00     TC        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.00*    HN        1.00*    KB        0.98     
!   KP        1.00*    LA        1.00*    MK        0.82     NL        1.00*    
!   NY        1.00*    OV        1.03     PT        1.00*    SV        1.00*    
!   WF        1.00*    WZ        1.00*    TC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.09     HN        1.02     KB        1.00*    
!   KP        1.00     LA        0.89     MK        1.00*    NL        1.02     
!   NY        1.14     OV        1.03     PT        0.90     SV        1.00*    
!   WF        1.06     WZ        0.98     TC        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.83     FD        1.00*    HN        1.00*    KB        1.09     
!   KP        1.00*    LA        1.00*    MK        0.81     NL        1.00*    
!   NY        1.00*    OV        1.01     PT        1.00*    SV        1.00*    
!   WF        1.00*    WZ        1.00*    TC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.93     FD        1.07     HN        1.02     KB        1.00*    
!   KP        0.97     LA        0.88     MK        1.00*    NL        1.05     
!   NY        1.10     OV        1.06     PT        0.90     SV        1.00*    
!   WF        1.07     WZ        0.97     TC        1.00*    
! 
! 
! Fit before self-cal, rms=0.102603Jy  sigma=0.001171
! Fit after  self-cal, rms=0.105330Jy  sigma=0.001119
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.6399 mas, bmaj=2.846 mas, bpa=-11.18 degrees
! Estimated noise=432.033 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.000536866 Jy
! Component: 100  -  total flux cleaned = 1.5719e-05 Jy
! Total flux subtracted in 100 components = 1.5719e-05 Jy
! Clean residual min=-0.003005 max=0.003408 Jy/beam
! Clean residual mean=0.000052 rms=0.000703 Jy/beam
! Combined flux in latest and established models = 0.231939 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 37 components and 0.231939 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.105272Jy  sigma=0.001118
! Fit after  self-cal, rms=0.105282Jy  sigma=0.001118
! 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 = -5.96591e-05 Jy
! Component: 100  -  total flux cleaned = -0.000413212 Jy
! Total flux subtracted in 100 components = -0.000413212 Jy
! Clean residual min=-0.002896 max=0.003216 Jy/beam
! Clean residual mean=0.000056 rms=0.000673 Jy/beam
! Combined flux in latest and established models = 0.231526 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 42 components and 0.231526 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.105246Jy  sigma=0.001117
! Fit after  self-cal, rms=0.105389Jy  sigma=0.001103
! Inverting map and beam 
! Estimated beam: bmin=0.6391 mas, bmaj=2.845 mas, bpa=-11.16 degrees
! Estimated noise=432.727 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)
! Added new window around map position (0.2, 7).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0029645 Jy
! Component: 100  -  total flux cleaned = 0.00397781 Jy
! Total flux subtracted in 100 components = 0.00397781 Jy
! Clean residual min=-0.002517 max=0.002484 Jy/beam
! Clean residual mean=0.000040 rms=0.000576 Jy/beam
! Combined flux in latest and established models = 0.235504 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 50 components and 0.235504 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.105311Jy  sigma=0.001102
! Fit after  self-cal, rms=0.105314Jy  sigma=0.001102
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0812+020_X
! Writing UV FITS file: 0812+020_X.uvf
! Writing 50 model components to file: 0812+020_X.mod
! wwins: Wrote 2 windows to 0812+020_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6391 x 2.845 at -11.16 degrees (North through East)
! Clean map  min=-0.0023581  max=0.22028 Jy/beam
! Writing clean map to FITS file: 0812+020_X.fits
! Writing difmap environment to: 0812+020_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 0812+020_X]
device 0812+020_Xuv.ps/vps,1,2
! Attempting to open device: '0812+020_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0812+020_Xim.ps/vps
! Attempting to open device: '0812+020_Xim.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=0.6391 mas, bmaj=2.845 mas, bpa=-11.16 degrees
! Estimated noise=432.727 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6391 x 2.845 at -11.16 degrees (North through East)
! Clean map  min=-0.0023581  max=0.22028 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.1]
quit
! Quitting program
! Log file 0812+020_X.log closed on Tue Mar 27 20:51:17 2007