! Started logfile: J0654+5042_S.log on Wed Jul 28 14:04:47 2004
observe J0654+5042_S.edt
! Reading UV FITS file: J0654+5042_S.edt
! AN table 1: 58 integrations on 36 of 36 possible baselines.
! Apparent sampling: 0.896552 visibilities/baseline/integration-bin.
! Found source: J0654+50
! 
! 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 1314 lines of history.
! 
! Reading 7488 visibilities.
![@gonzo7-0.4 J0654+5042_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 50 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.692788Jy  sigma=4.863240
! Fit after  self-cal, rms=0.692752Jy  sigma=4.863991
! 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.62 mas, bmaj=4.779 mas, bpa=15.81 degrees
! Estimated noise=3.05084 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.239225 Jy
! Total flux subtracted in 50 components = 0.239225 Jy
! Clean residual min=-0.013561 max=0.066717 Jy/beam
! Clean residual mean=0.000021 rms=0.004951 Jy/beam
! Combined flux in latest and established models = 0.239225 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 0.239225 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.093525Jy  sigma=0.650149
! Fit after  self-cal, rms=0.093524Jy  sigma=0.650149
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0555585 Jy
! Total flux subtracted in 50 components = 0.0555585 Jy
! Clean residual min=-0.008318 max=0.020188 Jy/beam
! Clean residual mean=-0.000033 rms=0.002286 Jy/beam
! Combined flux in latest and established models = 0.294783 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 0.294783 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.061778Jy  sigma=0.421277
! Fit after  self-cal, rms=0.061734Jy  sigma=0.420913
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0207012 Jy
! Total flux subtracted in 50 components = 0.0207012 Jy
! Clean residual min=-0.006700 max=0.009086 Jy/beam
! Clean residual mean=-0.000054 rms=0.001628 Jy/beam
! Combined flux in latest and established models = 0.315484 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 16 components and 0.315484 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.056369Jy  sigma=0.381072
! Fit after  self-cal, rms=0.056317Jy  sigma=0.380670
! 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.986 mas, bmaj=5.194 mas, bpa=12.19 degrees
! Estimated noise=2.40829 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.0100037 Jy
! Component: 100  -  total flux cleaned = 0.014557 Jy
! Total flux subtracted in 100 components = 0.014557 Jy
! Clean residual min=-0.005037 max=0.004792 Jy/beam
! Clean residual mean=-0.000126 rms=0.001231 Jy/beam
! Combined flux in latest and established models = 0.330041 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 31 components and 0.330041 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.054854Jy  sigma=0.369348
! Fit after  self-cal, rms=0.054838Jy  sigma=0.369226
! 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.95     FD        1.01     KP        1.00     LA        0.96     
!   MK        0.99     NL        1.00     OV        1.01     PT        1.01     
!   SC        1.06     
! 
! 
! Fit before self-cal, rms=0.054838Jy  sigma=0.369226
! Fit after  self-cal, rms=0.053314Jy  sigma=0.359500
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=4.025 mas, bmaj=5.235 mas, bpa=11.39 degrees
! Estimated noise=2.40424 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.0014772 Jy
! Component: 100  -  total flux cleaned = -0.00171196 Jy
! Total flux subtracted in 100 components = -0.00171196 Jy
! Clean residual min=-0.004386 max=0.004685 Jy/beam
! Clean residual mean=-0.000118 rms=0.001001 Jy/beam
! Combined flux in latest and established models = 0.328329 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 37 components and 0.32833 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.053238Jy  sigma=0.359063
! Fit after  self-cal, rms=0.053236Jy  sigma=0.359036
! 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 = 1.78469e-06 Jy
! Component: 100  -  total flux cleaned = -8.20083e-05 Jy
! Total flux subtracted in 100 components = -8.20083e-05 Jy
! Clean residual min=-0.004359 max=0.004706 Jy/beam
! Clean residual mean=-0.000118 rms=0.000998 Jy/beam
! Combined flux in latest and established models = 0.328248 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 39 components and 0.328247 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.053217Jy  sigma=0.358912
! Fit after  self-cal, rms=0.052393Jy  sigma=0.347490
! Inverting map and beam 
! Estimated beam: bmin=4.026 mas, bmaj=5.253 mas, bpa=11.37 degrees
! Estimated noise=2.40355 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)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000138335 Jy
! Component: 100  -  total flux cleaned = -0.000140398 Jy
! Total flux subtracted in 100 components = -0.000140398 Jy
! Clean residual min=-0.003007 max=0.002871 Jy/beam
! Clean residual mean=-0.000001 rms=0.000746 Jy/beam
! Combined flux in latest and established models = 0.328107 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 48 components and 0.328107 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.052370Jy  sigma=0.347328
! Fit after  self-cal, rms=0.052369Jy  sigma=0.347316
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save J0654+5042_S
! Writing UV FITS file: J0654+5042_S.uvf
! Writing 48 model components to file: J0654+5042_S.mod
! wwins: Wrote 1 windows to J0654+5042_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.026 x 5.253 at 11.37 degrees (North through East)
! Clean map  min=-0.002904  max=0.30632 Jy/beam
! Writing clean map to FITS file: J0654+5042_S.fits
! Writing difmap environment to: J0654+5042_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot J0654+5042_S]
device J0654+5042_Suv.ps/vps,1,2
! Attempting to open device: 'J0654+5042_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device J0654+5042_Sim.ps/vps
! Attempting to open device: 'J0654+5042_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=4.026 mas, bmaj=5.253 mas, bpa=11.37 degrees
! Estimated noise=2.40355 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.026 x 5.253 at 11.37 degrees (North through East)
! Clean map  min=-0.002904  max=0.30632 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.4]
quit
! Quitting program
! Log file J0654+5042_S.log closed on Wed Jul 28 14:04:59 2004