! Started logfile: 1219+044_S.log on Fri Jul 12 12:27:52 1996
observe 1219+044_S.edt
! Reading UV FITS file: 1219+044_S.edt
! AN table 1: 99 integrations on 36 of 36 possible baselines.
! Apparent sampling: 0.602974 visibilities/baseline/integration-bin.
! Found source: 1219+044
! 
! Number of spectral-line channels: 1
! 
! IF    Freq (Hz)  Chan BW (Hz)  Full BW (Hz)  Sideband
! 01  2.22099e+09       1.6e+07       1.6e+07       USB
! 
! Polarization(s): RR
! 
! Read 816 lines of history.
! 
! Reading 2149 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 233 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.356239Jy  sigma=4.245616
! Fit after  self-cal, rms=0.356181Jy  sigma=4.245295
! 
! 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.536 mas, bmaj=6.853 mas, bpa=1.118 degrees
! Estimated noise=1.57165 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.51107 Jy
! Total flux subtracted in 75 components = 0.587041 Jy
! Clean residual min=-0.013546 max=0.066559 Jy/beam
! Clean residual mean=-0.000036 rms=0.004230 Jy/beam
! Combined flux in latest and established models = 0.587041 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.587041 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.119066Jy  sigma=1.380365
! Fit after  self-cal, rms=0.119066Jy  sigma=1.380365
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=75  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0573383 Jy
! Total flux subtracted in 75 components = 0.0718766 Jy
! Clean residual min=-0.007993 max=0.015870 Jy/beam
! Clean residual mean=0.000010 rms=0.002446 Jy/beam
! Combined flux in latest and established models = 0.658918 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 14 components and 0.658918 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.092772Jy  sigma=1.048094
! Fit after  self-cal, rms=0.092697Jy  sigma=1.047263
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=75  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0171612 Jy
! Total flux subtracted in 75 components = 0.0220369 Jy
! Clean residual min=-0.007479 max=0.008697 Jy/beam
! Clean residual mean=0.000025 rms=0.002183 Jy/beam
! Combined flux in latest and established models = 0.680954 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 19 components and 0.680955 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.090319Jy  sigma=1.016127
! Fit after  self-cal, rms=0.090277Jy  sigma=1.015750
! 
! 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.62 mas, bmaj=7.194 mas, bpa=-1.185 degrees
! Estimated noise=1.33424 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.00544927 Jy
! Component: 100  -  total flux cleaned = 0.00636276 Jy
! Component: 150  -  total flux cleaned = 0.00617538 Jy
! Total flux subtracted in 150 components = 0.00617538 Jy
! Clean residual min=-0.007196 max=0.008039 Jy/beam
! Clean residual mean=0.000009 rms=0.001844 Jy/beam
! Combined flux in latest and established models = 0.68713 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 33 components and 0.68713 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.089952Jy  sigma=1.011328
! Fit after  self-cal, rms=0.089944Jy  sigma=1.011201
! 
! 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 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.99     HN        0.97     LA        0.99     
!   MK        1.01     NL        1.00     OV        0.99     PT        1.02     
!   SC        1.00     
! 
! 
! Fit before self-cal, rms=0.089944Jy  sigma=1.011201
! Fit after  self-cal, rms=0.088858Jy  sigma=1.001727
! 
! Reinstating the default IF.
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.618 mas, bmaj=7.212 mas, bpa=-1.12 degrees
! Estimated noise=1.33303 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.000575809 Jy
! Component: 100  -  total flux cleaned = -0.000627603 Jy
! Component: 150  -  total flux cleaned = -0.000707544 Jy
! Total flux subtracted in 150 components = -0.000707544 Jy
! Clean residual min=-0.006929 max=0.007578 Jy/beam
! Clean residual mean=0.000007 rms=0.001748 Jy/beam
! Combined flux in latest and established models = 0.686422 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 41 components and 0.686422 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.088803Jy  sigma=1.001207
! Fit after  self-cal, rms=0.088800Jy  sigma=1.001131
! 
! 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 = 7.50565e-06 Jy
! Component: 100  -  total flux cleaned = -9.49812e-05 Jy
! Component: 150  -  total flux cleaned = -0.000147838 Jy
! Total flux subtracted in 150 components = -0.000147838 Jy
! Clean residual min=-0.006951 max=0.007537 Jy/beam
! Clean residual mean=0.000007 rms=0.001746 Jy/beam
! Combined flux in latest and established models = 0.686274 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 45 components and 0.686274 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.088776Jy  sigma=1.000920
! Fit after  self-cal, rms=0.081661Jy  sigma=0.910020
! 
! Reinstating the default IF.
! Inverting map and beam 
! Estimated beam: bmin=3.611 mas, bmaj=7.222 mas, bpa=-1.055 degrees
! Estimated noise=1.33409 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.00111321 Jy
! Component: 100  -  total flux cleaned = 0.00105093 Jy
! Component: 150  -  total flux cleaned = 0.00110589 Jy
! Total flux subtracted in 150 components = 0.00110589 Jy
! Clean residual min=-0.004852 max=0.004876 Jy/beam
! Clean residual mean=-0.000012 rms=0.001104 Jy/beam
! Combined flux in latest and established models = 0.68738 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.68738 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.081591Jy  sigma=0.908998
! Fit after  self-cal, rms=0.081588Jy  sigma=0.908973
! 
! Reinstating the default IF.
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1219+044_S
! Writing UV FITS file: 1219+044_S.uvf
! Writing 50 model components to file: 1219+044_S.mod
! wwins: Wrote 1 windows to 1219+044_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.611 x 7.222 at -1.055 degrees (North through East)
! Clean map  min=-0.0047301  max=0.65414 Jy/beam
! Writing clean map to FITS file: 1219+044_S.fits
! Writing difmap environment to: 1219+044_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1219+044_Suv.ps/vps,1,2
! Attempting to open device: '1219+044_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1219+044_Sim.ps/vps
! Attempting to open device: '1219+044_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.611 mas, bmaj=7.222 mas, bpa=-1.055 degrees
! Estimated noise=1.33409 mJy/beam.
! The new contour levels are:
!  -0.00331133 0.00331133 0.00662266 0.0132453 0.0264906 0.0529813 0.105963 0.211925 0.42385 0.8477 1.6954 3.3908 6.7816 13.5632 27.1264 54.2528 108.506 217.011 434.022 868.045 1736.09 3472.18 6944.36 13888.7
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.611 x 7.222 at -1.055 degrees (North through East)
! Clean map  min=-0.0047301  max=0.65414 Jy/beam
quit
! Quitting program
! Log file 1219+044_S.log closed on Fri Jul 12 12:29:32 1996