! Started logfile: J1927+6117_S.log on Thu Jul 29 11:24:10 2004
observe J1927+6117_S.edt
! Reading UV FITS file: J1927+6117_S.edt
! AN table 1: 58 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.566667 visibilities/baseline/integration-bin.
! Found source: J1927+61
! 
! There is 1 IF, and a total of 1 channel:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.27247e+09        4e+06          1        4e+06
! 
! Polarization(s): RR LL RL LR
! 
! Read 830 lines of history.
! 
! Reading 5916 visibilities.
![@gonzo7-0.4 J1927+6117_S]
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.4
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 = 3.6/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.400x0.400 milli-arcsec cellsize.
select
! Selecting polarization: I,  channels: 1..1
! Reading IF 1 channels: 1..1
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.439057Jy  sigma=3.076263
! Fit after  self-cal, rms=0.439057Jy  sigma=3.076260
! 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.188 mas, bmaj=5.741 mas, bpa=-59.87 degrees
! Estimated noise=4.42853 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 = 1.09114 Jy
! Total flux subtracted in 50 components = 1.09114 Jy
! Clean residual min=-0.056459 max=0.304304 Jy/beam
! Clean residual mean=-0.001023 rms=0.021892 Jy/beam
! Combined flux in latest and established models = 1.09114 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1.09114 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.352250Jy  sigma=2.470347
! Fit after  self-cal, rms=0.352250Jy  sigma=2.470347
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.239477 Jy
! Total flux subtracted in 50 components = 0.239477 Jy
! Clean residual min=-0.027894 max=0.073243 Jy/beam
! Clean residual mean=-0.000422 rms=0.008445 Jy/beam
! Combined flux in latest and established models = 1.33062 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 1.33062 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.150747Jy  sigma=1.048479
! Fit after  self-cal, rms=0.150743Jy  sigma=1.048459
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0715653 Jy
! Total flux subtracted in 50 components = 0.0715653 Jy
! Clean residual min=-0.022593 max=0.032896 Jy/beam
! Clean residual mean=-0.000246 rms=0.006416 Jy/beam
! Combined flux in latest and established models = 1.40219 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 18 components and 1.40218 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.113732Jy  sigma=0.779085
! Fit after  self-cal, rms=0.113695Jy  sigma=0.778831
! 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.722 mas, bmaj=6.712 mas, bpa=-59.86 degrees
! Estimated noise=2.68995 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.0468521 Jy
! Component: 100  -  total flux cleaned = 0.0713941 Jy
! Total flux subtracted in 100 components = 0.0713941 Jy
! Clean residual min=-0.015547 max=0.022758 Jy/beam
! Clean residual mean=-0.000342 rms=0.004641 Jy/beam
! Combined flux in latest and established models = 1.47358 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 36 components and 1.47358 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.096037Jy  sigma=0.645404
! Fit after  self-cal, rms=0.096001Jy  sigma=0.645167
! 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        0.97     FD        1.00     HN        1.05     KP        1.01     
!   LA        0.97     MK        0.98     NL        1.01     OV        0.99     
!   PT        1.00     SC        1.08     
! 
! 
! Fit before self-cal, rms=0.096001Jy  sigma=0.645167
! Fit after  self-cal, rms=0.078174Jy  sigma=0.518028
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.75 mas, bmaj=6.724 mas, bpa=-60.12 degrees
! Estimated noise=2.67111 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.00777798 Jy
! Component: 100  -  total flux cleaned = -0.00779174 Jy
! Total flux subtracted in 100 components = -0.00779174 Jy
! Clean residual min=-0.010122 max=0.012577 Jy/beam
! Clean residual mean=-0.000099 rms=0.002755 Jy/beam
! Combined flux in latest and established models = 1.46579 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 44 components and 1.46579 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.076958Jy  sigma=0.509771
! Fit after  self-cal, rms=0.076948Jy  sigma=0.509673
! Inverting map 
dynam = dynam - 1.0
doamp = true
solint = solint * (6.0/3.6)
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.000157026 Jy
! Component: 100  -  total flux cleaned = 1.47188e-05 Jy
! Total flux subtracted in 100 components = 1.47188e-05 Jy
! Clean residual min=-0.010154 max=0.011967 Jy/beam
! Clean residual mean=-0.000099 rms=0.002710 Jy/beam
! Combined flux in latest and established models = 1.4658 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 51 components and 1.4658 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.076511Jy  sigma=0.506751
! Fit after  self-cal, rms=0.065251Jy  sigma=0.422560
! Inverting map and beam 
! Estimated beam: bmin=3.756 mas, bmaj=6.74 mas, bpa=-60.02 degrees
! Estimated noise=2.66916 mJy/beam.
doamp = false
solint = solint / (6.0/3.6)
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)
! Added new window around map position (-3.2, -12).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00670137 Jy
! Component: 100  -  total flux cleaned = 0.00828457 Jy
! Total flux subtracted in 100 components = 0.00828457 Jy
! Clean residual min=-0.005064 max=0.005955 Jy/beam
! Clean residual mean=-0.000046 rms=0.001396 Jy/beam
! Combined flux in latest and established models = 1.47409 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 26 model components to the UV plane model.
! The established model now contains 77 components and 1.47409 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.064564Jy  sigma=0.417517
! Fit after  self-cal, rms=0.064481Jy  sigma=0.416921
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save J1927+6117_S
! Writing UV FITS file: J1927+6117_S.uvf
! Writing 77 model components to file: J1927+6117_S.mod
! wwins: Wrote 2 windows to J1927+6117_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.756 x 6.74 at -60.02 degrees (North through East)
! Clean map  min=-0.0049217  max=1.402 Jy/beam
! Writing clean map to FITS file: J1927+6117_S.fits
! Writing difmap environment to: J1927+6117_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot J1927+6117_S]
device J1927+6117_Suv.ps/vps,1,2
! Attempting to open device: 'J1927+6117_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device J1927+6117_Sim.ps/vps
! Attempting to open device: 'J1927+6117_Sim.ps/vps'
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 -1,2048,2
! The new contour levels are:
!  -1 1 2 4 8 16 32 64 128 256 512 1024 2048
cmul = imstat(rms)*3
! Inverting map and beam 
! Estimated beam: bmin=3.756 mas, bmaj=6.74 mas, bpa=-60.02 degrees
! Estimated noise=2.66916 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.756 x 6.74 at -60.02 degrees (North through East)
! Clean map  min=-0.0049217  max=1.402 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.4]
quit
! Quitting program
! Log file J1927+6117_S.log closed on Thu Jul 29 11:24:23 2004