! Started logfile: 2121+053_S.log on Wed Jul 10 13:56:18 1996
observe 2121+053_S.edt
! Reading UV FITS file: 2121+053_S.edt
! AN table 1: 74 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.751351 visibilities/baseline/integration-bin.
! Found source: 2121+053
! 
! Number of spectral-line channels: 1
! 
! IF    Freq (Hz)  Chan BW (Hz)  Full BW (Hz)  Sideband
! 01  2.22099e+09         8e+06         8e+06       USB
! 
! Polarization(s): RR
! 
! Read 446 lines of history.
! 
! Reading 2502 visibilities.
! Selecting polarization: RR,  channels: 1..1
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 = 75
float clean_gain
clean_gain = 0.03
float dynam
dynam = 7.0
float win_mult
win_mult = 1.8
float solint
solint = 4.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.500x0.500 milli-arcsec cellsize.
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 152 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.134778Jy  sigma=1.612806
! Fit after  self-cal, rms=0.134665Jy  sigma=1.611656
! 
! Reinstating the default IF.
! 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=3.446 mas, bmaj=6.957 mas, bpa=-13.88 degrees
! Estimated noise=1.62499 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=75  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.717048 Jy
! Total flux subtracted in 75 components = 0.823638 Jy
! Clean residual min=-0.018400 max=0.093385 Jy/beam
! Clean residual mean=0.000034 rms=0.006589 Jy/beam
! Combined flux in latest and established models = 0.823638 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 0.823638 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.147319Jy  sigma=1.738077
! Fit after  self-cal, rms=0.147319Jy  sigma=1.738076
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=75  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0765832 Jy
! Total flux subtracted in 75 components = 0.0949285 Jy
! Clean residual min=-0.010129 max=0.020634 Jy/beam
! Clean residual mean=0.000015 rms=0.002871 Jy/beam
! Combined flux in latest and established models = 0.918566 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 13 components and 0.918566 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.105572Jy  sigma=1.247462
! Fit after  self-cal, rms=0.105548Jy  sigma=1.247161
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=75  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0236488 Jy
! Total flux subtracted in 75 components = 0.0312406 Jy
! Clean residual min=-0.008348 max=0.009860 Jy/beam
! Clean residual mean=0.000009 rms=0.002252 Jy/beam
! Combined flux in latest and established models = 0.949807 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 20 components and 0.949807 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.100398Jy  sigma=1.186720
! Fit after  self-cal, rms=0.100360Jy  sigma=1.186313
! 
! Reinstating the default IF.
! 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.618 mas, bmaj=7.243 mas, bpa=-11.63 degrees
! Estimated noise=1.25517 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=150  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0120323 Jy
! Component: 100  -  total flux cleaned = 0.0176929 Jy
! Component: 150  -  total flux cleaned = 0.0192364 Jy
! Total flux subtracted in 150 components = 0.0192364 Jy
! Clean residual min=-0.006611 max=0.008470 Jy/beam
! Clean residual mean=-0.000005 rms=0.001757 Jy/beam
! Combined flux in latest and established models = 0.969043 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 30 components and 0.969043 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.098971Jy  sigma=1.169861
! Fit after  self-cal, rms=0.098952Jy  sigma=1.169682
! 
! Reinstating the default IF.
! 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.99     GC        1.01     HN        1.00     
!   KP        0.99     LA        0.99     MK        1.01     NL        1.02     
!   OV        1.01     PT        0.99     
! 
! 
! Fit before self-cal, rms=0.098952Jy  sigma=1.169682
! Fit after  self-cal, rms=0.098030Jy  sigma=1.157923
! 
! Reinstating the default IF.
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.627 mas, bmaj=7.258 mas, bpa=-11.62 degrees
! Estimated noise=1.25498 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=150  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00265701 Jy
! Component: 100  -  total flux cleaned = -0.00282226 Jy
! Component: 150  -  total flux cleaned = -0.00288733 Jy
! Total flux subtracted in 150 components = -0.00288733 Jy
! Clean residual min=-0.006073 max=0.006190 Jy/beam
! Clean residual mean=-0.000001 rms=0.001498 Jy/beam
! Combined flux in latest and established models = 0.966156 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 41 components and 0.966156 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.097905Jy  sigma=1.156481
! Fit after  self-cal, rms=0.097897Jy  sigma=1.156394
! 
! Reinstating the default IF.
! 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=150  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 6.71322e-06 Jy
! Component: 100  -  total flux cleaned = 6.08066e-05 Jy
! Component: 150  -  total flux cleaned = 6.13227e-05 Jy
! Total flux subtracted in 150 components = 6.13227e-05 Jy
! Clean residual min=-0.005883 max=0.006054 Jy/beam
! Clean residual mean=-0.000001 rms=0.001485 Jy/beam
! Combined flux in latest and established models = 0.966217 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 45 components and 0.966217 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.097847Jy  sigma=1.155756
! Fit after  self-cal, rms=0.095695Jy  sigma=1.128627
! 
! Reinstating the default IF.
! Inverting map and beam 
! Estimated beam: bmin=3.63 mas, bmaj=7.256 mas, bpa=-11.51 degrees
! Estimated noise=1.25528 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=150  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0014325 Jy
! Component: 100  -  total flux cleaned = -0.00164717 Jy
! Component: 150  -  total flux cleaned = -0.00178265 Jy
! Total flux subtracted in 150 components = -0.00178265 Jy
! Clean residual min=-0.004946 max=0.005144 Jy/beam
! Clean residual mean=-0.000005 rms=0.001278 Jy/beam
! Combined flux in latest and established models = 0.964435 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 52 components and 0.964435 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.095637Jy  sigma=1.127962
! Fit after  self-cal, rms=0.095632Jy  sigma=1.127900
! 
! Reinstating the default IF.
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 2121+053_S
! Writing UV FITS file: 2121+053_S.uvf
! Writing 52 model components to file: 2121+053_S.mod
! wwins: Wrote 1 windows to 2121+053_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.63 x 7.256 at -11.51 degrees (North through East)
! Clean map  min=-0.0048086  max=0.91959 Jy/beam
! Writing clean map to FITS file: 2121+053_S.fits
! Writing difmap environment to: 2121+053_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 2121+053_Suv.ps/vps,1,2
! Attempting to open device: '2121+053_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 2121+053_Sim.ps/vps
! Attempting to open device: '2121+053_Sim.ps/vps'
cmul = 1.0
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 (imstat(rms)*3),20000,2
! Inverting map and beam 
! Estimated beam: bmin=3.63 mas, bmaj=7.256 mas, bpa=-11.51 degrees
! Estimated noise=1.25528 mJy/beam.
! The new contour levels are:
!  -0.00383324 0.00383324 0.00766647 0.0153329 0.0306659 0.0613318 0.122664 0.245327 0.490654 0.981309 1.96262 3.92523 7.85047 15.7009 31.4019 62.8038 125.608 251.215 502.43 1004.86 2009.72 4019.44 8038.88 16077.8
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.63 x 7.256 at -11.51 degrees (North through East)
! Clean map  min=-0.0048086  max=0.91959 Jy/beam
quit
! Quitting program
! Log file 2121+053_S.log closed on Wed Jul 10 14:08:24 1996