! Started logfile: 0834-201_X.log on Tue Sep 19 15:57:29 2006
observe 0834-201_X.edt
! Reading UV FITS file: 0834-201_X.edt
! AN table 1: 28 integrations on 105 of 105 possible baselines.
! AN table 2: 62 integrations on 105 of 105 possible baselines.
! AN table 3: 53 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.10676 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0834-201
! Warning: Unknown AN-table MNTSTA value (4).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (4).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (4).
!          Will assume that it is ground-based.
! 
! 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 1641 lines of history.
! 
! Reading 6412 visibilities.
![@gonzo7-0.1 0834-201_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 218 telescope corrections were flagged in sub-array 1.
!  A total of 694 telescope corrections were flagged in sub-array 2.
!  A total of 692 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 218 telescope corrections were flagged in sub-array 1.
!  A total of 694 telescope corrections were flagged in sub-array 2.
!  A total of 687 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 218 telescope corrections were flagged in sub-array 1.
!  A total of 694 telescope corrections were flagged in sub-array 2.
!  A total of 664 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 228 telescope corrections were flagged in sub-array 1.
!  A total of 694 telescope corrections were flagged in sub-array 2.
!  A total of 697 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.567654Jy  sigma=0.020555
! Fit after  self-cal, rms=1.551933Jy  sigma=0.020553
! 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.6825 mas, bmaj=2.001 mas, bpa=-11.13 degrees
! Estimated noise=1002.73 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.51847 Jy
! Total flux subtracted in 50 components = 1.51847 Jy
! Clean residual min=-0.165137 max=0.438320 Jy/beam
! Clean residual mean=-0.001301 rms=0.045758 Jy/beam
! Combined flux in latest and established models = 1.51847 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 1.51847 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.190412Jy  sigma=0.014507
! Fit after  self-cal, rms=1.190731Jy  sigma=0.014506
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.448678 Jy
! Total flux subtracted in 50 components = 0.448678 Jy
! Clean residual min=-0.149161 max=0.200380 Jy/beam
! Clean residual mean=-0.000979 rms=0.035637 Jy/beam
! Combined flux in latest and established models = 1.96715 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 17 components and 1.96715 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.976433Jy  sigma=0.011294
! Fit after  self-cal, rms=0.977067Jy  sigma=0.011286
! 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.832 mas, bmaj=2.532 mas, bpa=-12.01 degrees
! Estimated noise=606.25 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.291892 Jy
! Component: 100  -  total flux cleaned = 0.426438 Jy
! Total flux subtracted in 100 components = 0.426438 Jy
! Clean residual min=-0.187766 max=0.164477 Jy/beam
! Clean residual mean=-0.001125 rms=0.036999 Jy/beam
! Combined flux in latest and established models = 2.39359 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 38 components and 2.39359 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.852582Jy  sigma=0.010421
! Fit after  self-cal, rms=0.853722Jy  sigma=0.010408
! 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:
!   AP        1.00     BR        0.92     FD        0.95     HN        0.75     
!   KP        1.35     LA        0.99     MC        1.00*    MK        0.95     
!   NL        0.93     HO        1.00*    NY        1.00*    OV        0.98     
!   PT        0.96     SC        1.16     WZ        1.00*    
! 
!  A total of 78 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   AP        1.41     BR        1.00*    FD        0.92     HN        1.01     
!   KP        1.97     LA        1.02     MC        1.02     MK        1.00*    
!   NL        0.96     HO        1.00*    NY        1.00*    OV        1.00*    
!   PT        0.98     SC        0.97     WZ        0.99     
! 
!  A total of 36 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   AP        1.23     BR        0.65     FD        1.00*    HN        0.69     
!   KP        1.00*    LA        0.93     MC        1.00*    MK        0.81     
!   NL        0.89     HO        1.00*    NY        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   AP        0.99     BR        0.92     FD        0.95     HN        0.65     
!   KP        1.13     LA        0.99     MC        1.00*    MK        0.98     
!   NL        0.92     HO        1.00*    NY        1.00*    OV        0.99     
!   PT        0.95     SC        1.13     WZ        1.00*    
! 
!  A total of 78 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   AP        1.39     BR        1.00*    FD        0.92     HN        1.06     
!   KP        1.14     LA        1.00     MC        1.01     MK        1.00*    
!   NL        0.98     HO        1.00*    NY        1.00*    OV        1.00*    
!   PT        0.98     SC        0.95     WZ        1.03     
! 
!  A total of 33 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   AP        1.29     BR        0.81     FD        1.00*    HN        0.94     
!   KP        1.00*    LA        0.90     MC        1.00*    MK        0.92     
!   NL        0.88     HO        1.00*    NY        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   AP        0.99     BR        0.80     FD        0.96     HN        0.81     
!   KP        1.23     LA        0.99     MC        1.00*    MK        0.98     
!   NL        0.92     HO        1.00*    NY        1.00*    OV        0.98     
!   PT        0.96     SC        1.12     WZ        1.00*    
! 
!  A total of 78 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   AP        1.44     BR        1.00*    FD        0.95     HN        1.14     
!   KP        1.18     LA        1.04     MC        1.04     MK        1.00*    
!   NL        0.98     HO        1.00*    NY        1.00*    OV        1.00*    
!   PT        1.01     SC        0.98     WZ        1.02     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   AP        1.24     BR        1.02     FD        1.00*    HN        0.68     
!   KP        1.00*    LA        0.76     MC        1.00*    MK        1.28     
!   NL        0.99     HO        1.00*    NY        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   AP        0.98     BR        1.18     FD        0.95     HN        0.59     
!   KP        1.19     LA        0.97     MC        1.00*    MK        0.96     
!   NL        0.93     HO        1.00*    NY        1.00*    OV        0.99     
!   PT        0.96     SC        1.08     WZ        1.00*    
! 
!  A total of 78 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   AP        1.42     BR        1.00*    FD        0.95     HN        1.07     
!   KP        1.17     LA        1.02     MC        0.99     MK        1.00*    
!   NL        0.96     HO        1.00*    NY        1.00*    OV        1.00*    
!   PT        1.02     SC        0.96     WZ        1.04     
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   AP        1.31     BR        0.45     FD        1.00*    HN        0.35     
!   KP        1.00*    LA        0.62     MC        1.00*    MK        1.29     
!   NL        0.94     HO        1.00*    NY        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.853722Jy  sigma=0.010408
! Fit after  self-cal, rms=0.481870Jy  sigma=0.007012
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.8497 mas, bmaj=2.577 mas, bpa=-11.91 degrees
! Estimated noise=609.239 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.0139769 Jy
! Component: 100  -  total flux cleaned = 0.0154204 Jy
! Total flux subtracted in 100 components = 0.0154204 Jy
! Clean residual min=-0.118295 max=0.107501 Jy/beam
! Clean residual mean=-0.000012 rms=0.023468 Jy/beam
! Combined flux in latest and established models = 2.40901 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 47 components and 2.40901 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.475898Jy  sigma=0.006947
! Fit after  self-cal, rms=0.474658Jy  sigma=0.006935
! 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 = -0.00567552 Jy
! Component: 100  -  total flux cleaned = -0.00560258 Jy
! Total flux subtracted in 100 components = -0.00560258 Jy
! Clean residual min=-0.119616 max=0.105973 Jy/beam
! Clean residual mean=-0.000021 rms=0.023322 Jy/beam
! Combined flux in latest and established models = 2.40341 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 49 components and 2.40341 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.470895Jy  sigma=0.006888
! Fit after  self-cal, rms=0.439648Jy  sigma=0.006574
! Inverting map and beam 
! Estimated beam: bmin=0.8452 mas, bmaj=2.574 mas, bpa=-12.03 degrees
! Estimated noise=609.594 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.00441658 Jy
! Component: 100  -  total flux cleaned = 0.00451173 Jy
! Total flux subtracted in 100 components = 0.00451173 Jy
! Clean residual min=-0.113647 max=0.103071 Jy/beam
! Clean residual mean=-0.000039 rms=0.023069 Jy/beam
! Combined flux in latest and established models = 2.40792 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 50 components and 2.40792 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.435689Jy  sigma=0.006526
! Fit after  self-cal, rms=0.435505Jy  sigma=0.006522
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0834-201_X
! Writing UV FITS file: 0834-201_X.uvf
! Writing 50 model components to file: 0834-201_X.mod
! wwins: Wrote 1 windows to 0834-201_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8452 x 2.574 at -12.03 degrees (North through East)
! Clean map  min=-0.10934  max=2.0411 Jy/beam
! Writing clean map to FITS file: 0834-201_X.fits
! Writing difmap environment to: 0834-201_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 0834-201_X]
device 0834-201_Xuv.ps/vps,1,2
! Attempting to open device: '0834-201_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0834-201_Xim.ps/vps
! Attempting to open device: '0834-201_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.8452 mas, bmaj=2.574 mas, bpa=-12.03 degrees
! Estimated noise=609.594 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8452 x 2.574 at -12.03 degrees (North through East)
! Clean map  min=-0.10934  max=2.0411 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.1]
quit
! Quitting program
! Log file 0834-201_X.log closed on Tue Sep 19 15:57:45 2006