! Started logfile: 1821+107_X.log on Wed Sep 20 16:52:08 2006
observe 1821+107_X.edt
! Reading UV FITS file: 1821+107_X.edt
! AN table 1: 9 integrations on 105 of 105 possible baselines.
! AN table 2: 26 integrations on 105 of 105 possible baselines.
! AN table 3: 23 integrations on 105 of 105 possible baselines.
! AN table 4: 49 integrations on 105 of 105 possible baselines.
! AN table 5: 57 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.0979675 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1821+107
! 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.
! 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 6748 visibilities.
![@gonzo8-0.1 1821+107_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 = 8.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 123 telescope corrections were flagged in sub-array 1.
!  A total of 327 telescope corrections were flagged in sub-array 2.
!  A total of 264 telescope corrections were flagged in sub-array 3.
!  A total of 455 telescope corrections were flagged in sub-array 4.
!  A total of 677 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 123 telescope corrections were flagged in sub-array 1.
!  A total of 327 telescope corrections were flagged in sub-array 2.
!  A total of 264 telescope corrections were flagged in sub-array 3.
!  A total of 455 telescope corrections were flagged in sub-array 4.
!  A total of 677 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 123 telescope corrections were flagged in sub-array 1.
!  A total of 327 telescope corrections were flagged in sub-array 2.
!  A total of 264 telescope corrections were flagged in sub-array 3.
!  A total of 455 telescope corrections were flagged in sub-array 4.
!  A total of 681 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 123 telescope corrections were flagged in sub-array 1.
!  A total of 327 telescope corrections were flagged in sub-array 2.
!  A total of 264 telescope corrections were flagged in sub-array 3.
!  A total of 455 telescope corrections were flagged in sub-array 4.
!  A total of 681 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.634870Jy  sigma=0.011082
! Fit after  self-cal, rms=0.624524Jy  sigma=0.011100
! 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.5486 mas, bmaj=1.156 mas, bpa=-10.84 degrees
! Estimated noise=925.911 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.287498 Jy
! Total flux subtracted in 50 components = 0.287498 Jy
! Clean residual min=-0.033915 max=0.081592 Jy/beam
! Clean residual mean=-0.000128 rms=0.008286 Jy/beam
! Combined flux in latest and established models = 0.287498 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 0.287498 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.229949Jy  sigma=0.003074
! Fit after  self-cal, rms=0.229969Jy  sigma=0.003073
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.073366 Jy
! Total flux subtracted in 50 components = 0.073366 Jy
! Clean residual min=-0.039859 max=0.040757 Jy/beam
! Clean residual mean=-0.000076 rms=0.007507 Jy/beam
! Combined flux in latest and established models = 0.360864 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 16 components and 0.360864 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.200467Jy  sigma=0.002628
! Fit after  self-cal, rms=0.200272Jy  sigma=0.002622
! 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.7341 mas, bmaj=1.467 mas, bpa=-11.63 degrees
! Estimated noise=542.449 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.0473506 Jy
! Component: 100  -  total flux cleaned = 0.0688611 Jy
! Total flux subtracted in 100 components = 0.0688611 Jy
! Clean residual min=-0.022339 max=0.033898 Jy/beam
! Clean residual mean=0.000216 rms=0.007248 Jy/beam
! Combined flux in latest and established models = 0.429725 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 28 components and 0.429725 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.186019Jy  sigma=0.002506
! Fit after  self-cal, rms=0.185932Jy  sigma=0.002504
! 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 12 telescope corrections were flagged in sub-array 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 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   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*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   AP        1.00*    BR        1.06     FD        1.00*    HN        1.00*    
!   KP        1.03     LA        1.00     MC        1.00*    MK        1.25     
!   NL        1.00*    HO        1.00*    NY        1.00*    OV        0.82     
!   PT        0.90     SC        1.00*    WZ        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   AP        0.81     BR        1.15     FD        0.99     HN        0.58     
!   KP        1.54     LA        0.92     MC        1.20     MK        0.70     
!   NL        1.65     HO        1.00*    NY        1.03     OV        0.90     
!   PT        0.92     SC        0.96     WZ        0.97     
! 
!  A total of 120 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   AP        1.11     BR        1.00*    FD        1.00     HN        0.61     
!   KP        1.00*    LA        0.91     MC        1.00*    MK        1.00*    
!   NL        1.73     HO        1.00*    NY        0.90     OV        1.00*    
!   PT        0.89     SC        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 12 telescope corrections were flagged in sub-array 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 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   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*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   AP        1.00*    BR        1.02     FD        1.00*    HN        1.00*    
!   KP        1.04     LA        0.98     MC        1.00*    MK        1.10     
!   NL        1.00*    HO        1.00*    NY        1.00*    OV        0.79     
!   PT        0.88     SC        1.00*    WZ        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   AP        0.81     BR        1.12     FD        1.01     HN        0.54     
!   KP        1.16     LA        0.93     MC        1.20     MK        0.91     
!   NL        1.69     HO        1.00*    NY        1.05     OV        0.93     
!   PT        0.92     SC        0.93     WZ        0.97     
! 
!  A total of 120 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   AP        1.06     BR        1.00*    FD        1.01     HN        0.85     
!   KP        1.00*    LA        0.85     MC        1.00*    MK        1.00*    
!   NL        1.76     HO        1.00*    NY        0.93     OV        1.00*    
!   PT        0.84     SC        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 12 telescope corrections were flagged in sub-array 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 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   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*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   AP        1.00*    BR        0.98     FD        1.00*    HN        1.00*    
!   KP        1.08     LA        0.97     MC        1.00*    MK        1.12     
!   NL        1.00*    HO        1.00*    NY        1.00*    OV        0.85     
!   PT        0.90     SC        1.00*    WZ        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   AP        0.82     BR        1.10     FD        1.00     HN        0.75     
!   KP        1.30     LA        0.92     MC        1.21     MK        0.89     
!   NL        1.64     HO        1.00*    NY        1.04     OV        0.93     
!   PT        0.92     SC        0.95     WZ        0.97     
! 
!  A total of 120 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   AP        0.93     BR        1.00*    FD        1.13     HN        0.97     
!   KP        1.00*    LA        0.73     MC        1.00*    MK        1.00*    
!   NL        1.82     HO        1.00*    NY        0.93     OV        1.00*    
!   PT        0.93     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.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 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   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*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   AP        1.00*    BR        0.95     FD        1.00*    HN        1.00*    
!   KP        1.09     LA        0.95     MC        1.00*    MK        1.07     
!   NL        1.00*    HO        1.00*    NY        1.00*    OV        0.79     
!   PT        0.92     SC        1.00*    WZ        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   AP        0.81     BR        1.25     FD        1.02     HN        0.48     
!   KP        1.23     LA        0.92     MC        1.18     MK        0.82     
!   NL        1.57     HO        1.00*    NY        1.02     OV        0.96     
!   PT        0.92     SC        0.95     WZ        0.99     
! 
!  A total of 120 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   AP        1.09     BR        1.00*    FD        1.09     HN        0.72     
!   KP        1.00*    LA        0.60     MC        1.00*    MK        1.00*    
!   NL        1.78     HO        1.00*    NY        0.91     OV        1.00*    
!   PT        0.88     SC        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.185932Jy  sigma=0.002504
! Fit after  self-cal, rms=0.138901Jy  sigma=0.001845
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.7209 mas, bmaj=1.786 mas, bpa=-13.48 degrees
! Estimated noise=567.223 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.00208835 Jy
! Component: 100  -  total flux cleaned = 0.00191793 Jy
! Total flux subtracted in 100 components = 0.00191793 Jy
! Clean residual min=-0.018344 max=0.022107 Jy/beam
! Clean residual mean=-0.000010 rms=0.003724 Jy/beam
! Combined flux in latest and established models = 0.431643 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 35 components and 0.431643 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.138546Jy  sigma=0.001840
! Fit after  self-cal, rms=0.138668Jy  sigma=0.001835
! 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.000110544 Jy
! Component: 100  -  total flux cleaned = -0.000106861 Jy
! Total flux subtracted in 100 components = -0.000106861 Jy
! Clean residual min=-0.018146 max=0.021856 Jy/beam
! Clean residual mean=-0.000009 rms=0.003733 Jy/beam
! Combined flux in latest and established models = 0.431537 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 36 components and 0.431537 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.138487Jy  sigma=0.001832
! Fit after  self-cal, rms=0.132940Jy  sigma=0.001801
! Inverting map and beam 
! Estimated beam: bmin=0.717 mas, bmaj=1.782 mas, bpa=-13.5 degrees
! Estimated noise=569.116 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.00234293 Jy
! Component: 100  -  total flux cleaned = 0.00234241 Jy
! Total flux subtracted in 100 components = 0.00234241 Jy
! Clean residual min=-0.018170 max=0.020851 Jy/beam
! Clean residual mean=-0.000008 rms=0.003682 Jy/beam
! Combined flux in latest and established models = 0.433879 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 40 components and 0.433879 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.132723Jy  sigma=0.001798
! Fit after  self-cal, rms=0.132750Jy  sigma=0.001798
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1821+107_X
! Writing UV FITS file: 1821+107_X.uvf
! Writing 40 model components to file: 1821+107_X.mod
! wwins: Wrote 1 windows to 1821+107_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.717 x 1.782 at -13.5 degrees (North through East)
! Clean map  min=-0.017459  max=0.37294 Jy/beam
! Writing clean map to FITS file: 1821+107_X.fits
! Writing difmap environment to: 1821+107_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1821+107_X]
device 1821+107_Xuv.ps/vps,1,2
! Attempting to open device: '1821+107_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1821+107_Xim.ps/vps
! Attempting to open device: '1821+107_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.717 mas, bmaj=1.782 mas, bpa=-13.5 degrees
! Estimated noise=569.116 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.717 x 1.782 at -13.5 degrees (North through East)
! Clean map  min=-0.017459  max=0.37294 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo8-0.1]
quit
! Quitting program
! Log file 1821+107_X.log closed on Wed Sep 20 16:52:25 2006