! Started logfile: 1849+670_X.log on Tue Feb  6 23:38:17 1996
observe 1849+670_X.edt
! Reading UV FITS file: 1849+670_X.edt
! AN table 1: 206 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.789752 visibilities/baseline/integration-bin.
! Found source: 1849+670
! 
! Number of spectral-line channels: 1
! 
! IF    Freq (Hz)  Chan BW (Hz)  Full BW (Hz)  Sideband
! 01  8.15049e+09         4e+06         4e+06       USB
! 02  8.23049e+09         4e+06         4e+06       USB
! 03  8.41049e+09         4e+06         4e+06       USB
! 04  8.55049e+09         4e+06         4e+06       USB
! 
! Polarization(s): RR
! 
! Read 469 lines of history.
! 
! Reading 29284 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.2
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 = 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.200x0.200 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 361 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 370 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 361 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 362 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.240640Jy  sigma=1.043140
! Fit after  self-cal, rms=0.240521Jy  sigma=1.042825
! 
! 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=0.8835 mas, bmaj=0.9452 mas, bpa=-4.646 degrees
! Estimated noise=1.78147 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.619473 Jy
! Total flux subtracted in 50 components = 0.619473 Jy
! Clean residual min=-0.021481 max=0.172895 Jy/beam
! Clean residual mean=-0.000014 rms=0.005040 Jy/beam
! Combined flux in latest and established models = 0.619473 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.619473 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.238858Jy  sigma=1.033180
! Fit after  self-cal, rms=0.238858Jy  sigma=1.033180
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.135105 Jy
! Total flux subtracted in 50 components = 0.135105 Jy
! Clean residual min=-0.010534 max=0.038174 Jy/beam
! Clean residual mean=-0.000014 rms=0.002280 Jy/beam
! Combined flux in latest and established models = 0.754579 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 2 model components to the UV plane model.
! The established model now contains 2 components and 0.754579 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.155531Jy  sigma=0.671763
! Fit after  self-cal, rms=0.155527Jy  sigma=0.671747
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.035472 Jy
! Total flux subtracted in 50 components = 0.035472 Jy
! Clean residual min=-0.009226 max=0.016022 Jy/beam
! Clean residual mean=-0.000013 rms=0.001981 Jy/beam
! Combined flux in latest and established models = 0.790051 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.790051 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.146576Jy  sigma=0.633122
! Fit after  self-cal, rms=0.146566Jy  sigma=0.633078
! 
! Reinstating the default IF.
! Inverting map 
! Added new window around map position (-1.4, 0.8).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.017502 Jy
! Total flux subtracted in 50 components = 0.017502 Jy
! Clean residual min=-0.009134 max=0.012020 Jy/beam
! Clean residual mean=-0.000013 rms=0.001907 Jy/beam
! Combined flux in latest and established models = 0.807553 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 9 components and 0.807553 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.144136Jy  sigma=0.622600
! Fit after  self-cal, rms=0.144076Jy  sigma=0.622338
! 
! 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=1.213 mas, bmaj=1.289 mas, bpa=-0.5147 degrees
! Estimated noise=0.99158 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 (-3.8, 2.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0208529 Jy
! Component: 100  -  total flux cleaned = 0.0342388 Jy
! Total flux subtracted in 100 components = 0.0342388 Jy
! Clean residual min=-0.007312 max=0.008456 Jy/beam
! Clean residual mean=-0.000038 rms=0.001578 Jy/beam
! Combined flux in latest and established models = 0.841791 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 24 components and 0.841791 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.141177Jy  sigma=0.609862
! Fit after  self-cal, rms=0.141033Jy  sigma=0.609239
! 
! 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.03     FD        0.99     HN        1.01     KP        1.00     
!   LA        0.97     MK        0.99     NL        0.99     OV        1.00     
!   PT        0.97     SC        1.01     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        0.98     HN        1.02     KP        0.98     
!   LA        0.97     MK        0.97     NL        0.98     OV        0.98     
!   PT        0.97     SC        0.99     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        0.99     HN        1.02     KP        1.00     
!   LA        0.99     MK        0.99     NL        0.99     OV        0.99     
!   PT        0.98     SC        1.02     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.00     HN        1.02     KP        0.99     
!   LA        0.99     MK        1.00     NL        0.99     OV        1.00     
!   PT        0.99     SC        1.02     
! 
! 
! Fit before self-cal, rms=0.141033Jy  sigma=0.609239
! Fit after  self-cal, rms=0.138959Jy  sigma=0.602036
! 
! Reinstating the default IF.
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.217 mas, bmaj=1.292 mas, bpa=-0.8055 degrees
! Estimated noise=0.983815 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.00746168 Jy
! Component: 100  -  total flux cleaned = 0.011878 Jy
! Total flux subtracted in 100 components = 0.011878 Jy
! Clean residual min=-0.006948 max=0.006574 Jy/beam
! Clean residual mean=-0.000040 rms=0.001386 Jy/beam
! Combined flux in latest and established models = 0.853669 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 36 components and 0.853669 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.138590Jy  sigma=0.600392
! Fit after  self-cal, rms=0.138564Jy  sigma=0.600270
! 
! 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=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00282007 Jy
! Component: 100  -  total flux cleaned = 0.00342698 Jy
! Total flux subtracted in 100 components = 0.00342698 Jy
! Clean residual min=-0.006875 max=0.006606 Jy/beam
! Clean residual mean=-0.000040 rms=0.001377 Jy/beam
! Combined flux in latest and established models = 0.857096 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 45 components and 0.857096 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.138451Jy  sigma=0.599767
! Fit after  self-cal, rms=0.131589Jy  sigma=0.552825
! 
! Reinstating the default IF.
! Inverting map and beam 
! Estimated beam: bmin=1.213 mas, bmaj=1.293 mas, bpa=-2.215 degrees
! Estimated noise=0.985469 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.00390717 Jy
! Component: 100  -  total flux cleaned = 0.00602123 Jy
! Total flux subtracted in 100 components = 0.00602123 Jy
! Clean residual min=-0.002274 max=0.002731 Jy/beam
! Clean residual mean=-0.000012 rms=0.000572 Jy/beam
! Combined flux in latest and established models = 0.863117 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 60 components and 0.863117 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.131483Jy  sigma=0.552329
! Fit after  self-cal, rms=0.131480Jy  sigma=0.552298
! 
! Reinstating the default IF.
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1849+670_X
! Writing UV FITS file: 1849+670_X.uvf
! Writing 60 model components to file: 1849+670_X.mod
! wwins: Wrote 3 windows to 1849+670_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.213 x 1.293 at -2.215 degrees (North through East)
! Clean map  min=-0.0021941  max=0.79632 Jy/beam
! Writing clean map to FITS file: 1849+670_X.fits
! Writing difmap environment to: 1849+670_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1849+670_Xuv.ps/vps,1,2
! Attempting to open device: '1849+670_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1849+670_Xim.ps/vps
! Attempting to open device: '1849+670_Xim.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=1.213 mas, bmaj=1.293 mas, bpa=-2.215 degrees
! Estimated noise=0.985469 mJy/beam.
! The new contour levels are:
!  -0.0017201 0.0017201 0.00344019 0.00688039 0.0137608 0.0275216 0.0550431 0.110086 0.220172 0.440345 0.88069 1.76138 3.52276 7.04552 14.091 28.1821 56.3641 112.728 225.457 450.913 901.826 1803.65 3607.3 7214.61 14429.2
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.213 x 1.293 at -2.215 degrees (North through East)
! Clean map  min=-0.0021941  max=0.79632 Jy/beam
quit
! Quitting program
! Log file 1849+670_X.log closed on Tue Feb  6 23:44:53 1996