! Started logfile: 0642+449_S.log on Wed Oct 31 11:11:05 2007
observe 0642+449_S.edt
! Reading UV FITS file: 0642+449_S.edt
! AN table 1: 90 integrations on 105 of 105 possible baselines.
! AN table 2: 29 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.105162 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0642+449
! 
! 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 970 lines of history.
! 
! Reading 5256 visibilities.
![@gonzo7-0.4 0642+449_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 1050 telescope corrections were flagged in sub-array 1.
!  A total of 377 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 1050 telescope corrections were flagged in sub-array 1.
!  A total of 377 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 1050 telescope corrections were flagged in sub-array 1.
!  A total of 377 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 1053 telescope corrections were flagged in sub-array 1.
!  A total of 377 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=0.708110Jy  sigma=0.006346
! Fit after  self-cal, rms=0.652189Jy  sigma=0.006067
! 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.209 mas, bmaj=3.059 mas, bpa=58.77 degrees
! Estimated noise=1838.1 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 = 1.09086 Jy
! Total flux subtracted in 50 components = 1.09086 Jy
! Clean residual min=-0.077252 max=0.304259 Jy/beam
! Clean residual mean=-0.000292 rms=0.022218 Jy/beam
! Combined flux in latest and established models = 1.09086 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 1.09086 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.595180Jy  sigma=0.005478
! Fit after  self-cal, rms=0.595180Jy  sigma=0.005478
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.259612 Jy
! Total flux subtracted in 50 components = 0.259612 Jy
! Clean residual min=-0.073469 max=0.093033 Jy/beam
! Clean residual mean=-0.000459 rms=0.016935 Jy/beam
! Combined flux in latest and established models = 1.35047 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 1.35047 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.488998Jy  sigma=0.004402
! Fit after  self-cal, rms=0.488996Jy  sigma=0.004402
! 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.147 mas, bmaj=4.728 mas, bpa=49.7 degrees
! Estimated noise=1120.68 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.101709 Jy
! Component: 100  -  total flux cleaned = 0.135639 Jy
! Total flux subtracted in 100 components = 0.135639 Jy
! Clean residual min=-0.068295 max=0.099357 Jy/beam
! Clean residual mean=-0.001673 rms=0.023549 Jy/beam
! Combined flux in latest and established models = 1.48611 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 16 components and 1.48611 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.468399Jy  sigma=0.004295
! Fit after  self-cal, rms=0.468373Jy  sigma=0.004295
! 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 45 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.92     HH        1.17     KB        1.01     KP        1.97     
!   LA        0.98     MK        1.02     NL        0.88     NY        1.15     
!   OV        0.94     PT        0.96     SC        1.15     TC        1.15     
!   WF        0.99     WZ        0.81     BR        0.91     
! 
!  A total of 21 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.93     HH        1.00*    KB        1.00*    KP        2.29     
!   LA        0.93     MK        0.86     NL        1.06     NY        1.00*    
!   OV        0.88     PT        1.16     SC        1.00*    TC        1.00*    
!   WF        1.28     WZ        1.00*    BR        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 45 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.92     HH        1.23     KB        1.10     KP        1.51     
!   LA        0.98     MK        1.07     NL        0.87     NY        1.11     
!   OV        0.93     PT        0.97     SC        0.88     TC        1.22     
!   WF        1.03     WZ        0.73     BR        0.91     
! 
!  A total of 21 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.91     HH        1.00*    KB        1.00*    KP        1.73     
!   LA        0.92     MK        0.84     NL        1.05     NY        1.00*    
!   OV        0.88     PT        1.02     SC        1.00*    TC        1.00*    
!   WF        1.24     WZ        1.00*    BR        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 45 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.90     HH        1.15     KB        1.28     KP        1.79     
!   LA        0.96     MK        1.07     NL        0.88     NY        1.13     
!   OV        0.93     PT        0.96     SC        0.94     TC        1.21     
!   WF        1.06     WZ        0.67     BR        0.83     
! 
!  A total of 21 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.89     HH        1.00*    KB        1.00*    KP        2.05     
!   LA        0.90     MK        0.82     NL        1.02     NY        1.00*    
!   OV        0.87     PT        1.02     SC        1.00*    TC        1.00*    
!   WF        1.31     WZ        1.00*    BR        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 42 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.90     HH        1.25     KB        2.10     KP        1.62     
!   LA        0.93     MK        1.09     NL        0.88     NY        1.18     
!   OV        0.94     PT        0.96     SC        0.91     TC        1.02     
!   WF        0.97     WZ        0.68     BR        0.75     
! 
!  A total of 21 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.88     HH        1.00*    KB        1.00*    KP        1.84     
!   LA        0.90     MK        0.80     NL        0.98     NY        1.00*    
!   OV        0.90     PT        1.01     SC        1.00*    TC        1.00*    
!   WF        1.38     WZ        1.00*    BR        1.00*    
! 
! 
! Fit before self-cal, rms=0.468373Jy  sigma=0.004295
! Fit after  self-cal, rms=0.342603Jy  sigma=0.002180
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.308 mas, bmaj=4.96 mas, bpa=48.11 degrees
! Estimated noise=1138.85 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.0143596 Jy
! Component: 100  -  total flux cleaned = 0.0160104 Jy
! Total flux subtracted in 100 components = 0.0160104 Jy
! Clean residual min=-0.032770 max=0.047084 Jy/beam
! Clean residual mean=-0.000033 rms=0.009344 Jy/beam
! Combined flux in latest and established models = 1.50212 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 23 components and 1.50212 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.341679Jy  sigma=0.002182
! Fit after  self-cal, rms=0.341785Jy  sigma=0.002181
! 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 (80, 80.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0427588 Jy
! Component: 100  -  total flux cleaned = 0.0653467 Jy
! Total flux subtracted in 100 components = 0.0653467 Jy
! Clean residual min=-0.030692 max=0.045945 Jy/beam
! Clean residual mean=-0.000199 rms=0.008836 Jy/beam
! Combined flux in latest and established models = 1.56747 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 26 model components to the UV plane model.
! The established model now contains 49 components and 1.56747 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.336858Jy  sigma=0.002113
! Fit after  self-cal, rms=0.289764Jy  sigma=0.001203
! Inverting map and beam 
! Estimated beam: bmin=3.319 mas, bmaj=4.942 mas, bpa=47.63 degrees
! Estimated noise=1143.59 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.0175159 Jy
! Component: 100  -  total flux cleaned = -0.0222185 Jy
! Total flux subtracted in 100 components = -0.0222185 Jy
! Clean residual min=-0.008261 max=0.011456 Jy/beam
! Clean residual mean=-0.000130 rms=0.001963 Jy/beam
! Combined flux in latest and established models = 1.54525 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 21 model components to the UV plane model.
! The established model now contains 66 components and 1.54525 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.288717Jy  sigma=0.001179
! Fit after  self-cal, rms=0.288670Jy  sigma=0.001176
! Inverting map 
! Added new window around map position (4.4, -1.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00360278 Jy
! Component: 100  -  total flux cleaned = 0.000823399 Jy
! Total flux subtracted in 100 components = 0.000823399 Jy
! Clean residual min=-0.007116 max=0.007384 Jy/beam
! Clean residual mean=-0.000081 rms=0.001717 Jy/beam
! Combined flux in latest and established models = 1.54607 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 81 components and 1.54607 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.288169Jy  sigma=0.001168
! Fit after  self-cal, rms=0.288121Jy  sigma=0.001167
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0642+449_S
! Writing UV FITS file: 0642+449_S.uvf
! Writing 81 model components to file: 0642+449_S.mod
! wwins: Wrote 3 windows to 0642+449_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.319 x 4.942 at 47.63 degrees (North through East)
! Clean map  min=-0.0067826  max=1.4516 Jy/beam
! Writing clean map to FITS file: 0642+449_S.fits
! Writing difmap environment to: 0642+449_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 0642+449_S]
device 0642+449_Suv.ps/vps,1,2
! Attempting to open device: '0642+449_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0642+449_Sim.ps/vps
! Attempting to open device: '0642+449_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.319 mas, bmaj=4.942 mas, bpa=47.63 degrees
! Estimated noise=1143.59 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.319 x 4.942 at 47.63 degrees (North through East)
! Clean map  min=-0.0067826  max=1.4516 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.4]
quit
! Quitting program
! Log file 0642+449_S.log closed on Wed Oct 31 11:11:23 2007