! Started logfile: 1300+580_X.log on Fri Nov 13 20:54:33 1998
observe 1300+580_X.edt
! Reading UV FITS file: 1300+580_X.edt
! AN table 1: 126 integrations on 88 of 91 possible baselines.
! AN table 2: 28 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.462342 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1300+580
! 
! 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.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 744 lines of history.
! 
! Reading 22836 visibilities.
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: 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 650 telescope corrections were flagged in sub-array 1.
!  A total of 210 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 650 telescope corrections were flagged in sub-array 1.
!  A total of 210 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 650 telescope corrections were flagged in sub-array 1.
!  A total of 210 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 650 telescope corrections were flagged in sub-array 1.
!  A total of 210 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=0.698034Jy  sigma=3.378222
! Fit after  self-cal, rms=0.697925Jy  sigma=3.377717
! 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.7971 mas, bmaj=0.8241 mas, bpa=34.26 degrees
! Estimated noise=2.3424 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.238579 Jy
! Total flux subtracted in 50 components = 0.238579 Jy
! Clean residual min=-0.010163 max=0.066574 Jy/beam
! Clean residual mean=0.000110 rms=0.003142 Jy/beam
! Combined flux in latest and established models = 0.238579 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.238579 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.112419Jy  sigma=0.536475
! Fit after  self-cal, rms=0.112419Jy  sigma=0.536475
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0520272 Jy
! Total flux subtracted in 50 components = 0.0520272 Jy
! Clean residual min=-0.004913 max=0.014549 Jy/beam
! Clean residual mean=0.000057 rms=0.001399 Jy/beam
! Combined flux in latest and established models = 0.290606 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 2 model components to the UV plane model.
! The established model now contains 2 components and 0.290606 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.090279Jy  sigma=0.426858
! Fit after  self-cal, rms=0.090278Jy  sigma=0.426857
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0119604 Jy
! Total flux subtracted in 50 components = 0.0119604 Jy
! Clean residual min=-0.004846 max=0.005504 Jy/beam
! Clean residual mean=0.000044 rms=0.001236 Jy/beam
! Combined flux in latest and established models = 0.302566 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.302566 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.088784Jy  sigma=0.419343
! Fit after  self-cal, rms=0.088778Jy  sigma=0.419322
! 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.006 mas, bmaj=1.401 mas, bpa=-60.47 degrees
! Estimated noise=1.01087 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.00617693 Jy
! Component: 100  -  total flux cleaned = 0.0089908 Jy
! Total flux subtracted in 100 components = 0.0089908 Jy
! Clean residual min=-0.002603 max=0.004338 Jy/beam
! Clean residual mean=0.000137 rms=0.000823 Jy/beam
! Combined flux in latest and established models = 0.311557 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 15 components and 0.311557 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.088421Jy  sigma=0.417488
! Fit after  self-cal, rms=0.088415Jy  sigma=0.417459
! 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 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.99     GC        1.02     GN        0.98     
!   HN        1.00     KP        1.00     LA        0.98     MC        1.00     
!   MK        1.04     NL        1.01     OV        1.02     PT        1.00     
!   SC        0.96     WF        1.02     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.00     GC        1.00*    GN        1.07     
!   HN        1.03     KP        1.03     LA        1.00*    NL        1.02     
!   OV        1.02     PT        1.03     
! 
! 
! Correcting IF 2.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.01     GC        0.98     GN        0.97     
!   HN        0.99     KP        0.99     LA        0.98     MC        0.98     
!   MK        1.02     NL        1.00     OV        1.02     PT        1.02     
!   SC        0.99     WF        0.98     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.57     GC        1.00*    GN        1.15     
!   HN        1.30     KP        1.24     LA        1.00*    NL        1.14     
!   OV        1.04     PT        1.58     
! 
! 
! Correcting IF 3.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.01     GC        1.00     GN        0.98     
!   HN        0.98     KP        1.00     LA        0.98     MC        0.95     
!   MK        1.02     NL        1.01     OV        1.01     PT        1.01     
!   SC        0.98     WF        0.98     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.94     GC        1.00*    GN        1.18     
!   HN        0.99     KP        1.02     LA        1.00*    NL        1.03     
!   OV        0.98     PT        1.06     
! 
! 
! Correcting IF 4.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.00     GC        1.03     GN        1.00     
!   HN        0.98     KP        0.99     LA        0.99     MC        0.97     
!   MK        1.05     NL        0.99     OV        1.01     PT        1.03     
!   SC        1.00     WF        0.97     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.89     FD        0.98     GC        1.00*    GN        1.09     
!   HN        1.08     KP        0.99     LA        1.00*    NL        1.06     
!   OV        1.01     PT        1.05     
! 
! 
! Fit before self-cal, rms=0.088415Jy  sigma=0.417459
! Fit after  self-cal, rms=0.087183Jy  sigma=0.413179
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.007 mas, bmaj=1.399 mas, bpa=-61.13 degrees
! Estimated noise=1.00926 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.00164857 Jy
! Component: 100  -  total flux cleaned = 0.00194072 Jy
! Total flux subtracted in 100 components = 0.00194072 Jy
! Clean residual min=-0.002272 max=0.004410 Jy/beam
! Clean residual mean=0.000103 rms=0.000743 Jy/beam
! Combined flux in latest and established models = 0.313498 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 20 components and 0.313498 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.087114Jy  sigma=0.412820
! Fit after  self-cal, rms=0.087110Jy  sigma=0.412789
! 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)
! Added new window around map position (0.9, 4.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00442007 Jy
! Component: 100  -  total flux cleaned = 0.00696249 Jy
! Total flux subtracted in 100 components = 0.00696249 Jy
! Clean residual min=-0.002071 max=0.002631 Jy/beam
! Clean residual mean=0.000064 rms=0.000565 Jy/beam
! Combined flux in latest and established models = 0.32046 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 29 model components to the UV plane model.
! The established model now contains 49 components and 0.32046 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.086906Jy  sigma=0.411780
! Fit after  self-cal, rms=0.086355Jy  sigma=0.407331
! Inverting map and beam 
! Estimated beam: bmin=1.006 mas, bmaj=1.394 mas, bpa=-61.02 degrees
! Estimated noise=1.01002 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.00196768 Jy
! Component: 100  -  total flux cleaned = 0.00335126 Jy
! Total flux subtracted in 100 components = 0.00335126 Jy
! Clean residual min=-0.001925 max=0.002125 Jy/beam
! Clean residual mean=0.000065 rms=0.000478 Jy/beam
! Combined flux in latest and established models = 0.323812 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 58 components and 0.323812 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.086311Jy  sigma=0.407106
! Fit after  self-cal, rms=0.086309Jy  sigma=0.407093
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1300+580_X
! Writing UV FITS file: 1300+580_X.uvf
! Writing 58 model components to file: 1300+580_X.mod
! wwins: Wrote 2 windows to 1300+580_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.006 x 1.394 at -61.02 degrees (North through East)
! Clean map  min=-0.0018696  max=0.30624 Jy/beam
! Writing clean map to FITS file: 1300+580_X.fits
! Writing difmap environment to: 1300+580_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1300+580_Xuv.ps/vps,1,2
! Attempting to open device: '1300+580_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1300+580_Xim.ps/vps
! Attempting to open device: '1300+580_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.006 mas, bmaj=1.394 mas, bpa=-61.02 degrees
! Estimated noise=1.01002 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.006 x 1.394 at -61.02 degrees (North through East)
! Clean map  min=-0.0018696  max=0.30624 Jy/beam
quit
! Quitting program
! Log file 1300+580_X.log closed on Fri Nov 13 21:00:18 1998