! Started logfile: 1923+210_X.log on Wed Oct 31 13:10:39 2007
observe 1923+210_X.edt
! Reading UV FITS file: 1923+210_X.edt
! AN table 1: 69 integrations on 105 of 105 possible baselines.
! AN table 2: 19 integrations on 105 of 105 possible baselines.
! AN table 3: 94 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.287964 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1923+210
! 
! 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 977 lines of history.
! 
! Reading 22012 visibilities.
![@gonzo7-0.1 1923+210_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 499 telescope corrections were flagged in sub-array 1.
!  A total of 246 telescope corrections were flagged in sub-array 2.
!  A total of 812 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 528 telescope corrections were flagged in sub-array 1.
!  A total of 285 telescope corrections were flagged in sub-array 2.
!  A total of 812 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 499 telescope corrections were flagged in sub-array 1.
!  A total of 246 telescope corrections were flagged in sub-array 2.
!  A total of 812 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 502 telescope corrections were flagged in sub-array 1.
!  A total of 246 telescope corrections were flagged in sub-array 2.
!  A total of 812 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.707064Jy  sigma=0.009376
! Fit after  self-cal, rms=0.706970Jy  sigma=0.009376
! 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.5417 mas, bmaj=1.025 mas, bpa=14.73 degrees
! Estimated noise=916.892 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.808698 Jy
! Total flux subtracted in 50 components = 0.808698 Jy
! Clean residual min=-0.084631 max=0.310888 Jy/beam
! Clean residual mean=0.000565 rms=0.028899 Jy/beam
! Combined flux in latest and established models = 0.808698 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 0.808698 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.786642Jy  sigma=0.010454
! Fit after  self-cal, rms=0.785515Jy  sigma=0.010444
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.335524 Jy
! Total flux subtracted in 50 components = 0.335524 Jy
! Clean residual min=-0.068178 max=0.245364 Jy/beam
! Clean residual mean=0.000396 rms=0.021185 Jy/beam
! Combined flux in latest and established models = 1.14422 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 10 components and 1.14422 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.578711Jy  sigma=0.007643
! Fit after  self-cal, rms=0.578089Jy  sigma=0.007637
! Inverting map 
! Added new window around map position (-1.1, -0.3).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.2267 Jy
! Total flux subtracted in 50 components = 0.2267 Jy
! Clean residual min=-0.059624 max=0.180887 Jy/beam
! Clean residual mean=0.000276 rms=0.016121 Jy/beam
! Combined flux in latest and established models = 1.37092 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 17 components and 1.37092 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.456246Jy  sigma=0.005964
! Fit after  self-cal, rms=0.446668Jy  sigma=0.005851
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.151401 Jy
! Total flux subtracted in 50 components = 0.151401 Jy
! Clean residual min=-0.048049 max=0.122226 Jy/beam
! Clean residual mean=0.000200 rms=0.012470 Jy/beam
! Combined flux in latest and established models = 1.52232 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 29 components and 1.52232 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.373506Jy  sigma=0.004866
! Fit after  self-cal, rms=0.368124Jy  sigma=0.004802
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.109465 Jy
! Total flux subtracted in 50 components = 0.109465 Jy
! Clean residual min=-0.040117 max=0.085045 Jy/beam
! Clean residual mean=0.000147 rms=0.010167 Jy/beam
! Combined flux in latest and established models = 1.63179 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 42 components and 1.63179 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.321384Jy  sigma=0.004187
! Fit after  self-cal, rms=0.318036Jy  sigma=0.004145
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0817424 Jy
! Total flux subtracted in 50 components = 0.0817424 Jy
! Clean residual min=-0.036519 max=0.062432 Jy/beam
! Clean residual mean=0.000107 rms=0.008677 Jy/beam
! Combined flux in latest and established models = 1.71353 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 49 components and 1.71353 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.287320Jy  sigma=0.003762
! Fit after  self-cal, rms=0.285708Jy  sigma=0.003740
! 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.7652 mas, bmaj=1.358 mas, bpa=9.26 degrees
! Estimated noise=437.401 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.11213 Jy
! Component: 100  -  total flux cleaned = 0.175414 Jy
! Total flux subtracted in 100 components = 0.175414 Jy
! Clean residual min=-0.036266 max=0.058696 Jy/beam
! Clean residual mean=-0.000081 rms=0.011135 Jy/beam
! Combined flux in latest and established models = 1.88894 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 37 model components to the UV plane model.
! The established model now contains 74 components and 1.88894 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.241317Jy  sigma=0.003257
! Fit after  self-cal, rms=0.240288Jy  sigma=0.003241
! 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 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.09     HH        1.00*    KB        1.00     KP        0.85     
!   LA        1.00     MK        1.03     NL        1.19     NY        1.02     
!   OV        1.02     PT        0.98     SC        1.07     TC        1.00*    
!   WF        0.99     WZ        1.00*    BR        0.97     
! 
!  A total of 39 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.00*    HH        0.00*    KB        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*    TC        0.00*    
!   WF        0.00*    WZ        0.00*    BR        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.01     HH        1.03     KB        1.00*    KP        0.88     
!   LA        1.05     MK        1.00*    NL        1.01     NY        1.00*    
!   OV        1.00*    PT        0.93     SC        0.99     TC        1.00*    
!   WF        0.90     WZ        1.00*    BR        1.01     
! 
! 
! Correcting IF 2.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.10     HH        1.00*    KB        7.74     KP        0.80     
!   LA        1.00     MK        1.03     NL        1.17     NY        1.01     
!   OV        1.01     PT        0.98     SC        1.12     TC        1.00*    
!   WF        1.02     WZ        1.00*    BR        0.97     
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.00*    HH        0.00*    KB        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*    TC        0.00*    
!   WF        0.00*    WZ        0.00*    BR        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.99     HH        0.99     KB        1.00*    KP        0.89     
!   LA        1.03     MK        1.00*    NL        0.98     NY        1.00*    
!   OV        1.00*    PT        0.93     SC        0.97     TC        1.00*    
!   WF        0.97     WZ        1.00*    BR        1.02     
! 
! 
! Correcting IF 3.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.09     HH        1.00*    KB        1.01     KP        0.83     
!   LA        1.00     MK        0.97     NL        1.16     NY        1.05     
!   OV        1.00     PT        0.98     SC        1.10     TC        1.00*    
!   WF        0.98     WZ        1.00*    BR        0.95     
! 
!  A total of 39 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.00*    HH        0.00*    KB        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*    TC        0.00*    
!   WF        0.00*    WZ        0.00*    BR        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.99     HH        1.00     KB        1.00*    KP        0.88     
!   LA        1.03     MK        1.00*    NL        1.01     NY        1.00*    
!   OV        1.00*    PT        0.92     SC        0.98     TC        1.00*    
!   WF        1.04     WZ        1.00*    BR        1.06     
! 
! 
! Correcting IF 4.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.10     HH        1.00*    KB        1.00     KP        0.80     
!   LA        1.00     MK        0.95     NL        1.14     NY        1.05     
!   OV        1.02     PT        0.98     SC        1.07     TC        1.00*    
!   WF        1.03     WZ        1.00*    BR        0.97     
! 
!  A total of 39 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.00*    HH        0.00*    KB        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*    TC        0.00*    
!   WF        0.00*    WZ        0.00*    BR        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.00     HH        1.31     KB        1.00*    KP        0.89     
!   LA        1.04     MK        1.00*    NL        1.01     NY        1.00*    
!   OV        1.00*    PT        0.90     SC        1.02     TC        1.00*    
!   WF        1.04     WZ        1.00*    BR        1.03     
! 
! 
! Fit before self-cal, rms=0.240288Jy  sigma=0.003241
! Fit after  self-cal, rms=0.225525Jy  sigma=0.002515
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.792 mas, bmaj=1.379 mas, bpa=8.83 degrees
! Estimated noise=440.91 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.0179952 Jy
! Component: 100  -  total flux cleaned = 0.0180425 Jy
! Total flux subtracted in 100 components = 0.0180425 Jy
! Clean residual min=-0.015408 max=0.026152 Jy/beam
! Clean residual mean=0.000023 rms=0.004482 Jy/beam
! Combined flux in latest and established models = 1.90699 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 78 components and 1.90699 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223065Jy  sigma=0.002508
! Fit after  self-cal, rms=0.222998Jy  sigma=0.002503
! 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 (-5.3, -2.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0251305 Jy
! Component: 100  -  total flux cleaned = 0.0351035 Jy
! Total flux subtracted in 100 components = 0.0351035 Jy
! Clean residual min=-0.012984 max=0.014926 Jy/beam
! Clean residual mean=-0.000067 rms=0.003722 Jy/beam
! Combined flux in latest and established models = 1.94209 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 92 components and 1.94209 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.220190Jy  sigma=0.002468
! Fit after  self-cal, rms=0.155872Jy  sigma=0.001479
! Inverting map and beam 
! Estimated beam: bmin=0.787 mas, bmaj=1.376 mas, bpa=8.866 degrees
! Estimated noise=440.513 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.0138883 Jy
! Component: 100  -  total flux cleaned = 0.0192702 Jy
! Total flux subtracted in 100 components = 0.0192702 Jy
! Clean residual min=-0.010288 max=0.013461 Jy/beam
! Clean residual mean=0.000066 rms=0.002585 Jy/beam
! Combined flux in latest and established models = 1.96136 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 103 components and 1.96136 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.154568Jy  sigma=0.001459
! Fit after  self-cal, rms=0.154501Jy  sigma=0.001457
! Inverting map 
! Added new window around map position (-8, -2.1).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00997057 Jy
! Component: 100  -  total flux cleaned = 0.0129241 Jy
! Total flux subtracted in 100 components = 0.0129241 Jy
! Clean residual min=-0.009768 max=0.012228 Jy/beam
! Clean residual mean=0.000034 rms=0.002325 Jy/beam
! Combined flux in latest and established models = 1.97428 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 112 components and 1.97428 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.153429Jy  sigma=0.001440
! Fit after  self-cal, rms=0.153416Jy  sigma=0.001439
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1923+210_X
! Writing UV FITS file: 1923+210_X.uvf
! Writing 112 model components to file: 1923+210_X.mod
! wwins: Wrote 4 windows to 1923+210_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.787 x 1.376 at 8.866 degrees (North through East)
! Clean map  min=-0.0094733  max=1.0006 Jy/beam
! Writing clean map to FITS file: 1923+210_X.fits
! Writing difmap environment to: 1923+210_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1923+210_X]
device 1923+210_Xuv.ps/vps,1,2
! Attempting to open device: '1923+210_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1923+210_Xim.ps/vps
! Attempting to open device: '1923+210_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.787 mas, bmaj=1.376 mas, bpa=8.866 degrees
! Estimated noise=440.513 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.787 x 1.376 at 8.866 degrees (North through East)
! Clean map  min=-0.0094733  max=1.0006 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.1]
quit
! Quitting program
! Log file 1923+210_X.log closed on Wed Oct 31 13:11:06 2007