! Started logfile: 1638+398_Q.log on Thu Aug  8 15:53:28 2002
observe 1638+398_Q.edt
! Reading UV FITS file: 1638+398_Q.edt
! AN table 1: 63 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.75097 visibilities/baseline/integration-bin.
! Found source: 1638+398
! 
! 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  4.29545e+10        8e+06          1        8e+06
!  02        2  4.30345e+10        8e+06          1        8e+06
!  03        3  4.32145e+10        8e+06          1        8e+06
!  04        4  4.33545e+10        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1885 lines of history.
! 
! Reading 8516 visibilities.
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.02
integer clean_niter
clean_niter = 100
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.0200x0.0200 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 181 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 178 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 160 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 123 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.626430Jy  sigma=3.595635
! Fit after  self-cal, rms=0.625516Jy  sigma=3.591552
! 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.1412 mas, bmaj=0.3149 mas, bpa=7.735 degrees
! Estimated noise=2.4961 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=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.312473 Jy
! Component: 100  -  total flux cleaned = 0.396222 Jy
! Total flux subtracted in 100 components = 0.396222 Jy
! Clean residual min=-0.023091 max=0.035786 Jy/beam
! Clean residual mean=-0.000022 rms=0.006560 Jy/beam
! Combined flux in latest and established models = 0.396222 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 10 components and 0.396222 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.237612Jy  sigma=1.348690
! Fit after  self-cal, rms=0.237548Jy  sigma=1.348328
! 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.172 mas, bmaj=0.3405 mas, bpa=5.702 degrees
! Estimated noise=1.53656 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=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0502534 Jy
! Component: 100  -  total flux cleaned = 0.0746153 Jy
! Component: 150  -  total flux cleaned = 0.0895353 Jy
! Component: 200  -  total flux cleaned = 0.0993821 Jy
! Total flux subtracted in 200 components = 0.0993821 Jy
! Clean residual min=-0.011804 max=0.016102 Jy/beam
! Clean residual mean=-0.000034 rms=0.003401 Jy/beam
! Combined flux in latest and established models = 0.495604 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 43 model components to the UV plane model.
! The established model now contains 52 components and 0.495604 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227249Jy  sigma=1.290000
! Fit after  self-cal, rms=0.227175Jy  sigma=1.289538
! 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.94     HN        0.96     KP        0.96     
!   LA        0.96     MK        0.99     NL        1.10     OV        0.99     
!   PT        1.00*    SC        1.13     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.95     HN        1.01     KP        0.96     
!   LA        1.01     MK        1.08     NL        1.05     OV        0.99     
!   PT        1.00*    SC        1.02     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.97     HN        0.99     KP        0.97     
!   LA        0.95     MK        1.10     NL        1.07     OV        1.03     
!   PT        1.00*    SC        0.97     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.96     HN        0.95     KP        1.03     
!   LA        0.93     MK        1.06     NL        1.01     OV        1.01     
!   PT        1.00*    SC        1.04     
! 
! 
! Fit before self-cal, rms=0.227175Jy  sigma=1.289538
! Fit after  self-cal, rms=0.226236Jy  sigma=1.280832
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.1746 mas, bmaj=0.3428 mas, bpa=5.606 degrees
! Estimated noise=1.52986 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=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00206687 Jy
! Component: 100  -  total flux cleaned = 0.00260974 Jy
! Component: 150  -  total flux cleaned = 0.00331599 Jy
! Component: 200  -  total flux cleaned = 0.00402184 Jy
! Total flux subtracted in 200 components = 0.00402184 Jy
! Clean residual min=-0.012026 max=0.012748 Jy/beam
! Clean residual mean=-0.000061 rms=0.002875 Jy/beam
! Combined flux in latest and established models = 0.499626 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 61 components and 0.499626 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.226105Jy  sigma=1.280025
! Fit after  self-cal, rms=0.226119Jy  sigma=1.279957
! 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=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000611086 Jy
! Component: 100  -  total flux cleaned = 0.000932971 Jy
! Component: 150  -  total flux cleaned = 0.00121953 Jy
! Component: 200  -  total flux cleaned = 0.00135177 Jy
! Total flux subtracted in 200 components = 0.00135177 Jy
! Clean residual min=-0.012057 max=0.012717 Jy/beam
! Clean residual mean=-0.000061 rms=0.002855 Jy/beam
! Combined flux in latest and established models = 0.500978 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 68 components and 0.500978 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.226071Jy  sigma=1.279698
! Fit after  self-cal, rms=0.225747Jy  sigma=1.261055
! Inverting map and beam 
! Estimated beam: bmin=0.1751 mas, bmaj=0.3417 mas, bpa=5.265 degrees
! Estimated noise=1.53509 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 (-0.24, 0.04).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0106983 Jy
! Component: 100  -  total flux cleaned = 0.0135186 Jy
! Component: 150  -  total flux cleaned = 0.0155789 Jy
! Component: 200  -  total flux cleaned = 0.0173525 Jy
! Total flux subtracted in 200 components = 0.0173525 Jy
! Clean residual min=-0.008886 max=0.008235 Jy/beam
! Clean residual mean=0.000019 rms=0.002061 Jy/beam
! Combined flux in latest and established models = 0.51833 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 23 model components to the UV plane model.
! The established model now contains 91 components and 0.518331 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.225097Jy  sigma=1.257413
! Fit after  self-cal, rms=0.225040Jy  sigma=1.257042
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1638+398_Q
! Writing UV FITS file: 1638+398_Q.uvf
! Writing 91 model components to file: 1638+398_Q.mod
! wwins: Wrote 2 windows to 1638+398_Q.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.1751 x 0.3417 at 5.265 degrees (North through East)
! Clean map  min=-0.0085024  max=0.41293 Jy/beam
! Writing clean map to FITS file: 1638+398_Q.fits
! Writing difmap environment to: 1638+398_Q.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1638+398_Quv.ps/vps,1,2
! Attempting to open device: '1638+398_Quv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1638+398_Qim.ps/vps
! Attempting to open device: '1638+398_Qim.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.1751 mas, bmaj=0.3417 mas, bpa=5.265 degrees
! Estimated noise=1.53509 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.1751 x 0.3417 at 5.265 degrees (North through East)
! Clean map  min=-0.0085024  max=0.41293 Jy/beam
quit
! Quitting program
! Log file 1638+398_Q.log closed on Thu Aug  8 15:53:50 2002