! Started logfile: 1246+489_X.log on Wed Oct 31 13:02:47 2007
observe 1246+489_X.edt
! Reading UV FITS file: 1246+489_X.edt
! AN table 1: 29 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.190476 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1246+489
! 
! 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 969 lines of history.
! 
! Reading 2320 visibilities.
![@gonzo7-0.1 1246+489_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 264 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 289 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 289 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 309 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.912075Jy  sigma=0.012379
! Fit after  self-cal, rms=0.911447Jy  sigma=0.012404
! 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.7652 mas, bmaj=3.806 mas, bpa=-7.955 degrees
! Estimated noise=2232.83 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.0689796 Jy
! Total flux subtracted in 50 components = 0.0689796 Jy
! Clean residual min=-0.009698 max=0.019335 Jy/beam
! Clean residual mean=-0.000063 rms=0.003147 Jy/beam
! Combined flux in latest and established models = 0.0689796 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 3 model components to the UV plane model.
! The established model now contains 3 components and 0.0689796 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.088210Jy  sigma=0.001086
! Fit after  self-cal, rms=0.088208Jy  sigma=0.001086
! 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.9967 mas, bmaj=4.007 mas, bpa=-8.558 degrees
! Estimated noise=1291.65 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.0172706 Jy
! Component: 100  -  total flux cleaned = 0.0217893 Jy
! Total flux subtracted in 100 components = 0.0217893 Jy
! Clean residual min=-0.005019 max=0.006974 Jy/beam
! Clean residual mean=-0.000005 rms=0.001626 Jy/beam
! Combined flux in latest and established models = 0.0907688 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 10 components and 0.0907689 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.084969Jy  sigma=0.001048
! Fit after  self-cal, rms=0.084971Jy  sigma=0.001048
! 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 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.99     HH        1.00*    KB        1.00*    KP        1.00     
!   LA        0.98     MK        1.12     NL        1.05     NY        1.00*    
!   OV        1.04     PT        1.23     SC        0.93     TC        1.00*    
!   WF        1.00*    WZ        1.00*    BR        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.99     HH        1.00*    KB        1.00*    KP        0.97     
!   LA        1.08     MK        1.00*    NL        0.94     NY        1.00*    
!   OV        0.97     PT        1.04     SC        1.04     TC        1.00*    
!   WF        1.00*    WZ        1.00*    BR        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.01     HH        1.00*    KB        1.00*    KP        0.83     
!   LA        1.01     MK        1.00*    NL        0.84     NY        1.00*    
!   OV        1.00     PT        1.01     SC        0.93     TC        1.00*    
!   WF        1.00*    WZ        1.00*    BR        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.02     HH        1.00*    KB        1.00*    KP        0.81     
!   LA        0.87     MK        1.00*    NL        0.91     NY        1.00*    
!   OV        1.00*    PT        1.04     SC        0.85     TC        1.00*    
!   WF        1.00*    WZ        1.00*    BR        1.00*    
! 
! 
! Fit before self-cal, rms=0.084971Jy  sigma=0.001048
! Fit after  self-cal, rms=0.079906Jy  sigma=0.001037
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.009 mas, bmaj=3.908 mas, bpa=-8.445 degrees
! Estimated noise=1262.89 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.000300413 Jy
! Component: 100  -  total flux cleaned = -0.000475687 Jy
! Total flux subtracted in 100 components = -0.000475687 Jy
! Clean residual min=-0.004361 max=0.004862 Jy/beam
! Clean residual mean=0.000003 rms=0.001066 Jy/beam
! Combined flux in latest and established models = 0.0902932 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 20 components and 0.0902932 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.079852Jy  sigma=0.001036
! Fit after  self-cal, rms=0.079829Jy  sigma=0.001036
! 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 = -6.32077e-05 Jy
! Component: 100  -  total flux cleaned = -0.000109314 Jy
! Total flux subtracted in 100 components = -0.000109314 Jy
! Clean residual min=-0.004162 max=0.004791 Jy/beam
! Clean residual mean=0.000003 rms=0.001044 Jy/beam
! Combined flux in latest and established models = 0.0901839 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 25 components and 0.0901839 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.079802Jy  sigma=0.001036
! Fit after  self-cal, rms=0.080710Jy  sigma=0.001024
! Inverting map and beam 
! Estimated beam: bmin=1.001 mas, bmaj=3.925 mas, bpa=-8.381 degrees
! Estimated noise=1272.8 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.000608945 Jy
! Component: 100  -  total flux cleaned = 0.000562963 Jy
! Total flux subtracted in 100 components = 0.000562963 Jy
! Clean residual min=-0.004024 max=0.004656 Jy/beam
! Clean residual mean=0.000000 rms=0.001027 Jy/beam
! Combined flux in latest and established models = 0.0907468 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 40 components and 0.0907468 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.080680Jy  sigma=0.001024
! Fit after  self-cal, rms=0.080680Jy  sigma=0.001024
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1246+489_X
! Writing UV FITS file: 1246+489_X.uvf
! Writing 40 model components to file: 1246+489_X.mod
! wwins: Wrote 1 windows to 1246+489_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.001 x 3.925 at -8.381 degrees (North through East)
! Clean map  min=-0.0039268  max=0.089177 Jy/beam
! Writing clean map to FITS file: 1246+489_X.fits
! Writing difmap environment to: 1246+489_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1246+489_X]
device 1246+489_Xuv.ps/vps,1,2
! Attempting to open device: '1246+489_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1246+489_Xim.ps/vps
! Attempting to open device: '1246+489_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=1.001 mas, bmaj=3.925 mas, bpa=-8.381 degrees
! Estimated noise=1272.8 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.001 x 3.925 at -8.381 degrees (North through East)
! Clean map  min=-0.0039268  max=0.089177 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.1]
quit
! Quitting program
! Log file 1246+489_X.log closed on Wed Oct 31 13:02:59 2007