! Started logfile: 1300+580_S.log on Wed Jul 10 13:00:49 1996
observe 1300+580_S.edt
! Reading UV FITS file: 1300+580_S.edt
! AN table 1: 352 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.681818 visibilities/baseline/integration-bin.
! Found source: 1300+580
! 
! 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 10800 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 828 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.680629Jy  sigma=7.590143
! Fit after  self-cal, rms=0.680319Jy  sigma=7.590161
! 
! 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.937 mas, bmaj=4.535 mas, bpa=-23.7 degrees
! Estimated noise=0.938615 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.256363 Jy
! Total flux subtracted in 75 components = 0.294475 Jy
! Clean residual min=-0.007057 max=0.033458 Jy/beam
! Clean residual mean=-0.000001 rms=0.001748 Jy/beam
! Combined flux in latest and established models = 0.294475 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.294475 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.139512Jy  sigma=1.407831
! Fit after  self-cal, rms=0.139512Jy  sigma=1.407820
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=75  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0291851 Jy
! Total flux subtracted in 75 components = 0.0363734 Jy
! Clean residual min=-0.005912 max=0.007707 Jy/beam
! Clean residual mean=-0.000013 rms=0.001303 Jy/beam
! Combined flux in latest and established models = 0.330848 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 0.330848 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.133376Jy  sigma=1.337695
! Fit after  self-cal, rms=0.133311Jy  sigma=1.336997
! 
! Reinstating the default IF.
! Inverting map 
! Added new window around map position (1, 4.5).
! clean: niter=75  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00917062 Jy
! Total flux subtracted in 75 components = 0.0118604 Jy
! Clean residual min=-0.005547 max=0.004742 Jy/beam
! Clean residual mean=-0.000016 rms=0.001255 Jy/beam
! Combined flux in latest and established models = 0.342709 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 25 components and 0.342708 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.132600Jy  sigma=1.329242
! Fit after  self-cal, rms=0.132572Jy  sigma=1.328947
! 
! 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=4.687 mas, bmaj=5.329 mas, bpa=-20.77 degrees
! Estimated noise=0.649828 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.00594439 Jy
! Component: 100  -  total flux cleaned = 0.00926193 Jy
! Component: 150  -  total flux cleaned = 0.0114363 Jy
! Total flux subtracted in 150 components = 0.0114363 Jy
! Clean residual min=-0.003917 max=0.003797 Jy/beam
! Clean residual mean=-0.000032 rms=0.001007 Jy/beam
! Combined flux in latest and established models = 0.354145 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 24 model components to the UV plane model.
! The established model now contains 48 components and 0.354145 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.132293Jy  sigma=1.325797
! Fit after  self-cal, rms=0.132275Jy  sigma=1.325590
! 
! 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 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.00     GC        0.99     HN        1.00     
!   KP        0.98     LA        1.00     MK        1.01     NL        1.01     
!   OV        0.99     PT        1.00     
! 
! 
! Fit before self-cal, rms=0.132275Jy  sigma=1.325590
! Fit after  self-cal, rms=0.131788Jy  sigma=1.325087
! 
! Reinstating the default IF.
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=4.688 mas, bmaj=5.323 mas, bpa=-20.77 degrees
! Estimated noise=0.650479 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.00174056 Jy
! Component: 100  -  total flux cleaned = 0.00200844 Jy
! Component: 150  -  total flux cleaned = 0.00222173 Jy
! Total flux subtracted in 150 components = 0.00222173 Jy
! Clean residual min=-0.003746 max=0.003882 Jy/beam
! Clean residual mean=-0.000032 rms=0.000987 Jy/beam
! Combined flux in latest and established models = 0.356366 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 59 components and 0.356366 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.131763Jy  sigma=1.324824
! Fit after  self-cal, rms=0.131759Jy  sigma=1.324793
! 
! 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 = 0.000304682 Jy
! Component: 100  -  total flux cleaned = 0.000331264 Jy
! Component: 150  -  total flux cleaned = 0.000355866 Jy
! Total flux subtracted in 150 components = 0.000355866 Jy
! Clean residual min=-0.003746 max=0.003846 Jy/beam
! Clean residual mean=-0.000032 rms=0.000986 Jy/beam
! Combined flux in latest and established models = 0.356722 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 65 components and 0.356722 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.131751Jy  sigma=1.324700
! Fit after  self-cal, rms=0.126816Jy  sigma=1.289346
! 
! Reinstating the default IF.
! Inverting map and beam 
! Estimated beam: bmin=4.694 mas, bmaj=5.314 mas, bpa=-20.1 degrees
! Estimated noise=0.652805 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.00117588 Jy
! Component: 100  -  total flux cleaned = 0.00141186 Jy
! Component: 150  -  total flux cleaned = 0.00158689 Jy
! Total flux subtracted in 150 components = 0.00158689 Jy
! Clean residual min=-0.003391 max=0.003087 Jy/beam
! Clean residual mean=-0.000010 rms=0.000807 Jy/beam
! Combined flux in latest and established models = 0.358309 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 74 components and 0.358309 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.126805Jy  sigma=1.289136
! Fit after  self-cal, rms=0.126803Jy  sigma=1.289099
! 
! Reinstating the default IF.
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1300+580_S
! Writing UV FITS file: 1300+580_S.uvf
! Writing 74 model components to file: 1300+580_S.mod
! wwins: Wrote 2 windows to 1300+580_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.694 x 5.314 at -20.1 degrees (North through East)
! Clean map  min=-0.0032993  max=0.32903 Jy/beam
! Writing clean map to FITS file: 1300+580_S.fits
! Writing difmap environment to: 1300+580_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1300+580_Suv.ps/vps,1,2
! Attempting to open device: '1300+580_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1300+580_Sim.ps/vps
! Attempting to open device: '1300+580_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=4.694 mas, bmaj=5.314 mas, bpa=-20.1 degrees
! Estimated noise=0.652805 mJy/beam.
! The new contour levels are:
!  -0.00242164 0.00242164 0.00484327 0.00968654 0.0193731 0.0387462 0.0774923 0.154985 0.309969 0.619939 1.23988 2.47975 4.95951 9.91902 19.838 39.6761 79.3521 158.704 317.409 634.817 1269.63 2539.27 5078.54 10157.1
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.694 x 5.314 at -20.1 degrees (North through East)
! Clean map  min=-0.0032993  max=0.32903 Jy/beam
quit
! Quitting program
! Log file 1300+580_S.log closed on Wed Jul 10 13:06:41 1996