! Started logfile: 1749+096_S.log on Tue Jan 27 09:02:24 1998
observe 1749+096_S.cal
! Reading UV FITS file: 1749+096_S.cal
! AN table 1: 110 integrations on 89 of 91 possible baselines.
! AN table 2: 43 integrations on 50 of 66 possible baselines.
! AN table 3: 37 integrations on 36 of 36 possible baselines.
! AN table 4: 5 integrations on 3 of 3 possible baselines.
! Apparent sampling: 0.386844 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1749+096
! 
! 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  2.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 778 lines of history.
! 
! Reading 20560 visibilities.
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.5
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.500x0.500 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 850 telescope corrections were flagged in sub-array 1.
!  A total of 370 telescope corrections were flagged in sub-array 2.
!  A total of 96 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 850 telescope corrections were flagged in sub-array 1.
!  A total of 370 telescope corrections were flagged in sub-array 2.
!  A total of 96 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 850 telescope corrections were flagged in sub-array 1.
!  A total of 370 telescope corrections were flagged in sub-array 2.
!  A total of 96 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 850 telescope corrections were flagged in sub-array 1.
!  A total of 370 telescope corrections were flagged in sub-array 2.
!  A total of 96 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.855209Jy  sigma=4.287379
! Fit after  self-cal, rms=0.855201Jy  sigma=4.287121
! 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=2.66 mas, bmaj=6.52 mas, bpa=-17.95 degrees
! Estimated noise=2.00053 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.35162 Jy
! Total flux subtracted in 50 components = 1.35162 Jy
! Clean residual min=-0.075837 max=0.377111 Jy/beam
! Clean residual mean=0.000332 rms=0.017438 Jy/beam
! Combined flux in latest and established models = 1.35162 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1.35162 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.523970Jy  sigma=2.605078
! Fit after  self-cal, rms=0.523970Jy  sigma=2.605078
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.300761 Jy
! Total flux subtracted in 50 components = 0.300761 Jy
! Clean residual min=-0.036700 max=0.105438 Jy/beam
! Clean residual mean=0.000126 rms=0.008028 Jy/beam
! Combined flux in latest and established models = 1.65238 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 1.65238 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.284068Jy  sigma=1.392778
! Fit after  self-cal, rms=0.284040Jy  sigma=1.392698
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.11108 Jy
! Total flux subtracted in 50 components = 0.11108 Jy
! Clean residual min=-0.033828 max=0.051213 Jy/beam
! Clean residual mean=0.000052 rms=0.006108 Jy/beam
! Combined flux in latest and established models = 1.76346 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 16 components and 1.76346 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.226296Jy  sigma=1.104141
! Fit after  self-cal, rms=0.226209Jy  sigma=1.103840
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0595929 Jy
! Total flux subtracted in 50 components = 0.0595929 Jy
! Clean residual min=-0.034484 max=0.038837 Jy/beam
! Clean residual mean=0.000012 rms=0.005481 Jy/beam
! Combined flux in latest and established models = 1.82306 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 32 components and 1.82306 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206764Jy  sigma=1.008694
! Fit after  self-cal, rms=0.206740Jy  sigma=1.008606
! Inverting map 
! Added new window around map position (13, 17.5).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0420891 Jy
! Total flux subtracted in 50 components = 0.0420891 Jy
! Clean residual min=-0.033978 max=0.035598 Jy/beam
! Clean residual mean=-0.000015 rms=0.005096 Jy/beam
! Combined flux in latest and established models = 1.86514 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 39 components and 1.86514 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.199419Jy  sigma=0.973026
! Fit after  self-cal, rms=0.199243Jy  sigma=0.972118
! 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=3.421 mas, bmaj=9.045 mas, bpa=-15.31 degrees
! Estimated noise=1.07096 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.044617 Jy
! Component: 100  -  total flux cleaned = 0.0636218 Jy
! Total flux subtracted in 100 components = 0.0636218 Jy
! Clean residual min=-0.021668 max=0.018451 Jy/beam
! Clean residual mean=-0.000159 rms=0.004610 Jy/beam
! Combined flux in latest and established models = 1.92877 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 24 model components to the UV plane model.
! The established model now contains 53 components and 1.92877 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.189202Jy  sigma=0.932636
! Fit after  self-cal, rms=0.189163Jy  sigma=0.932527
! 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        0.96     FD        0.97     GC        0.95     GN        0.97     
!   HN        0.99     KK        1.01     KP        0.97     LA        0.96     
!   MK        0.99     NL        0.97     ON        1.03     OV        0.96     
!   PT        0.97     WF        0.99     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        1.05     GC        1.05     GN        1.00*    
!   KK        1.11     KP        1.05     LA        1.05     MK        1.11     
!   NL        1.06     OV        1.05     PT        1.05     WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.01     GN        0.99     HN        1.01     
!   KP        1.01     LA        0.99     NL        0.99     PT        1.00     
!   WF        1.02     
! 
!  Telescope amplitude corrections in sub-array 4:
!   KK        0.00*    MK        0.00*    OV        0.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.97     GC        0.96     GN        0.98     
!   HN        1.00     KK        1.02     KP        0.98     LA        0.96     
!   MK        1.00     NL        0.97     ON        1.03     OV        0.97     
!   PT        0.97     WF        0.99     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        1.06     GC        1.06     GN        1.00*    
!   KK        1.13     KP        1.06     LA        1.06     MK        1.13     
!   NL        1.07     OV        1.06     PT        1.06     WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.01     GN        0.98     HN        1.01     
!   KP        1.00     LA        0.99     NL        0.99     PT        0.99     
!   WF        1.01     
! 
!  Telescope amplitude corrections in sub-array 4:
!   KK        0.00*    MK        0.00*    OV        0.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.98     GC        0.97     GN        0.99     
!   HN        1.01     KK        1.03     KP        0.99     LA        0.98     
!   MK        1.01     NL        0.99     ON        1.04     OV        0.98     
!   PT        0.98     WF        1.01     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.06     FD        1.07     GC        1.07     GN        1.00*    
!   KK        1.13     KP        1.07     LA        1.07     MK        1.14     
!   NL        1.08     OV        1.07     PT        1.07     WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.02     GN        1.00     HN        1.03     
!   KP        1.02     LA        1.00     NL        1.01     PT        1.01     
!   WF        1.03     
! 
!  Telescope amplitude corrections in sub-array 4:
!   KK        0.00*    MK        0.00*    OV        0.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.97     GC        0.97     GN        0.99     
!   HN        1.01     KK        1.02     KP        0.98     LA        0.97     
!   MK        1.00     NL        0.99     ON        1.02     OV        0.97     
!   PT        0.97     WF        1.01     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.03     GC        1.02     GN        1.00*    
!   KK        1.09     KP        1.03     LA        1.02     MK        1.09     
!   NL        1.04     OV        1.03     PT        1.03     WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        1.03     GN        1.01     HN        1.04     
!   KP        1.02     LA        1.01     NL        1.02     PT        1.01     
!   WF        1.05     
! 
!  Telescope amplitude corrections in sub-array 4:
!   KK        0.00*    MK        0.00*    OV        0.00*    
! 
! 
! Fit before self-cal, rms=0.189163Jy  sigma=0.932527
! Fit after  self-cal, rms=0.160590Jy  sigma=0.756839
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.429 mas, bmaj=9.092 mas, bpa=-15.15 degrees
! Estimated noise=1.06786 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 (5.5, 8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0153264 Jy
! Component: 100  -  total flux cleaned = 0.0141009 Jy
! Total flux subtracted in 100 components = 0.0141009 Jy
! Clean residual min=-0.008756 max=0.006527 Jy/beam
! Clean residual mean=0.000083 rms=0.001752 Jy/beam
! Combined flux in latest and established models = 1.94287 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 70 components and 1.94287 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.159208Jy  sigma=0.749375
! Fit after  self-cal, rms=0.159135Jy  sigma=0.748976
! 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 = 1.59027e-06 Jy
! Component: 100  -  total flux cleaned = -0.000872095 Jy
! Total flux subtracted in 100 components = -0.000872095 Jy
! Clean residual min=-0.009221 max=0.006692 Jy/beam
! Clean residual mean=0.000089 rms=0.001708 Jy/beam
! Combined flux in latest and established models = 1.94199 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 76 components and 1.94199 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.158821Jy  sigma=0.747254
! Fit after  self-cal, rms=0.151932Jy  sigma=0.707506
! Inverting map and beam 
! Estimated beam: bmin=3.432 mas, bmaj=9.101 mas, bpa=-15.12 degrees
! Estimated noise=1.06724 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.000377687 Jy
! Component: 100  -  total flux cleaned = -0.00059692 Jy
! Total flux subtracted in 100 components = -0.00059692 Jy
! Clean residual min=-0.008723 max=0.005121 Jy/beam
! Clean residual mean=0.000056 rms=0.001249 Jy/beam
! Combined flux in latest and established models = 1.9414 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 83 components and 1.9414 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.151563Jy  sigma=0.705514
! Fit after  self-cal, rms=0.151551Jy  sigma=0.705449
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1749+096_S
! Writing UV FITS file: 1749+096_S.uvf
! Writing 83 model components to file: 1749+096_S.mod
! wwins: Wrote 3 windows to 1749+096_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.432 x 9.101 at -15.12 degrees (North through East)
! Clean map  min=-0.0076651  max=1.7798 Jy/beam
! Writing clean map to FITS file: 1749+096_S.fits
! Writing difmap environment to: 1749+096_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1749+096_Suv.ps/vps,1,2
! Attempting to open device: '1749+096_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1749+096_Sim.ps/vps
! Attempting to open device: '1749+096_Sim.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=3.432 mas, bmaj=9.101 mas, bpa=-15.12 degrees
! Estimated noise=1.06724 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.432 x 9.101 at -15.12 degrees (North through East)
! Clean map  min=-0.0076651  max=1.7798 Jy/beam
quit
! Quitting program
! Log file 1749+096_S.log closed on Tue Jan 27 09:07:06 1998