! Started logfile: J0539+1433_X.log on Thu Jul 29 13:06:08 2004
observe J0539+1433_X.edt
! Reading UV FITS file: J0539+1433_X.edt
! AN table 1: 73 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.569254 visibilities/baseline/integration-bin.
! Found source: J0539+14
! 
! There are 2 IFs, and a total of 2 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  8.41447e+09        4e+06          1        4e+06
!  02        2  8.42247e+09        4e+06          1        4e+06
! 
! Polarization(s): RR LL RL LR
! 
! Read 840 lines of history.
! 
! Reading 14960 visibilities.
![@gonzo8-0.1 J0539+1433_X]
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.1
integer clean_niter
clean_niter = 50
float clean_gain
clean_gain = 0.03
float dynam
dynam = 8.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.100x0.100 milli-arcsec cellsize.
select
! Selecting polarization: I,  channels: 1..2
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
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 232 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 232 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.167450Jy  sigma=1.187897
! Fit after  self-cal, rms=0.167383Jy  sigma=1.187704
! 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=1.025 mas, bmaj=1.824 mas, bpa=5.405 degrees
! Estimated noise=2.19876 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.699669 Jy
! Total flux subtracted in 50 components = 0.699669 Jy
! Clean residual min=-0.041197 max=0.195140 Jy/beam
! Clean residual mean=-0.000420 rms=0.015831 Jy/beam
! Combined flux in latest and established models = 0.699669 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.699669 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Fit before self-cal, rms=0.250713Jy  sigma=1.770117
! Fit after  self-cal, rms=0.250713Jy  sigma=1.770118
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.160176 Jy
! Total flux subtracted in 50 components = 0.160176 Jy
! Clean residual min=-0.023835 max=0.057007 Jy/beam
! Clean residual mean=-0.000167 rms=0.007816 Jy/beam
! Combined flux in latest and established models = 0.859846 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 10 components and 0.859846 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Fit before self-cal, rms=0.143413Jy  sigma=1.013904
! Fit after  self-cal, rms=0.143412Jy  sigma=1.013891
! 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=1.095 mas, bmaj=1.922 mas, bpa=6.123 degrees
! Estimated noise=1.73706 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.0658153 Jy
! Component: 100  -  total flux cleaned = 0.0952989 Jy
! Total flux subtracted in 100 components = 0.0952989 Jy
! Clean residual min=-0.022314 max=0.029986 Jy/beam
! Clean residual mean=-0.000060 rms=0.006054 Jy/beam
! Combined flux in latest and established models = 0.955145 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 30 model components to the UV plane model.
! The established model now contains 38 components and 0.955145 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Fit before self-cal, rms=0.115177Jy  sigma=0.815552
! Fit after  self-cal, rms=0.115171Jy  sigma=0.815504
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Natural Weighting CLEAN ***"
! *** Finished Natural Weighting CLEAN *** 
print "****************************************"
! **************************************** 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.97     HN        1.00     KP        0.95     
!   LA        0.99     MK        1.04     NL        1.01     OV        1.09     
!   PT        0.95     SC        1.06     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.97     HN        1.00     KP        0.95     
!   LA        0.98     MK        1.03     NL        1.01     OV        1.10     
!   PT        0.95     SC        1.06     
! 
! 
! Fit before self-cal, rms=0.115171Jy  sigma=0.815504
! Fit after  self-cal, rms=0.102774Jy  sigma=0.715818
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.114 mas, bmaj=1.941 mas, bpa=5.789 degrees
! Estimated noise=1.72922 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.00193262 Jy
! Component: 100  -  total flux cleaned = -0.00193005 Jy
! Total flux subtracted in 100 components = -0.00193005 Jy
! Clean residual min=-0.016853 max=0.018724 Jy/beam
! Clean residual mean=0.000038 rms=0.004661 Jy/beam
! Combined flux in latest and established models = 0.953214 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 41 components and 0.953214 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Fit before self-cal, rms=0.102067Jy  sigma=0.710831
! Fit after  self-cal, rms=0.102069Jy  sigma=0.710799
! 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 = 2.57915e-05 Jy
! Component: 100  -  total flux cleaned = 0.000199569 Jy
! Total flux subtracted in 100 components = 0.000199569 Jy
! Clean residual min=-0.016769 max=0.018578 Jy/beam
! Clean residual mean=0.000038 rms=0.004637 Jy/beam
! Combined flux in latest and established models = 0.953414 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 42 components and 0.953414 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Fit before self-cal, rms=0.101771Jy  sigma=0.708653
! Fit after  self-cal, rms=0.068337Jy  sigma=0.450922
! Inverting map and beam 
! Estimated beam: bmin=1.115 mas, bmaj=1.95 mas, bpa=6.004 degrees
! Estimated noise=1.73358 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.00109639 Jy
! Component: 100  -  total flux cleaned = 0.000699557 Jy
! Total flux subtracted in 100 components = 0.000699557 Jy
! Clean residual min=-0.004364 max=0.006235 Jy/beam
! Clean residual mean=0.000001 rms=0.001215 Jy/beam
! Combined flux in latest and established models = 0.954114 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 48 components and 0.954114 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Fit before self-cal, rms=0.068169Jy  sigma=0.449795
! Fit after  self-cal, rms=0.068177Jy  sigma=0.449759
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save J0539+1433_X
! Writing UV FITS file: J0539+1433_X.uvf
! Writing 48 model components to file: J0539+1433_X.mod
! wwins: Wrote 1 windows to J0539+1433_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.115 x 1.95 at 6.004 degrees (North through East)
! Clean map  min=-0.0042005  max=0.89967 Jy/beam
! Writing clean map to FITS file: J0539+1433_X.fits
! Writing difmap environment to: J0539+1433_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot J0539+1433_X]
device J0539+1433_Xuv.ps/vps,1,2
! Attempting to open device: 'J0539+1433_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device J0539+1433_Xim.ps/vps
! Attempting to open device: 'J0539+1433_Xim.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=1.115 mas, bmaj=1.95 mas, bpa=6.004 degrees
! Estimated noise=1.73358 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.115 x 1.95 at 6.004 degrees (North through East)
! Clean map  min=-0.0042005  max=0.89967 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo8-0.1]
quit
! Quitting program
! Log file J0539+1433_X.log closed on Thu Jul 29 13:06:23 2004