! Started logfile: 1300+580_X.log on Wed Feb 18 19:44:36 1998
observe 1300+580_X.edt
! Reading UV FITS file: 1300+580_X.edt
! AN table 1: 34 integrations on 66 of 66 possible baselines.
! AN table 2: 44 integrations on 78 of 78 possible baselines.
! AN table 3: 18 integrations on 2 of 3 possible baselines.
! Apparent sampling: 0.791842 visibilities/baseline/integration-bin.
! 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 724 lines of history.
! 
! Reading 18092 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 = 9.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 163 telescope corrections were flagged in sub-array 1.
!  A total of 92 telescope corrections were flagged in sub-array 2.
!  A total of 54 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 163 telescope corrections were flagged in sub-array 1.
!  A total of 92 telescope corrections were flagged in sub-array 2.
!  A total of 54 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 163 telescope corrections were flagged in sub-array 1.
!  A total of 92 telescope corrections were flagged in sub-array 2.
!  A total of 54 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 163 telescope corrections were flagged in sub-array 1.
!  A total of 92 telescope corrections were flagged in sub-array 2.
!  A total of 54 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.654817Jy  sigma=3.226491
! Fit after  self-cal, rms=0.654441Jy  sigma=3.224647
! 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.6171 mas, bmaj=1.511 mas, bpa=21.73 degrees
! Estimated noise=2.23859 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.274307 Jy
! Total flux subtracted in 50 components = 0.274307 Jy
! Clean residual min=-0.015775 max=0.076534 Jy/beam
! Clean residual mean=0.000184 rms=0.004585 Jy/beam
! Combined flux in latest and established models = 0.274307 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.274307 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.137255Jy  sigma=0.675223
! Fit after  self-cal, rms=0.137256Jy  sigma=0.675224
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0598185 Jy
! Total flux subtracted in 50 components = 0.0598185 Jy
! Clean residual min=-0.010605 max=0.016712 Jy/beam
! Clean residual mean=0.000085 rms=0.002540 Jy/beam
! Combined flux in latest and established models = 0.334126 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.334126 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.112956Jy  sigma=0.555396
! Fit after  self-cal, rms=0.112956Jy  sigma=0.555396
! 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.829 mas, bmaj=1.638 mas, bpa=22.78 degrees
! Estimated noise=1.15715 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.0186401 Jy
! Component: 100  -  total flux cleaned = 0.0278329 Jy
! Total flux subtracted in 100 components = 0.0278329 Jy
! Clean residual min=-0.005409 max=0.007448 Jy/beam
! Clean residual mean=0.000104 rms=0.001503 Jy/beam
! Combined flux in latest and established models = 0.361959 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 14 components and 0.361959 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.110234Jy  sigma=0.541976
! Fit after  self-cal, rms=0.110225Jy  sigma=0.541937
! 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.95     FD        0.99     GC        1.00*    GN        1.01     
!   HN        1.02     KP        0.97     LA        0.98     NL        1.08     
!   ON        0.89     OV        0.98     PT        0.99     WF        1.04     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.96     GC        1.00     GN        0.96     
!   HN        1.01     KK        1.18     KP        0.96     LA        0.99     
!   MK        1.00     NL        0.97     OV        0.98     PT        0.97     
!   WF        1.08     
! 
!  Telescope amplitude corrections in sub-array 3:
!   GC        0.00*    GN        0.00*    HN        0.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.99     GC        1.00*    GN        1.08     
!   HN        1.03     KP        0.98     LA        0.96     NL        1.06     
!   ON        0.85     OV        0.99     PT        0.96     WF        1.01     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.99     GC        0.96     GN        1.03     
!   HN        1.01     KK        1.24     KP        0.96     LA        0.99     
!   MK        0.99     NL        0.93     OV        0.98     PT        0.97     
!   WF        1.09     
! 
!  Telescope amplitude corrections in sub-array 3:
!   GC        0.00*    GN        0.00*    HN        0.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.99     GC        1.00*    GN        0.97     
!   HN        1.03     KP        0.97     LA        0.97     NL        1.08     
!   ON        0.84     OV        0.99     PT        0.98     WF        0.99     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.97     GC        0.95     GN        0.92     
!   HN        1.00     KK        1.26     KP        0.97     LA        1.00     
!   MK        1.01     NL        0.95     OV        0.97     PT        0.98     
!   WF        1.04     
! 
!  Telescope amplitude corrections in sub-array 3:
!   GC        0.00*    GN        0.00*    HN        0.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.98     GC        1.00*    GN        0.99     
!   HN        1.00     KP        0.99     LA        0.99     NL        1.10     
!   ON        0.84     OV        0.98     PT        0.98     WF        0.99     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.96     GC        0.99     GN        0.94     
!   HN        0.99     KK        1.22     KP        0.98     LA        1.00     
!   MK        1.00     NL        0.93     OV        0.98     PT        0.99     
!   WF        1.06     
! 
!  Telescope amplitude corrections in sub-array 3:
!   GC        0.00*    GN        0.00*    HN        0.00*    
! 
! 
! Fit before self-cal, rms=0.110225Jy  sigma=0.541937
! Fit after  self-cal, rms=0.106473Jy  sigma=0.521649
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.8329 mas, bmaj=1.627 mas, bpa=22.59 degrees
! Estimated noise=1.14334 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.000496274 Jy
! Component: 100  -  total flux cleaned = 0.000501436 Jy
! Total flux subtracted in 100 components = 0.000501436 Jy
! Clean residual min=-0.002503 max=0.004616 Jy/beam
! Clean residual mean=0.000186 rms=0.000719 Jy/beam
! Combined flux in latest and established models = 0.36246 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.36246 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.106411Jy  sigma=0.521341
! Fit after  self-cal, rms=0.106427Jy  sigma=0.521309
! 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 = 0.0001252 Jy
! Component: 100  -  total flux cleaned = 0.000122533 Jy
! Total flux subtracted in 100 components = 0.000122533 Jy
! Clean residual min=-0.002496 max=0.004502 Jy/beam
! Clean residual mean=0.000184 rms=0.000709 Jy/beam
! Combined flux in latest and established models = 0.362583 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 27 components and 0.362583 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.106402Jy  sigma=0.521181
! Fit after  self-cal, rms=0.105740Jy  sigma=0.516727
! Inverting map and beam 
! Estimated beam: bmin=0.8335 mas, bmaj=1.624 mas, bpa=22.63 degrees
! Estimated noise=1.14439 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.000203403 Jy
! Component: 100  -  total flux cleaned = 0.000304046 Jy
! Total flux subtracted in 100 components = 0.000304046 Jy
! Clean residual min=-0.002519 max=0.004357 Jy/beam
! Clean residual mean=0.000178 rms=0.000684 Jy/beam
! Combined flux in latest and established models = 0.362887 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 31 components and 0.362887 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.105717Jy  sigma=0.516611
! Fit after  self-cal, rms=0.105721Jy  sigma=0.516605
! 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 31 model components to file: 1300+580_X.mod
! wwins: Wrote 1 windows to 1300+580_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8335 x 1.624 at 22.63 degrees (North through East)
! Clean map  min=-0.0024316  max=0.34982 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=0.8335 mas, bmaj=1.624 mas, bpa=22.63 degrees
! Estimated noise=1.14439 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8335 x 1.624 at 22.63 degrees (North through East)
! Clean map  min=-0.0024316  max=0.34982 Jy/beam
quit
! Quitting program
! Log file 1300+580_X.log closed on Wed Feb 18 19:49:45 1998