! Started logfile: 1409+218_S.log on Wed Apr  2 23:39:11 1997
observe 1409+218_S.edt
! Reading UV FITS file: 1409+218_S.edt
! AN table 1: 45 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.915062 visibilities/baseline/integration-bin.
! Found source: 1409+218
! 
! Number of spectral-line channels: 1
! 
! IF    Freq (Hz)  Chan BW (Hz)  Full BW (Hz)  Sideband
! 01  2.22049e+09         4e+06         4e+06       USB
! 02  2.23049e+09         4e+06         4e+06       USB
! 03  2.29049e+09         4e+06         4e+06       USB
! 04  2.32049e+09         4e+06         4e+06       USB
! 
! Polarization(s): RR
! 
! Read 379 lines of history.
! 
! Reading 7412 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 = 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.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 109 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 109 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 106 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 95 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.796982Jy  sigma=4.913942
! Fit after  self-cal, rms=0.796557Jy  sigma=4.912278
! 
! 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=2.945 mas, bmaj=6.354 mas, bpa=2.48 degrees
! Estimated noise=2.23888 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.164335 Jy
! Total flux subtracted in 50 components = 0.164335 Jy
! Clean residual min=-0.011648 max=0.045897 Jy/beam
! Clean residual mean=-0.000008 rms=0.003317 Jy/beam
! Combined flux in latest and established models = 0.164335 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.164335 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.138231Jy  sigma=0.849307
! Fit after  self-cal, rms=0.138230Jy  sigma=0.849302
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.036881 Jy
! Total flux subtracted in 50 components = 0.036881 Jy
! Clean residual min=-0.008887 max=0.012758 Jy/beam
! Clean residual mean=0.000004 rms=0.002281 Jy/beam
! Combined flux in latest and established models = 0.201216 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 11 components and 0.201216 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.129543Jy  sigma=0.795842
! Fit after  self-cal, rms=0.129526Jy  sigma=0.795725
! 
! 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.514 mas, bmaj=7.166 mas, bpa=1.543 degrees
! Estimated noise=1.56216 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.0168079 Jy
! Component: 100  -  total flux cleaned = 0.0253841 Jy
! Total flux subtracted in 100 components = 0.0253841 Jy
! Clean residual min=-0.005970 max=0.006523 Jy/beam
! Clean residual mean=0.000008 rms=0.001541 Jy/beam
! Combined flux in latest and established models = 0.2266 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 23 model components to the UV plane model.
! The established model now contains 33 components and 0.2266 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.127612Jy  sigma=0.783992
! Fit after  self-cal, rms=0.127576Jy  sigma=0.783760
! 
! 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.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.06     FD        1.03     HN        0.98     KP        0.97     
!   LA        0.97     MK        0.99     NL        1.00*    OV        1.00     
!   PT        0.96     SC        1.02     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.06     FD        1.04     HN        0.93     KP        0.88     
!   LA        1.03     MK        0.98     NL        0.98     OV        0.98     
!   PT        0.98     SC        1.04     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.02     HN        1.00     KP        0.99     
!   LA        1.03     MK        1.00     NL        1.02     OV        1.02     
!   PT        0.91     SC        1.01     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        1.07     HN        0.93     KP        0.97     
!   LA        1.01     MK        1.01     NL        1.10     OV        0.90     
!   PT        0.87     SC        1.01     
! 
! 
! Fit before self-cal, rms=0.127576Jy  sigma=0.783760
! Fit after  self-cal, rms=0.123869Jy  sigma=0.778002
! 
! Reinstating the default IF.
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.525 mas, bmaj=7.239 mas, bpa=1.044 degrees
! Estimated noise=1.53805 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.0036749 Jy
! Component: 100  -  total flux cleaned = 0.00405532 Jy
! Total flux subtracted in 100 components = 0.00405532 Jy
! Clean residual min=-0.005367 max=0.005247 Jy/beam
! Clean residual mean=0.000010 rms=0.001278 Jy/beam
! Combined flux in latest and established models = 0.230656 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 38 components and 0.230656 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.123766Jy  sigma=0.777425
! Fit after  self-cal, rms=0.123766Jy  sigma=0.777316
! 
! 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.000738443 Jy
! Component: 100  -  total flux cleaned = 0.000783072 Jy
! Total flux subtracted in 100 components = 0.000783072 Jy
! Clean residual min=-0.005145 max=0.005110 Jy/beam
! Clean residual mean=0.000011 rms=0.001271 Jy/beam
! Combined flux in latest and established models = 0.231439 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 44 components and 0.231439 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.123743Jy  sigma=0.777194
! Fit after  self-cal, rms=0.123628Jy  sigma=0.765846
! 
! Reinstating the default IF.
! Inverting map and beam 
! Estimated beam: bmin=3.536 mas, bmaj=7.245 mas, bpa=1.138 degrees
! Estimated noise=1.548 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.00180432 Jy
! Component: 100  -  total flux cleaned = 0.00183974 Jy
! Total flux subtracted in 100 components = 0.00183974 Jy
! Clean residual min=-0.004106 max=0.004786 Jy/beam
! Clean residual mean=0.000027 rms=0.001139 Jy/beam
! Combined flux in latest and established models = 0.233278 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 50 components and 0.233278 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.123597Jy  sigma=0.765695
! Fit after  self-cal, rms=0.123598Jy  sigma=0.765650
! 
! Reinstating the default IF.
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1409+218_S
! Writing UV FITS file: 1409+218_S.uvf
! Writing 50 model components to file: 1409+218_S.mod
! wwins: Wrote 1 windows to 1409+218_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.536 x 7.245 at 1.138 degrees (North through East)
! Clean map  min=-0.003951  max=0.20823 Jy/beam
! Writing clean map to FITS file: 1409+218_S.fits
! Writing difmap environment to: 1409+218_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1409+218_Suv.ps/vps,1,2
! Attempting to open device: '1409+218_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1409+218_Sim.ps/vps
! Attempting to open device: '1409+218_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.536 mas, bmaj=7.245 mas, bpa=1.138 degrees
! Estimated noise=1.548 mJy/beam.
! The new contour levels are:
!  -0.00342642 0.00342642 0.00685284 0.0137057 0.0274114 0.0548227 0.109645 0.219291 0.438582 0.877164 1.75433 3.50865 7.01731 14.0346 28.0692 56.1385 112.277 224.554 449.108 898.216 1796.43 3592.86 7185.73 14371.5
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.536 x 7.245 at 1.138 degrees (North through East)
! Clean map  min=-0.003951  max=0.20823 Jy/beam
quit
! Quitting program
! Log file 1409+218_S.log closed on Wed Apr  2 23:44:09 1997