! Started logfile: 2243-123_X.log on Thu Sep 21 15:28:48 2006
observe 2243-123_X.edt
! Reading UV FITS file: 2243-123_X.edt
! AN table 1: 6 integrations on 105 of 105 possible baselines.
! AN table 2: 50 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.136224 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 2243-123
! 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 3204 visibilities.
![@gonzo5-0.1 2243-123_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 = 5.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 90 telescope corrections were flagged in sub-array 1.
!  A total of 467 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  A total of 475 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  A total of 467 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  A total of 468 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=2.089955Jy  sigma=0.020550
! Fit after  self-cal, rms=2.092171Jy  sigma=0.020634
! 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.75 mas, bmaj=1.729 mas, bpa=0.3129 degrees
! Estimated noise=1145.06 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.41811 Jy
! Total flux subtracted in 50 components = 1.41811 Jy
! Clean residual min=-0.259810 max=0.630797 Jy/beam
! Clean residual mean=0.000186 rms=0.070881 Jy/beam
! Combined flux in latest and established models = 1.41811 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 1.41811 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.851288Jy  sigma=0.017034
! Fit after  self-cal, rms=1.851916Jy  sigma=0.017018
! Inverting map 
! Added new window around map position (-0.1, 2.4).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.631703 Jy
! Total flux subtracted in 50 components = 0.631703 Jy
! Clean residual min=-0.227494 max=0.482068 Jy/beam
! Clean residual mean=0.000360 rms=0.055457 Jy/beam
! Combined flux in latest and established models = 2.04981 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 15 components and 2.04981 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.582426Jy  sigma=0.012830
! Fit after  self-cal, rms=1.571790Jy  sigma=0.012475
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.385316 Jy
! Total flux subtracted in 50 components = 0.385316 Jy
! Clean residual min=-0.198034 max=0.323798 Jy/beam
! Clean residual mean=0.000473 rms=0.048203 Jy/beam
! Combined flux in latest and established models = 2.43513 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 19 components and 2.43513 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.426628Jy  sigma=0.010884
! Fit after  self-cal, rms=1.419550Jy  sigma=0.010650
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.236796 Jy
! Total flux subtracted in 50 components = 0.236796 Jy
! Clean residual min=-0.201463 max=0.222194 Jy/beam
! Clean residual mean=0.000541 rms=0.045244 Jy/beam
! Combined flux in latest and established models = 2.67193 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 25 components and 2.67193 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.346228Jy  sigma=0.010223
! Fit after  self-cal, rms=1.343258Jy  sigma=0.010114
! 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.8969 mas, bmaj=1.885 mas, bpa=7.996 degrees
! Estimated noise=908.283 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.175075 Jy
! Component: 100  -  total flux cleaned = 0.222129 Jy
! Total flux subtracted in 100 components = 0.222129 Jy
! Clean residual min=-0.167420 max=0.167013 Jy/beam
! Clean residual mean=0.001887 rms=0.039759 Jy/beam
! Combined flux in latest and established models = 2.89405 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 36 components and 2.89405 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.275344Jy  sigma=0.010192
! Fit after  self-cal, rms=1.274957Jy  sigma=0.010152
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Natural Weighting CLEAN ***"
! *** Finished Natural Weighting CLEAN *** 
print "****************************************"
! **************************************** 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   AP        0.00*    BR        0.00*    FD        0.00*    HN        0.00*    
!   KP        0.00*    LA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    HO        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   AP        1.26     BR        0.74     FD        1.22     HN        0.46     
!   KP        0.97     LA        1.04     MC        1.00*    MK        0.94     
!   NL        0.97     HO        1.00*    NY        1.00*    OV        1.06     
!   PT        1.03     SC        0.98     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   AP        0.00*    BR        0.00*    FD        0.00*    HN        0.00*    
!   KP        0.00*    LA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    HO        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   AP        1.29     BR        0.91     FD        1.25     HN        0.49     
!   KP        1.01     LA        0.99     MC        1.00*    MK        1.00     
!   NL        0.98     HO        1.00*    NY        1.00*    OV        1.01     
!   PT        0.97     SC        0.99     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   AP        0.00*    BR        0.00*    FD        0.00*    HN        0.00*    
!   KP        0.00*    LA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    HO        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   AP        1.23     BR        1.10     FD        1.32     HN        0.72     
!   KP        1.04     LA        0.84     MC        1.00*    MK        1.27     
!   NL        1.08     HO        1.00*    NY        1.00*    OV        1.14     
!   PT        1.03     SC        1.04     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   AP        0.00*    BR        0.00*    FD        0.00*    HN        0.00*    
!   KP        0.00*    LA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    HO        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   AP        1.28     BR        0.67     FD        1.29     HN        0.48     
!   KP        0.96     LA        0.70     MC        1.00*    MK        1.27     
!   NL        1.04     HO        1.00*    NY        1.00*    OV        0.92     
!   PT        0.96     SC        1.15     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=1.274957Jy  sigma=0.010152
! Fit after  self-cal, rms=0.451836Jy  sigma=0.005422
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.9076 mas, bmaj=1.912 mas, bpa=8.464 degrees
! Estimated noise=913.87 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.0241615 Jy
! Component: 100  -  total flux cleaned = -0.0316388 Jy
! Total flux subtracted in 100 components = -0.0316388 Jy
! Clean residual min=-0.089355 max=0.086557 Jy/beam
! Clean residual mean=0.000380 rms=0.019221 Jy/beam
! Combined flux in latest and established models = 2.86242 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 39 components and 2.86242 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.444111Jy  sigma=0.005326
! Fit after  self-cal, rms=0.442678Jy  sigma=0.005308
! 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.00343267 Jy
! Component: 100  -  total flux cleaned = -0.00662552 Jy
! Total flux subtracted in 100 components = -0.00662552 Jy
! Clean residual min=-0.081079 max=0.086373 Jy/beam
! Clean residual mean=0.000399 rms=0.018984 Jy/beam
! Combined flux in latest and established models = 2.85579 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 43 components and 2.85579 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.438590Jy  sigma=0.005263
! Fit after  self-cal, rms=0.251563Jy  sigma=0.003446
! Inverting map and beam 
! Estimated beam: bmin=0.9064 mas, bmaj=1.908 mas, bpa=8.209 degrees
! Estimated noise=909.017 mJy/beam.
! Added new window around map position (3.1, 5.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0355618 Jy
! Component: 100  -  total flux cleaned = 0.027106 Jy
! Total flux subtracted in 100 components = 0.027106 Jy
! Clean residual min=-0.047794 max=0.043288 Jy/beam
! Clean residual mean=-0.000022 rms=0.010747 Jy/beam
! Combined flux in latest and established models = 2.8829 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 57 components and 2.8829 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.236478Jy  sigma=0.003212
! Fit after  self-cal, rms=0.228199Jy  sigma=0.003149
! Inverting map and beam 
! Estimated beam: bmin=0.9047 mas, bmaj=1.904 mas, bpa=8.038 degrees
! Estimated noise=905.897 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.00982763 Jy
! Component: 100  -  total flux cleaned = 0.00572001 Jy
! Total flux subtracted in 100 components = 0.00572001 Jy
! Clean residual min=-0.042902 max=0.041898 Jy/beam
! Clean residual mean=0.000042 rms=0.010089 Jy/beam
! Combined flux in latest and established models = 2.88862 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 62 components and 2.88862 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.219840Jy  sigma=0.003024
! Fit after  self-cal, rms=0.219345Jy  sigma=0.003019
! Inverting map 
! Added new window around map position (-2.6, -8.9).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00645612 Jy
! Component: 100  -  total flux cleaned = 0.000663829 Jy
! Total flux subtracted in 100 components = 0.000663829 Jy
! Clean residual min=-0.039428 max=0.039502 Jy/beam
! Clean residual mean=0.000037 rms=0.009260 Jy/beam
! Combined flux in latest and established models = 2.88928 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 80 components and 2.88928 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.207822Jy  sigma=0.002841
! Fit after  self-cal, rms=0.207198Jy  sigma=0.002835
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 2243-123_X
! Writing UV FITS file: 2243-123_X.uvf
! Writing 80 model components to file: 2243-123_X.mod
! wwins: Wrote 4 windows to 2243-123_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9047 x 1.904 at 8.038 degrees (North through East)
! Clean map  min=-0.044032  max=1.6336 Jy/beam
! Writing clean map to FITS file: 2243-123_X.fits
! Writing difmap environment to: 2243-123_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 2243-123_X]
device 2243-123_Xuv.ps/vps,1,2
! Attempting to open device: '2243-123_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 2243-123_Xim.ps/vps
! Attempting to open device: '2243-123_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.9047 mas, bmaj=1.904 mas, bpa=8.038 degrees
! Estimated noise=905.897 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9047 x 1.904 at 8.038 degrees (North through East)
! Clean map  min=-0.044032  max=1.6336 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo5-0.1]
quit
! Quitting program
! Log file 2243-123_X.log closed on Thu Sep 21 15:29:13 2006