! Started logfile: 1919+086_S.log on Mon Feb  2 20:34:35 1998
observe 1919+086_S.edt
! Reading UV FITS file: 1919+086_S.edt
! AN table 1: 45 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.815309 visibilities/baseline/integration-bin.
! Found source: 1919+086
! 
! 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 784 lines of history.
! 
! Reading 6604 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 93 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 93 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 93 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 93 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.820300Jy  sigma=4.036532
! Fit after  self-cal, rms=0.820196Jy  sigma=4.036033
! 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.418 mas, bmaj=12.95 mas, bpa=-14.22 degrees
! Estimated noise=3.27197 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.130987 Jy
! Total flux subtracted in 50 components = 0.130987 Jy
! Clean residual min=-0.018145 max=0.045743 Jy/beam
! Clean residual mean=0.000022 rms=0.006336 Jy/beam
! Combined flux in latest and established models = 0.130987 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 0.130987 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.130831Jy  sigma=0.644469
! Fit after  self-cal, rms=0.130828Jy  sigma=0.644449
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0517525 Jy
! Total flux subtracted in 50 components = 0.0517525 Jy
! Clean residual min=-0.013482 max=0.025197 Jy/beam
! Clean residual mean=0.000017 rms=0.004241 Jy/beam
! Combined flux in latest and established models = 0.182739 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 11 components and 0.182739 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.109567Jy  sigma=0.539366
! Fit after  self-cal, rms=0.109518Jy  sigma=0.539124
! 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=2.9 mas, bmaj=12.91 mas, bpa=-14.4 degrees
! Estimated noise=1.82645 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.0400371 Jy
! Component: 100  -  total flux cleaned = 0.0631517 Jy
! Total flux subtracted in 100 components = 0.0631517 Jy
! Clean residual min=-0.007614 max=0.013011 Jy/beam
! Clean residual mean=0.000029 rms=0.002559 Jy/beam
! Combined flux in latest and established models = 0.245891 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 34 model components to the UV plane model.
! The established model now contains 40 components and 0.245891 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.095408Jy  sigma=0.469115
! Fit after  self-cal, rms=0.095379Jy  sigma=0.468970
! 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 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.07     FD        0.98     HN        1.01     KK        1.05     
!   KP        0.97     LA        0.82     MK        1.08     NL        0.85     
!   OV        0.94     PT        0.91     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.10     FD        0.93     HN        0.98     KK        1.00     
!   KP        0.92     LA        0.91     MK        1.10     NL        0.92     
!   OV        0.94     PT        0.95     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.18     FD        0.95     HN        1.00     KK        1.03     
!   KP        0.97     LA        0.85     MK        1.14     NL        0.94     
!   OV        0.98     PT        0.94     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.13     FD        0.97     HN        1.00     KK        0.98     
!   KP        0.99     LA        0.93     MK        1.11     NL        0.94     
!   OV        0.93     PT        0.93     
! 
! 
! Fit before self-cal, rms=0.095379Jy  sigma=0.468970
! Fit after  self-cal, rms=0.088015Jy  sigma=0.451285
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.968 mas, bmaj=13.49 mas, bpa=-14.23 degrees
! Estimated noise=1.7472 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.00498968 Jy
! Component: 100  -  total flux cleaned = 0.00721013 Jy
! Total flux subtracted in 100 components = 0.00721013 Jy
! Clean residual min=-0.003489 max=0.003823 Jy/beam
! Clean residual mean=-0.000008 rms=0.001022 Jy/beam
! Combined flux in latest and established models = 0.253101 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 55 components and 0.253101 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.087753Jy  sigma=0.449996
! Fit after  self-cal, rms=0.087761Jy  sigma=0.449927
! 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.000296871 Jy
! Component: 100  -  total flux cleaned = 0.000225733 Jy
! Total flux subtracted in 100 components = 0.000225733 Jy
! Clean residual min=-0.003426 max=0.003779 Jy/beam
! Clean residual mean=-0.000008 rms=0.000996 Jy/beam
! Combined flux in latest and established models = 0.253327 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 62 components and 0.253327 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.087705Jy  sigma=0.449644
! Fit after  self-cal, rms=0.086855Jy  sigma=0.443546
! Inverting map and beam 
! Estimated beam: bmin=2.946 mas, bmaj=13.49 mas, bpa=-14.23 degrees
! Estimated noise=1.74606 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.00250766 Jy
! Component: 100  -  total flux cleaned = 0.00330917 Jy
! Total flux subtracted in 100 components = 0.00330917 Jy
! Clean residual min=-0.003135 max=0.003479 Jy/beam
! Clean residual mean=-0.000004 rms=0.000908 Jy/beam
! Combined flux in latest and established models = 0.256636 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 73 components and 0.256636 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.086785Jy  sigma=0.443183
! Fit after  self-cal, rms=0.086787Jy  sigma=0.443154
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1919+086_S
! Writing UV FITS file: 1919+086_S.uvf
! Writing 73 model components to file: 1919+086_S.mod
! wwins: Wrote 1 windows to 1919+086_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.946 x 13.49 at -14.23 degrees (North through East)
! Clean map  min=-0.0030513  max=0.17832 Jy/beam
! Writing clean map to FITS file: 1919+086_S.fits
! Writing difmap environment to: 1919+086_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1919+086_Suv.ps/vps,1,2
! Attempting to open device: '1919+086_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1919+086_Sim.ps/vps
! Attempting to open device: '1919+086_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=2.946 mas, bmaj=13.49 mas, bpa=-14.23 degrees
! Estimated noise=1.74606 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.946 x 13.49 at -14.23 degrees (North through East)
! Clean map  min=-0.0030513  max=0.17832 Jy/beam
quit
! Quitting program
! Log file 1919+086_S.log closed on Mon Feb  2 20:39:30 1998