! Started logfile: 1909+161_X.log on Tue Aug  7 10:23:26 2007
observe 1909+161_X.edt
! Reading UV FITS file: 1909+161_X.edt
! AN table 1: 205 integrations on 105 of 105 possible baselines.
! AN table 2: 38 integrations on 105 of 105 possible baselines.
! AN table 3: 162 integrations on 105 of 105 possible baselines.
! AN table 4: 35 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.0634848 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1909+161
! 
! 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 1066 lines of history.
! 
! Reading 11732 visibilities.
![@gonzo7-0.1 1909+161_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 2362 telescope corrections were flagged in sub-array 1.
!  A total of 471 telescope corrections were flagged in sub-array 2.
!  A total of 1922 telescope corrections were flagged in sub-array 3.
!  A total of 368 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 2362 telescope corrections were flagged in sub-array 1.
!  A total of 474 telescope corrections were flagged in sub-array 2.
!  A total of 1922 telescope corrections were flagged in sub-array 3.
!  A total of 372 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 2368 telescope corrections were flagged in sub-array 1.
!  A total of 471 telescope corrections were flagged in sub-array 2.
!  A total of 1919 telescope corrections were flagged in sub-array 3.
!  A total of 365 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 2363 telescope corrections were flagged in sub-array 1.
!  A total of 471 telescope corrections were flagged in sub-array 2.
!  A total of 1954 telescope corrections were flagged in sub-array 3.
!  A total of 368 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.716858Jy  sigma=0.007935
! Fit after  self-cal, rms=0.708023Jy  sigma=0.007972
! 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.5941 mas, bmaj=0.6546 mas, bpa=11.88 degrees
! Estimated noise=1055.85 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.239316 Jy
! Total flux subtracted in 50 components = 0.239316 Jy
! Clean residual min=-0.017589 max=0.067397 Jy/beam
! Clean residual mean=-0.000018 rms=0.005091 Jy/beam
! Combined flux in latest and established models = 0.239316 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 2 model components to the UV plane model.
! The established model now contains 2 components and 0.239316 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.156593Jy  sigma=0.001856
! Fit after  self-cal, rms=0.156614Jy  sigma=0.001855
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0644363 Jy
! Total flux subtracted in 50 components = 0.0644363 Jy
! Clean residual min=-0.013473 max=0.036002 Jy/beam
! Clean residual mean=-0.000013 rms=0.003476 Jy/beam
! Combined flux in latest and established models = 0.303752 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 9 components and 0.303752 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.136321Jy  sigma=0.001463
! Fit after  self-cal, rms=0.135991Jy  sigma=0.001460
! Inverting map 
! Added new window around map position (-0.3, -1.2).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0375498 Jy
! Total flux subtracted in 50 components = 0.0375498 Jy
! Clean residual min=-0.011043 max=0.023281 Jy/beam
! Clean residual mean=-0.000010 rms=0.002753 Jy/beam
! Combined flux in latest and established models = 0.341302 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 15 components and 0.341302 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.128047Jy  sigma=0.001297
! Fit after  self-cal, rms=0.127780Jy  sigma=0.001292
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0230486 Jy
! Total flux subtracted in 50 components = 0.0230486 Jy
! Clean residual min=-0.010208 max=0.016321 Jy/beam
! Clean residual mean=-0.000008 rms=0.002371 Jy/beam
! Combined flux in latest and established models = 0.364351 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 18 components and 0.364351 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.124378Jy  sigma=0.001218
! Fit after  self-cal, rms=0.124268Jy  sigma=0.001216
! 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.6751 mas, bmaj=0.7171 mas, bpa=17.79 degrees
! Estimated noise=602.233 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.0230116 Jy
! Component: 100  -  total flux cleaned = 0.0366988 Jy
! Total flux subtracted in 100 components = 0.0366988 Jy
! Clean residual min=-0.009283 max=0.013535 Jy/beam
! Clean residual mean=0.000009 rms=0.002241 Jy/beam
! Combined flux in latest and established models = 0.40105 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 31 components and 0.40105 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.121078Jy  sigma=0.001146
! Fit after  self-cal, rms=0.120843Jy  sigma=0.001142
! 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 297 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.96     HH        1.12     HN        0.86     
!   KB        1.00*    KK        1.05     KP        0.98     LA        0.95     
!   MK        1.11     NL        0.98     NY        1.04     OV        0.98     
!   PT        0.94     SC        1.07     WZ        0.95     
! 
!  A total of 99 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    HH        0.00*    HN        0.00*    
!   KB        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
!  A total of 96 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    HH        0.95     HN        1.39     
!   KB        0.89     KK        1.03     KP        1.02     LA        1.00*    
!   MK        1.09     NL        1.00*    NY        1.03     OV        0.98     
!   PT        1.00*    SC        1.00*    WZ        1.06     
! 
!  A total of 60 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        0.98     HH        1.00*    HN        0.95     
!   KB        1.00*    KK        1.00*    KP        0.97     LA        1.00     
!   MK        1.00*    NL        1.00     NY        1.00*    OV        0.97     
!   PT        0.97     SC        1.06     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 297 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.93     HH        1.05     HN        0.88     
!   KB        1.00*    KK        1.07     KP        0.99     LA        0.94     
!   MK        1.10     NL        0.98     NY        1.03     OV        0.96     
!   PT        0.94     SC        1.03     WZ        0.82     
! 
!  A total of 96 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    HH        0.00*    HN        0.00*    
!   KB        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
!  A total of 96 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    HH        0.97     HN        1.38     
!   KB        0.89     KK        0.99     KP        0.96     LA        1.00*    
!   MK        1.06     NL        1.00*    NY        1.03     OV        1.05     
!   PT        1.00*    SC        1.00*    WZ        0.95     
! 
!  A total of 57 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        0.97     HH        1.00*    HN        0.95     
!   KB        1.00*    KK        1.00*    KP        0.98     LA        1.01     
!   MK        1.00*    NL        0.98     NY        1.00*    OV        0.95     
!   PT        0.97     SC        1.03     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 291 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.98     HH        1.08     HN        0.88     
!   KB        1.00*    KK        1.09     KP        0.98     LA        0.98     
!   MK        1.11     NL        0.96     NY        1.04     OV        0.97     
!   PT        0.94     SC        1.09     WZ        0.76     
! 
!  A total of 99 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    HH        0.00*    HN        0.00*    
!   KB        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
!  A total of 99 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    HH        1.03     HN        1.36     
!   KB        0.95     KK        1.04     KP        1.02     LA        1.00*    
!   MK        1.05     NL        1.00*    NY        1.05     OV        0.99     
!   PT        1.00*    SC        1.00*    WZ        0.91     
! 
!  A total of 63 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        0.99     HH        1.00*    HN        0.95     
!   KB        1.00*    KK        1.00*    KP        0.98     LA        0.97     
!   MK        1.00*    NL        1.01     NY        1.00*    OV        0.95     
!   PT        0.95     SC        1.09     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 300 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.06     FD        0.97     HH        1.29     HN        0.86     
!   KB        1.00*    KK        1.00     KP        1.01     LA        0.94     
!   MK        1.14     NL        0.98     NY        1.12     OV        0.99     
!   PT        0.96     SC        1.10     WZ        0.80     
! 
!  A total of 99 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    HH        0.00*    HN        0.00*    
!   KB        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
!  A total of 204 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    HH        0.85     HN        1.19     
!   KB        1.11     KK        1.06     KP        1.00     LA        1.00*    
!   MK        1.01     NL        1.00*    NY        1.17     OV        1.05     
!   PT        1.00*    SC        1.00*    WZ        1.06     
! 
!  A total of 60 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        0.98     HH        1.00*    HN        1.00     
!   KB        1.00*    KK        1.00*    KP        1.00     LA        0.99     
!   MK        1.00*    NL        1.00     NY        1.00*    OV        0.97     
!   PT        0.95     SC        1.04     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.120843Jy  sigma=0.001142
! Fit after  self-cal, rms=0.119775Jy  sigma=0.001117
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.6709 mas, bmaj=0.8486 mas, bpa=13.08 degrees
! Estimated noise=634.054 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.00700912 Jy
! Component: 100  -  total flux cleaned = 0.0081591 Jy
! Total flux subtracted in 100 components = 0.0081591 Jy
! Clean residual min=-0.005228 max=0.006459 Jy/beam
! Clean residual mean=-0.000012 rms=0.001252 Jy/beam
! Combined flux in latest and established models = 0.409209 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.409209 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.119291Jy  sigma=0.001113
! Fit after  self-cal, rms=0.119343Jy  sigma=0.001112
! 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 (-1.7, -1.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00631007 Jy
! Component: 100  -  total flux cleaned = 0.00705013 Jy
! Total flux subtracted in 100 components = 0.00705013 Jy
! Clean residual min=-0.004896 max=0.005719 Jy/beam
! Clean residual mean=-0.000009 rms=0.001152 Jy/beam
! Combined flux in latest and established models = 0.416259 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 51 components and 0.416259 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.118902Jy  sigma=0.001108
! Fit after  self-cal, rms=0.115311Jy  sigma=0.001072
! Inverting map and beam 
! Estimated beam: bmin=0.6681 mas, bmaj=0.8496 mas, bpa=13.22 degrees
! Estimated noise=635.305 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.00517862 Jy
! Component: 100  -  total flux cleaned = 0.00672524 Jy
! Total flux subtracted in 100 components = 0.00672524 Jy
! Clean residual min=-0.004034 max=0.004973 Jy/beam
! Clean residual mean=-0.000006 rms=0.000922 Jy/beam
! Combined flux in latest and established models = 0.422984 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 58 components and 0.422984 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.115004Jy  sigma=0.001069
! Fit after  self-cal, rms=0.114978Jy  sigma=0.001069
! Inverting map 
! Added new window around map position (-2.9, -5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00430263 Jy
! Component: 100  -  total flux cleaned = 0.00485063 Jy
! Total flux subtracted in 100 components = 0.00485063 Jy
! Clean residual min=-0.003808 max=0.003852 Jy/beam
! Clean residual mean=-0.000003 rms=0.000864 Jy/beam
! Combined flux in latest and established models = 0.427835 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 67 components and 0.427835 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.114731Jy  sigma=0.001067
! Fit after  self-cal, rms=0.114699Jy  sigma=0.001067
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1909+161_X
! Writing UV FITS file: 1909+161_X.uvf
! Writing 67 model components to file: 1909+161_X.mod
! wwins: Wrote 4 windows to 1909+161_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6681 x 0.8496 at 13.22 degrees (North through East)
! Clean map  min=-0.0035732  max=0.29844 Jy/beam
! Writing clean map to FITS file: 1909+161_X.fits
! Writing difmap environment to: 1909+161_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1909+161_X]
device 1909+161_Xuv.ps/vps,1,2
! Attempting to open device: '1909+161_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1909+161_Xim.ps/vps
! Attempting to open device: '1909+161_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.6681 mas, bmaj=0.8496 mas, bpa=13.22 degrees
! Estimated noise=635.305 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6681 x 0.8496 at 13.22 degrees (North through East)
! Clean map  min=-0.0035732  max=0.29844 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.1]
quit
! Quitting program
! Log file 1909+161_X.log closed on Tue Aug  7 10:23:58 2007