! Started logfile: 1256-220_X.log on Fri Oct  7 08:25:11 2005
observe 1256-220_X.edt
! Reading UV FITS file: 1256-220_X.edt
! AN table 1: 124 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.885305 visibilities/baseline/integration-bin.
! Found source: 1256-220
! 
! 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.40947e+09        8e+06          1        8e+06
!  02        2  8.47947e+09        8e+06          1        8e+06
!  03        3  8.79447e+09        8e+06          1        8e+06
!  04        4  8.89947e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 742 lines of history.
! 
! Reading 19760 visibilities.
![@gonzo6-0.1 1256-220_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 = 6.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 101 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 101 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 101 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 101 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.206181Jy  sigma=0.849067
! Fit after  self-cal, rms=0.205446Jy  sigma=0.846498
! 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.6152 mas, bmaj=1.697 mas, bpa=-2.501 degrees
! Estimated noise=2.13369 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.670005 Jy
! Total flux subtracted in 50 components = 0.670005 Jy
! Clean residual min=-0.042785 max=0.186955 Jy/beam
! Clean residual mean=-0.000257 rms=0.011217 Jy/beam
! Combined flux in latest and established models = 0.670005 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.670005 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.303399Jy  sigma=1.250136
! Fit after  self-cal, rms=0.303399Jy  sigma=1.250136
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.150485 Jy
! Total flux subtracted in 50 components = 0.150485 Jy
! Clean residual min=-0.022068 max=0.053027 Jy/beam
! Clean residual mean=-0.000133 rms=0.006016 Jy/beam
! Combined flux in latest and established models = 0.82049 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 9 components and 0.82049 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.205727Jy  sigma=0.847425
! Fit after  self-cal, rms=0.205704Jy  sigma=0.847331
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0615386 Jy
! Total flux subtracted in 50 components = 0.0615386 Jy
! Clean residual min=-0.018881 max=0.030751 Jy/beam
! Clean residual mean=-0.000084 rms=0.004723 Jy/beam
! Combined flux in latest and established models = 0.882029 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 20 components and 0.882029 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.181693Jy  sigma=0.748336
! Fit after  self-cal, rms=0.181621Jy  sigma=0.748037
! Inverting map 
! Added new window around map position (0.7, -0.9).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0385408 Jy
! Total flux subtracted in 50 components = 0.0385408 Jy
! Clean residual min=-0.015714 max=0.020908 Jy/beam
! Clean residual mean=-0.000054 rms=0.004069 Jy/beam
! Combined flux in latest and established models = 0.92057 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 34 components and 0.92057 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.170703Jy  sigma=0.703023
! Fit after  self-cal, rms=0.170666Jy  sigma=0.702865
! 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.7812 mas, bmaj=2.101 mas, bpa=-3.446 degrees
! Estimated noise=1.24237 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.0476521 Jy
! Component: 100  -  total flux cleaned = 0.0756366 Jy
! Total flux subtracted in 100 components = 0.0756366 Jy
! Clean residual min=-0.013287 max=0.017795 Jy/beam
! Clean residual mean=-0.000049 rms=0.003663 Jy/beam
! Combined flux in latest and established models = 0.996206 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 49 model components to the UV plane model.
! The established model now contains 74 components and 0.996206 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.158067Jy  sigma=0.650934
! Fit after  self-cal, rms=0.157914Jy  sigma=0.650297
! 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 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.95     HN        1.07     KP        0.95     
!   LA        0.96     MK        1.00     NL        1.00     OV        1.00     
!   PT        0.96     SC        0.98     
! 
! 
! Correcting IF 2.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.97     HN        1.07     KP        0.90     
!   LA        0.95     MK        0.99     NL        0.99     OV        0.98     
!   PT        1.01     SC        0.96     
! 
! 
! Correcting IF 3.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.02     HN        0.98     KP        0.86     
!   LA        0.96     MK        1.05     NL        0.97     OV        1.02     
!   PT        1.04     SC        0.95     
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        1.04     HN        1.02     KP        1.00     
!   LA        0.96     MK        1.04     NL        1.00     OV        1.04     
!   PT        1.11     SC        1.20     
! 
! 
! Fit before self-cal, rms=0.157914Jy  sigma=0.650297
! Fit after  self-cal, rms=0.140578Jy  sigma=0.577942
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.79 mas, bmaj=2.119 mas, bpa=-3.392 degrees
! Estimated noise=1.22908 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 (1.2, -3.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00849887 Jy
! Component: 100  -  total flux cleaned = 0.0120629 Jy
! Total flux subtracted in 100 components = 0.0120629 Jy
! Clean residual min=-0.004963 max=0.005496 Jy/beam
! Clean residual mean=-0.000021 rms=0.001289 Jy/beam
! Combined flux in latest and established models = 1.00827 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 24 model components to the UV plane model.
! The established model now contains 98 components and 1.00827 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.140134Jy  sigma=0.576026
! Fit after  self-cal, rms=0.140115Jy  sigma=0.575930
! 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 (12.8, -20).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0049012 Jy
! Component: 100  -  total flux cleaned = 0.00682983 Jy
! Total flux subtracted in 100 components = 0.00682983 Jy
! Clean residual min=-0.004831 max=0.004990 Jy/beam
! Clean residual mean=-0.000013 rms=0.001220 Jy/beam
! Combined flux in latest and established models = 1.0151 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 111 components and 1.0151 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.139946Jy  sigma=0.575225
! Fit after  self-cal, rms=0.138336Jy  sigma=0.567899
! Inverting map and beam 
! Estimated beam: bmin=0.7893 mas, bmaj=2.118 mas, bpa=-3.37 degrees
! Estimated noise=1.22867 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 (3.4, -1.7).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00443841 Jy
! Component: 100  -  total flux cleaned = 0.00744143 Jy
! Total flux subtracted in 100 components = 0.00744143 Jy
! Clean residual min=-0.003356 max=0.002872 Jy/beam
! Clean residual mean=-0.000006 rms=0.000800 Jy/beam
! Combined flux in latest and established models = 1.02254 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 23 model components to the UV plane model.
! The established model now contains 133 components and 1.02254 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.138200Jy  sigma=0.567295
! Fit after  self-cal, rms=0.138196Jy  sigma=0.567274
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1256-220_X
! Writing UV FITS file: 1256-220_X.uvf
! Writing 133 model components to file: 1256-220_X.mod
! wwins: Wrote 5 windows to 1256-220_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7893 x 2.118 at -3.37 degrees (North through East)
! Clean map  min=-0.0031866  max=0.87972 Jy/beam
! Writing clean map to FITS file: 1256-220_X.fits
! Writing difmap environment to: 1256-220_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1256-220_X]
device 1256-220_Xuv.ps/vps,1,2
! Attempting to open device: '1256-220_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1256-220_Xim.ps/vps
! Attempting to open device: '1256-220_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.7893 mas, bmaj=2.118 mas, bpa=-3.37 degrees
! Estimated noise=1.22867 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7893 x 2.118 at -3.37 degrees (North through East)
! Clean map  min=-0.0031866  max=0.87972 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo6-0.1]
quit
! Quitting program
! Log file 1256-220_X.log closed on Fri Oct  7 08:25:18 2005