! Started logfile: 1354-152_X.log on Tue Apr 14 23:04:02 1998
observe 1354-152_X.edt
! Reading UV FITS file: 1354-152_X.edt
! AN table 1: 44 integrations on 36 of 36 possible baselines.
! Apparent sampling: 0.676136 visibilities/baseline/integration-bin.
! Found source: 1354-152
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  8.15049e+09        8e+06          1        8e+06
!  02        2  8.23049e+09        8e+06          1        8e+06
!  03        3  8.41049e+09        8e+06          1        8e+06
!  04        4  8.55049e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 406 lines of history.
! 
! Reading 4284 visibilities.
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.2
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 = 2.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.200x0.200 milli-arcsec cellsize.
select
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
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 119 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 119 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 119 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 119 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.604390Jy  sigma=3.709656
! Fit after  self-cal, rms=0.604353Jy  sigma=3.711094
! 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=0.7503 mas, bmaj=2.046 mas, bpa=1.225 degrees
! Estimated noise=2.71782 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.318058 Jy
! Total flux subtracted in 50 components = 0.318058 Jy
! Clean residual min=-0.018673 max=0.088706 Jy/beam
! Clean residual mean=-0.000010 rms=0.005944 Jy/beam
! Combined flux in latest and established models = 0.318058 Jy
! Performing phase self-cal over 0.333333 minute time intervals
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 0.318058 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.135249Jy  sigma=0.828218
! Fit after  self-cal, rms=0.135249Jy  sigma=0.828219
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0693576 Jy
! Total flux subtracted in 50 components = 0.0693576 Jy
! Clean residual min=-0.011306 max=0.019344 Jy/beam
! Clean residual mean=0.000008 rms=0.002845 Jy/beam
! Combined flux in latest and established models = 0.387415 Jy
! Performing phase self-cal over 0.333333 minute time intervals
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 0.387415 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.105317Jy  sigma=0.645231
! Fit after  self-cal, rms=0.105317Jy  sigma=0.645231
! 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=0.9517 mas, bmaj=2.373 mas, bpa=2.851 degrees
! Estimated noise=1.90674 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.0110045 Jy
! Component: 100  -  total flux cleaned = 0.0104492 Jy
! Total flux subtracted in 100 components = 0.0104492 Jy
! Clean residual min=-0.010917 max=0.013762 Jy/beam
! Clean residual mean=0.000046 rms=0.002843 Jy/beam
! Combined flux in latest and established models = 0.397865 Jy
! Performing phase self-cal over 0.333333 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.397865 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.103611Jy  sigma=0.634988
! Fit after  self-cal, rms=0.103605Jy  sigma=0.634953
! 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.94     FD        0.93     HN        0.96     LA        1.01     
!   MK        0.96     NL        0.99     OV        0.96     PT        1.15     
!   SC        0.99     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.94     HN        1.00     LA        0.99     
!   MK        0.96     NL        0.99     OV        0.96     PT        1.20     
!   SC        1.00     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.93     HN        0.96     LA        1.01     
!   MK        0.96     NL        1.00     OV        0.96     PT        1.18     
!   SC        1.00     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.94     HN        0.95     LA        1.00     
!   MK        0.95     NL        0.98     OV        0.97     PT        1.19     
!   SC        1.03     
! 
! 
! Fit before self-cal, rms=0.103605Jy  sigma=0.634953
! Fit after  self-cal, rms=0.098281Jy  sigma=0.597881
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.9426 mas, bmaj=2.352 mas, bpa=2.484 degrees
! Estimated noise=1.88818 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 (1.4, 1.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00885239 Jy
! Component: 100  -  total flux cleaned = 0.00874966 Jy
! Total flux subtracted in 100 components = 0.00874966 Jy
! Clean residual min=-0.005237 max=0.006878 Jy/beam
! Clean residual mean=0.000006 rms=0.001439 Jy/beam
! Combined flux in latest and established models = 0.406614 Jy
! Performing phase self-cal over 0.333333 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 15 components and 0.406614 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.097544Jy  sigma=0.592654
! Fit after  self-cal, rms=0.097541Jy  sigma=0.592313
! 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=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000146319 Jy
! Component: 100  -  total flux cleaned = -0.000526489 Jy
! Total flux subtracted in 100 components = -0.000526489 Jy
! Clean residual min=-0.005200 max=0.006315 Jy/beam
! Clean residual mean=0.000006 rms=0.001403 Jy/beam
! Combined flux in latest and established models = 0.406088 Jy
! Performing amp+phase self-cal over 0.5 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 20 components and 0.406088 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.097416Jy  sigma=0.591398
! Fit after  self-cal, rms=0.094849Jy  sigma=0.571116
! Inverting map and beam 
! Estimated beam: bmin=0.9409 mas, bmaj=2.344 mas, bpa=2.436 degrees
! Estimated noise=1.8961 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=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00420218 Jy
! Component: 100  -  total flux cleaned = 0.00646826 Jy
! Total flux subtracted in 100 components = 0.00646826 Jy
! Clean residual min=-0.004462 max=0.004980 Jy/beam
! Clean residual mean=0.000003 rms=0.001136 Jy/beam
! Combined flux in latest and established models = 0.412556 Jy
! Performing phase self-cal over 0.333333 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 34 components and 0.412556 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.094693Jy  sigma=0.569969
! Fit after  self-cal, rms=0.094695Jy  sigma=0.569859
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1354-152_X
! Writing UV FITS file: 1354-152_X.uvf
! Writing 34 model components to file: 1354-152_X.mod
! wwins: Wrote 2 windows to 1354-152_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9409 x 2.344 at 2.436 degrees (North through East)
! Clean map  min=-0.0042842  max=0.40157 Jy/beam
! Writing clean map to FITS file: 1354-152_X.fits
! Writing difmap environment to: 1354-152_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1354-152_Xuv.ps/vps,1,2
! Attempting to open device: '1354-152_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1354-152_Xim.ps/vps
! Attempting to open device: '1354-152_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=0.9409 mas, bmaj=2.344 mas, bpa=2.436 degrees
! Estimated noise=1.8961 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9409 x 2.344 at 2.436 degrees (North through East)
! Clean map  min=-0.0042842  max=0.40157 Jy/beam
quit
! Quitting program
! Log file 1354-152_X.log closed on Tue Apr 14 23:08:41 1998