! Started logfile: 1308+326_X.log on Thu Apr 13 13:11:57 2000
observe 1308+326_X.edt
! Reading UV FITS file: 1308+326_X.edt
! AN table 1: 31 integrations on 66 of 66 possible baselines.
! AN table 2: 23 integrations on 55 of 55 possible baselines.
! AN table 3: 88 integrations on 116 of 120 possible baselines.
! AN table 4: 9 integrations on 3 of 3 possible baselines.
! Apparent sampling: 0.275137 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1308+326
! 
! 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 5578 lines of history.
! 
! Reading 14908 visibilities.
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 307 telescope corrections were flagged in sub-array 1.
!  A total of 150 telescope corrections were flagged in sub-array 2.
!  A total of 947 telescope corrections were flagged in sub-array 3.
!  A total of 15 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 312 telescope corrections were flagged in sub-array 1.
!  A total of 150 telescope corrections were flagged in sub-array 2.
!  A total of 982 telescope corrections were flagged in sub-array 3.
!  A total of 15 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 307 telescope corrections were flagged in sub-array 1.
!  A total of 150 telescope corrections were flagged in sub-array 2.
!  A total of 982 telescope corrections were flagged in sub-array 3.
!  A total of 15 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 307 telescope corrections were flagged in sub-array 1.
!  A total of 150 telescope corrections were flagged in sub-array 2.
!  A total of 982 telescope corrections were flagged in sub-array 3.
!  A total of 15 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.784490Jy  sigma=5.655717
! Fit after  self-cal, rms=0.782316Jy  sigma=5.642841
! 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.6256 mas, bmaj=0.9741 mas, bpa=-9.552 degrees
! Estimated noise=1.49092 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.871619 Jy
! Total flux subtracted in 50 components = 0.871619 Jy
! Clean residual min=-0.071884 max=0.447763 Jy/beam
! Clean residual mean=-0.000304 rms=0.022813 Jy/beam
! Combined flux in latest and established models = 0.871619 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 3 model components to the UV plane model.
! The established model now contains 3 components and 0.871619 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.838789Jy  sigma=6.049727
! Fit after  self-cal, rms=0.838545Jy  sigma=6.047956
! Inverting map 
! Added new window around map position (-0.9, 0.3).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.404886 Jy
! Total flux subtracted in 50 components = 0.404886 Jy
! Clean residual min=-0.058431 max=0.216909 Jy/beam
! Clean residual mean=-0.000289 rms=0.015587 Jy/beam
! Combined flux in latest and established models = 1.2765 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 12 components and 1.27651 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.580016Jy  sigma=4.181324
! Fit after  self-cal, rms=0.562238Jy  sigma=4.052040
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.254995 Jy
! Total flux subtracted in 50 components = 0.254995 Jy
! Clean residual min=-0.033745 max=0.122504 Jy/beam
! Clean residual mean=-0.000278 rms=0.010325 Jy/beam
! Combined flux in latest and established models = 1.5315 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.5315 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.406311Jy  sigma=2.926031
! Fit after  self-cal, rms=0.398609Jy  sigma=2.870336
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.16354 Jy
! Total flux subtracted in 50 components = 0.16354 Jy
! Clean residual min=-0.024795 max=0.079604 Jy/beam
! Clean residual mean=-0.000271 rms=0.007416 Jy/beam
! Combined flux in latest and established models = 1.69504 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 21 components and 1.69504 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.306253Jy  sigma=2.203466
! Fit after  self-cal, rms=0.302930Jy  sigma=2.179638
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.106977 Jy
! Total flux subtracted in 50 components = 0.106977 Jy
! Clean residual min=-0.021724 max=0.055893 Jy/beam
! Clean residual mean=-0.000266 rms=0.005844 Jy/beam
! Combined flux in latest and established models = 1.80202 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 34 components and 1.80202 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.249704Jy  sigma=1.795407
! Fit after  self-cal, rms=0.248015Jy  sigma=1.783449
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0748872 Jy
! Total flux subtracted in 50 components = 0.0748872 Jy
! Clean residual min=-0.018425 max=0.040575 Jy/beam
! Clean residual mean=-0.000262 rms=0.004941 Jy/beam
! Combined flux in latest and established models = 1.87691 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 46 components and 1.87691 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.216097Jy  sigma=1.553154
! Fit after  self-cal, rms=0.215257Jy  sigma=1.547304
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.05442 Jy
! Total flux subtracted in 50 components = 0.05442 Jy
! Clean residual min=-0.016163 max=0.030087 Jy/beam
! Clean residual mean=-0.000260 rms=0.004414 Jy/beam
! Combined flux in latest and established models = 1.93133 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 53 components and 1.93133 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.195548Jy  sigma=1.405206
! Fit after  self-cal, rms=0.195067Jy  sigma=1.401909
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0406534 Jy
! Total flux subtracted in 50 components = 0.0406534 Jy
! Clean residual min=-0.015292 max=0.022952 Jy/beam
! Clean residual mean=-0.000258 rms=0.004101 Jy/beam
! Combined flux in latest and established models = 1.97198 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 63 components and 1.97198 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.182663Jy  sigma=1.312573
! Fit after  self-cal, rms=0.182392Jy  sigma=1.310745
! 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.181 mas, bpa=-11.28 degrees
! Estimated noise=0.9526 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.0609981 Jy
! Component: 100  -  total flux cleaned = 0.0968822 Jy
! Total flux subtracted in 100 components = 0.0968822 Jy
! Clean residual min=-0.018536 max=0.020682 Jy/beam
! Clean residual mean=0.000143 rms=0.005029 Jy/beam
! Combined flux in latest and established models = 2.06886 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 36 model components to the UV plane model.
! The established model now contains 86 components and 2.06886 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.162649Jy  sigma=1.169520
! Fit after  self-cal, rms=0.162297Jy  sigma=1.167121
! 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:
!   BR        1.00     FD        0.98     GC        1.05     HN        1.16     
!   KK        0.96     KP        1.17     LA        1.01     MK        1.03     
!   NL        1.03     NY        0.99     OV        1.00     PT        0.82     
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.98     GC        1.06     HN        1.01     KK        0.98     
!   KP        0.97     LA        0.98     MK        1.01     OV        1.01     
!   PT        0.79     SC        1.05     WF        0.99     
! 
!  A total of 27 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.99     GC        1.02     HN        1.00     
!   KK        0.97     KP        0.96     LA        0.97     MC        1.00     
!   MK        1.02     NL        0.98     ON        0.99     OV        1.00     
!   PT        1.07     SC        0.99     WF        0.99     GN        1.13     
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   GC        0.00*    MC        0.00*    ON        0.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.98     GC        1.00*    HN        1.18     
!   KK        0.99     KP        1.17     LA        1.01     MK        1.03     
!   NL        1.02     NY        1.00     OV        0.99     PT        0.82     
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.98     GC        1.07     HN        1.01     KK        0.97     
!   KP        0.97     LA        0.97     MK        1.02     OV        1.01     
!   PT        0.79     SC        1.06     WF        0.97     
! 
!  A total of 27 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.98     GC        1.01     HN        1.01     
!   KK        0.96     KP        0.97     LA        0.97     MC        0.99     
!   MK        1.02     NL        0.98     ON        1.02     OV        0.99     
!   PT        1.06     SC        0.99     WF        0.98     GN        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   GC        0.00*    MC        0.00*    ON        0.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.98     GC        1.03     HN        1.16     
!   KK        0.95     KP        1.19     LA        1.01     MK        1.03     
!   NL        1.03     NY        0.97     OV        1.00     PT        0.81     
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.98     GC        1.03     HN        1.00     KK        0.98     
!   KP        0.96     LA        0.97     MK        0.99     OV        1.01     
!   PT        0.77     SC        1.06     WF        0.99     
! 
!  A total of 27 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.98     GC        1.00     HN        1.00     
!   KK        0.96     KP        0.97     LA        0.97     MC        0.99     
!   MK        1.01     NL        0.98     ON        0.98     OV        0.99     
!   PT        1.07     SC        0.97     WF        1.00     GN        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   GC        0.00*    MC        0.00*    ON        0.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.98     GC        0.99     HN        1.17     
!   KK        0.98     KP        1.16     LA        1.00     MK        1.02     
!   NL        1.02     NY        0.96     OV        1.00     PT        0.81     
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.98     GC        1.04     HN        1.02     KK        0.97     
!   KP        0.96     LA        0.96     MK        0.99     OV        1.00     
!   PT        0.77     SC        1.06     WF        0.98     
! 
!  A total of 27 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.98     GC        1.00     HN        1.00     
!   KK        0.95     KP        0.96     LA        0.96     MC        1.00     
!   MK        1.00     NL        0.98     ON        0.96     OV        0.99     
!   PT        1.07     SC        0.97     WF        1.00     GN        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   GC        0.00*    MC        0.00*    ON        0.00*    
! 
! 
! Fit before self-cal, rms=0.162297Jy  sigma=1.167121
! Fit after  self-cal, rms=0.098796Jy  sigma=0.711410
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.7401 mas, bmaj=1.188 mas, bpa=-12.03 degrees
! Estimated noise=0.947265 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.00550088 Jy
! Component: 100  -  total flux cleaned = 0.00692119 Jy
! Total flux subtracted in 100 components = 0.00692119 Jy
! Clean residual min=-0.005260 max=0.006505 Jy/beam
! Clean residual mean=0.000369 rms=0.001362 Jy/beam
! Combined flux in latest and established models = 2.07578 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 95 components and 2.07578 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.098188Jy  sigma=0.706842
! Fit after  self-cal, rms=0.098080Jy  sigma=0.706009
! 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.00086788 Jy
! Component: 100  -  total flux cleaned = 0.000992056 Jy
! Total flux subtracted in 100 components = 0.000992056 Jy
! Clean residual min=-0.005153 max=0.006424 Jy/beam
! Clean residual mean=0.000364 rms=0.001337 Jy/beam
! Combined flux in latest and established models = 2.07677 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 100 components and 2.07677 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.097827Jy  sigma=0.704104
! Fit after  self-cal, rms=0.093772Jy  sigma=0.673999
! Inverting map and beam 
! Estimated beam: bmin=0.739 mas, bmaj=1.186 mas, bpa=-12.12 degrees
! Estimated noise=0.947556 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)
! Added new window around map position (-6.5, 1.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00599008 Jy
! Component: 100  -  total flux cleaned = 0.0102589 Jy
! Total flux subtracted in 100 components = 0.0102589 Jy
! Clean residual min=-0.003464 max=0.004114 Jy/beam
! Clean residual mean=0.000244 rms=0.000855 Jy/beam
! Combined flux in latest and established models = 2.08703 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 116 components and 2.08703 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.093380Jy  sigma=0.671023
! Fit after  self-cal, rms=0.093278Jy  sigma=0.670239
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1308+326_X
! Writing UV FITS file: 1308+326_X.uvf
! Writing 116 model components to file: 1308+326_X.mod
! wwins: Wrote 3 windows to 1308+326_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.739 x 1.186 at -12.12 degrees (North through East)
! Clean map  min=-0.0032459  max=1.0843 Jy/beam
! Writing clean map to FITS file: 1308+326_X.fits
! Writing difmap environment to: 1308+326_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1308+326_Xuv.ps/vps,1,2
! Attempting to open device: '1308+326_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1308+326_Xim.ps/vps
! Attempting to open device: '1308+326_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.739 mas, bmaj=1.186 mas, bpa=-12.12 degrees
! Estimated noise=0.947556 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.739 x 1.186 at -12.12 degrees (North through East)
! Clean map  min=-0.0032459  max=1.0843 Jy/beam
quit
! Quitting program
! Log file 1308+326_X.log closed on Thu Apr 13 13:12:49 2000