! Started logfile: 1502+036_X.log on Tue Apr 14 23:37:41 1998
observe 1502+036_X.edt
! Reading UV FITS file: 1502+036_X.edt
! AN table 1: 44 integrations on 36 of 36 possible baselines.
! Apparent sampling: 0.820076 visibilities/baseline/integration-bin.
! Found source: 1502+036
! 
! 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 5196 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 56 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 56 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 56 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 56 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.516309Jy  sigma=3.169377
! Fit after  self-cal, rms=0.516262Jy  sigma=3.169108
! 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.8414 mas, bmaj=1.835 mas, bpa=6.995 degrees
! Estimated noise=2.29697 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.382794 Jy
! Total flux subtracted in 50 components = 0.382794 Jy
! Clean residual min=-0.023012 max=0.106766 Jy/beam
! Clean residual mean=-0.000020 rms=0.006817 Jy/beam
! Combined flux in latest and established models = 0.382794 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.382794 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.158645Jy  sigma=0.969466
! Fit after  self-cal, rms=0.158645Jy  sigma=0.969465
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0850966 Jy
! Total flux subtracted in 50 components = 0.0850966 Jy
! Clean residual min=-0.013812 max=0.029294 Jy/beam
! Clean residual mean=-0.000005 rms=0.003839 Jy/beam
! Combined flux in latest and established models = 0.467891 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.467891 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.114618Jy  sigma=0.699636
! Fit after  self-cal, rms=0.114613Jy  sigma=0.699604
! 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.017 mas, bmaj=2.094 mas, bpa=7.161 degrees
! Estimated noise=1.6506 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.03029 Jy
! Component: 100  -  total flux cleaned = 0.0371184 Jy
! Total flux subtracted in 100 components = 0.0371184 Jy
! Clean residual min=-0.013004 max=0.019633 Jy/beam
! Clean residual mean=0.000016 rms=0.003528 Jy/beam
! Combined flux in latest and established models = 0.505009 Jy
! Performing phase self-cal over 0.333333 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 0.505009 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.107757Jy  sigma=0.657991
! Fit after  self-cal, rms=0.107703Jy  sigma=0.657658
! 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.93     HN        0.92     LA        0.98     
!   MK        0.97     NL        0.96     OV        0.98     PT        1.19     
!   SC        1.01     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.94     HN        0.93     LA        0.98     
!   MK        1.01     NL        0.95     OV        0.98     PT        1.21     
!   SC        1.03     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.93     HN        0.96     LA        0.99     
!   MK        1.00     NL        0.97     OV        0.98     PT        1.21     
!   SC        1.02     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.94     HN        0.93     LA        1.00     
!   MK        0.98     NL        0.97     OV        0.99     PT        1.22     
!   SC        1.04     
! 
! 
! Fit before self-cal, rms=0.107703Jy  sigma=0.657658
! Fit after  self-cal, rms=0.095444Jy  sigma=0.584819
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.017 mas, bmaj=2.083 mas, bpa=6.535 degrees
! Estimated noise=1.63384 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.00219461 Jy
! Component: 100  -  total flux cleaned = 0.0015493 Jy
! Total flux subtracted in 100 components = 0.0015493 Jy
! Clean residual min=-0.007799 max=0.008236 Jy/beam
! Clean residual mean=-0.000007 rms=0.001776 Jy/beam
! Combined flux in latest and established models = 0.506559 Jy
! Performing phase self-cal over 0.333333 minute time intervals
! Adding 4 model components to the UV plane model.
! The established model now contains 14 components and 0.506559 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.095192Jy  sigma=0.583230
! Fit after  self-cal, rms=0.095193Jy  sigma=0.582865
! 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.000557713 Jy
! Component: 100  -  total flux cleaned = -8.43182e-05 Jy
! Total flux subtracted in 100 components = -8.43182e-05 Jy
! Clean residual min=-0.007649 max=0.008286 Jy/beam
! Clean residual mean=-0.000007 rms=0.001760 Jy/beam
! Combined flux in latest and established models = 0.506474 Jy
! Performing amp+phase self-cal over 0.5 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 15 components and 0.506474 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.095054Jy  sigma=0.581979
! Fit after  self-cal, rms=0.090354Jy  sigma=0.544597
! Inverting map and beam 
! Estimated beam: bmin=1.015 mas, bmaj=2.076 mas, bpa=6.524 degrees
! Estimated noise=1.6366 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.00360583 Jy
! Component: 100  -  total flux cleaned = 0.00411082 Jy
! Total flux subtracted in 100 components = 0.00411082 Jy
! Clean residual min=-0.004396 max=0.005071 Jy/beam
! Clean residual mean=-0.000007 rms=0.001076 Jy/beam
! Combined flux in latest and established models = 0.510585 Jy
! Performing phase self-cal over 0.333333 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 20 components and 0.510585 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.090222Jy  sigma=0.543725
! Fit after  self-cal, rms=0.090222Jy  sigma=0.543615
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1502+036_X
! Writing UV FITS file: 1502+036_X.uvf
! Writing 20 model components to file: 1502+036_X.mod
! wwins: Wrote 1 windows to 1502+036_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.015 x 2.076 at 6.524 degrees (North through East)
! Clean map  min=-0.0040481  max=0.48917 Jy/beam
! Writing clean map to FITS file: 1502+036_X.fits
! Writing difmap environment to: 1502+036_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1502+036_Xuv.ps/vps,1,2
! Attempting to open device: '1502+036_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1502+036_Xim.ps/vps
! Attempting to open device: '1502+036_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.015 mas, bmaj=2.076 mas, bpa=6.524 degrees
! Estimated noise=1.6366 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.015 x 2.076 at 6.524 degrees (North through East)
! Clean map  min=-0.0040481  max=0.48917 Jy/beam
quit
! Quitting program
! Log file 1502+036_X.log closed on Tue Apr 14 23:42:26 1998