! Started logfile: 1656+348_X.log on Wed Apr 15 00:26:44 1998
observe 1656+348_X.edt
! Reading UV FITS file: 1656+348_X.edt
! AN table 1: 58 integrations on 28 of 28 possible baselines.
! Apparent sampling: 0.384236 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1656+348
! 
! 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.15049e+09        8e+06          1        8e+06
!  02        2  8.23049e+09        8e+06          1        8e+06
!  03        3  8.41049e+09        8e+06          1        8e+06
!  04        4  8.55049e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 406 lines of history.
! 
! Reading 2496 visibilities.
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.2
integer clean_niter
clean_niter = 50
float clean_gain
clean_gain = 0.03
float dynam
dynam = 8.0
float win_mult
win_mult = 1.8
float solint
solint = 2.0/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.200x0.200 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 240 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 205 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 243 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 254 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.842098Jy  sigma=5.132404
! Fit after  self-cal, rms=0.842147Jy  sigma=5.133461
! 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.134 mas, bmaj=3.196 mas, bpa=-89.5 degrees
! Estimated noise=4.29142 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.124939 Jy
! Total flux subtracted in 50 components = 0.124939 Jy
! Clean residual min=-0.020239 max=0.035071 Jy/beam
! Clean residual mean=-0.000040 rms=0.005695 Jy/beam
! Combined flux in latest and established models = 0.124939 Jy
! Performing phase self-cal over 0.333333 minute time intervals
! Adding 3 model components to the UV plane model.
! The established model now contains 3 components and 0.124939 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.072594Jy  sigma=0.441110
! Fit after  self-cal, rms=0.072580Jy  sigma=0.441031
! 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.318 mas, bmaj=3.432 mas, bpa=-87.99 degrees
! Estimated noise=2.93324 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.033034 Jy
! Component: 100  -  total flux cleaned = 0.0473764 Jy
! Total flux subtracted in 100 components = 0.0473764 Jy
! Clean residual min=-0.007292 max=0.007712 Jy/beam
! Clean residual mean=0.000016 rms=0.002121 Jy/beam
! Combined flux in latest and established models = 0.172316 Jy
! Performing phase self-cal over 0.333333 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 23 components and 0.172316 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.058730Jy  sigma=0.355722
! Fit after  self-cal, rms=0.058661Jy  sigma=0.355291
! 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 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.02     HN        1.00*    LA        0.94     
!   NL        0.84     OV        0.99     PT        1.04     SC        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        0.98     HN        1.00*    LA        0.97     
!   NL        0.90     OV        1.02     PT        1.06     SC        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.03     HN        1.00*    LA        0.95     
!   NL        0.81     OV        0.97     PT        1.07     SC        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        1.00     HN        1.00*    LA        0.94     
!   NL        0.85     OV        1.07     PT        1.11     SC        1.00*    
! 
! 
! Fit before self-cal, rms=0.058661Jy  sigma=0.355291
! Fit after  self-cal, rms=0.055575Jy  sigma=0.343216
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.301 mas, bmaj=3.414 mas, bpa=89.79 degrees
! Estimated noise=2.9633 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.00378323 Jy
! Component: 100  -  total flux cleaned = 0.00367453 Jy
! Total flux subtracted in 100 components = 0.00367453 Jy
! Clean residual min=-0.005138 max=0.004950 Jy/beam
! Clean residual mean=0.000014 rms=0.001356 Jy/beam
! Combined flux in latest and established models = 0.17599 Jy
! Performing phase self-cal over 0.333333 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 32 components and 0.17599 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.055228Jy  sigma=0.341007
! Fit after  self-cal, rms=0.055228Jy  sigma=0.340808
! Inverting map 
dynam = dynam - 1.0
doamp = true
solint = solint * 1.5
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.000557123 Jy
! Component: 100  -  total flux cleaned = 0.000690513 Jy
! Total flux subtracted in 100 components = 0.000690513 Jy
! Clean residual min=-0.005143 max=0.004653 Jy/beam
! Clean residual mean=0.000015 rms=0.001309 Jy/beam
! Combined flux in latest and established models = 0.176681 Jy
! Performing amp+phase self-cal over 0.5 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 40 components and 0.176681 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.055129Jy  sigma=0.340199
! Fit after  self-cal, rms=0.053671Jy  sigma=0.322893
! Inverting map and beam 
! Estimated beam: bmin=2.303 mas, bmaj=3.417 mas, bpa=89.56 degrees
! Estimated noise=2.99385 mJy/beam.
doamp = false
solint = solint / 1.5
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.00138895 Jy
! Component: 100  -  total flux cleaned = 0.00156999 Jy
! Total flux subtracted in 100 components = 0.00156999 Jy
! Clean residual min=-0.004098 max=0.004480 Jy/beam
! Clean residual mean=0.000011 rms=0.001069 Jy/beam
! Combined flux in latest and established models = 0.178251 Jy
! Performing phase self-cal over 0.333333 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 49 components and 0.178251 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.053593Jy  sigma=0.322353
! Fit after  self-cal, rms=0.053599Jy  sigma=0.322284
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1656+348_X
! Writing UV FITS file: 1656+348_X.uvf
! Writing 49 model components to file: 1656+348_X.mod
! wwins: Wrote 1 windows to 1656+348_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.303 x 3.417 at 89.56 degrees (North through East)
! Clean map  min=-0.0039925  max=0.1547 Jy/beam
! Writing clean map to FITS file: 1656+348_X.fits
! Writing difmap environment to: 1656+348_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1656+348_Xuv.ps/vps,1,2
! Attempting to open device: '1656+348_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1656+348_Xim.ps/vps
! Attempting to open device: '1656+348_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=2.303 mas, bmaj=3.417 mas, bpa=89.56 degrees
! Estimated noise=2.99385 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.303 x 3.417 at 89.56 degrees (North through East)
! Clean map  min=-0.0039925  max=0.1547 Jy/beam
quit
! Quitting program
! Log file 1656+348_X.log closed on Wed Apr 15 00:31:10 1998