! Started logfile: 1300+580_S.log on Thu Nov  5 11:42:32 1998
observe 1300+580_S.edt
! Reading UV FITS file: 1300+580_S.edt
! AN table 1: 126 integrations on 76 of 78 possible baselines.
! AN table 2: 19 integrations on 36 of 36 possible baselines.
! Apparent sampling: 0.528363 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  2.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 748 lines of history.
! 
! Reading 21684 visibilities.
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.4
integer clean_niter
clean_niter = 50
float clean_gain
clean_gain = 0.03
float dynam
dynam = 7.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.400x0.400 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 529 telescope corrections were flagged in sub-array 1.
!  A total of 114 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 529 telescope corrections were flagged in sub-array 1.
!  A total of 114 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 529 telescope corrections were flagged in sub-array 1.
!  A total of 114 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 545 telescope corrections were flagged in sub-array 1.
!  A total of 114 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=0.788626Jy  sigma=3.804429
! Fit after  self-cal, rms=0.788314Jy  sigma=3.803553
! 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=2.862 mas, bmaj=4.139 mas, bpa=-35.01 degrees
! Estimated noise=2.26805 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.165023 Jy
! Total flux subtracted in 50 components = 0.165023 Jy
! Clean residual min=-0.009647 max=0.046047 Jy/beam
! Clean residual mean=0.000110 rms=0.002916 Jy/beam
! Combined flux in latest and established models = 0.165023 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.165023 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.133231Jy  sigma=0.633755
! Fit after  self-cal, rms=0.133231Jy  sigma=0.633755
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0370438 Jy
! Total flux subtracted in 50 components = 0.0370438 Jy
! Clean residual min=-0.007810 max=0.014825 Jy/beam
! Clean residual mean=0.000068 rms=0.001957 Jy/beam
! Combined flux in latest and established models = 0.202067 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 0.202067 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.122277Jy  sigma=0.578935
! Fit after  self-cal, rms=0.122253Jy  sigma=0.578838
! Inverting map 
! Added new window around map position (1.2, 4).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.016027 Jy
! Total flux subtracted in 50 components = 0.016027 Jy
! Clean residual min=-0.007329 max=0.007739 Jy/beam
! Clean residual mean=0.000049 rms=0.001748 Jy/beam
! Combined flux in latest and established models = 0.218094 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 12 components and 0.218094 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.119848Jy  sigma=0.566785
! Fit after  self-cal, rms=0.119782Jy  sigma=0.566490
! 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=3.775 mas, bmaj=6.55 mas, bpa=-55.31 degrees
! Estimated noise=1.03231 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.0161542 Jy
! Component: 100  -  total flux cleaned = 0.0243768 Jy
! Total flux subtracted in 100 components = 0.0243768 Jy
! Clean residual min=-0.003609 max=0.005403 Jy/beam
! Clean residual mean=0.000236 rms=0.001193 Jy/beam
! Combined flux in latest and established models = 0.24247 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 37 model components to the UV plane model.
! The established model now contains 44 components and 0.24247 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.117909Jy  sigma=0.556981
! Fit after  self-cal, rms=0.117829Jy  sigma=0.556603
! 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 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00     GC        1.00     GN        0.98     
!   HN        0.99     KP        1.03     LA        0.92     MK        1.02     
!   NL        0.89     OV        0.99     PT        1.00     SC        1.02     
!   WF        0.87     
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.00*    GN        1.00*    HN        0.93     
!   KP        0.99     LA        1.00*    NL        1.00*    OV        1.00     
!   PT        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.99     GC        0.95     GN        1.01     
!   HN        1.03     KP        1.01     LA        0.96     MK        1.03     
!   NL        0.98     OV        1.00     PT        1.00     SC        0.99     
!   WF        0.96     
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.00*    GN        1.00*    HN        1.08     
!   KP        0.93     LA        1.00*    NL        1.00*    OV        1.05     
!   PT        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.98     GC        1.00     GN        0.98     
!   HN        1.02     KP        0.94     LA        0.94     MK        1.01     
!   NL        0.99     OV        1.09     PT        0.98     SC        0.99     
!   WF        0.99     
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.00*    GN        1.00*    HN        0.94     
!   KP        0.99     LA        1.00*    NL        1.00*    OV        0.82     
!   PT        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.00     GC        1.36     GN        0.99     
!   HN        1.01     KP        0.99     LA        0.93     MK        0.98     
!   NL        0.96     OV        1.11     PT        0.99     SC        0.96     
!   WF        1.35     
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.00*    GN        1.00*    HN        1.48     
!   KP        0.94     LA        1.00*    NL        1.00*    OV        1.09     
!   PT        1.00*    
! 
! 
! Fit before self-cal, rms=0.117829Jy  sigma=0.556603
! Fit after  self-cal, rms=0.116309Jy  sigma=0.550203
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.815 mas, bmaj=6.65 mas, bpa=-55.88 degrees
! Estimated noise=1.01819 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.00378836 Jy
! Component: 100  -  total flux cleaned = 0.00482974 Jy
! Total flux subtracted in 100 components = 0.00482974 Jy
! Clean residual min=-0.003061 max=0.003014 Jy/beam
! Clean residual mean=0.000093 rms=0.000732 Jy/beam
! Combined flux in latest and established models = 0.2473 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 52 components and 0.2473 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.116203Jy  sigma=0.549668
! Fit after  self-cal, rms=0.116207Jy  sigma=0.549586
! 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.000912599 Jy
! Component: 100  -  total flux cleaned = 0.00111698 Jy
! Total flux subtracted in 100 components = 0.00111698 Jy
! Clean residual min=-0.003048 max=0.002814 Jy/beam
! Clean residual mean=0.000087 rms=0.000723 Jy/beam
! Combined flux in latest and established models = 0.248417 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 58 components and 0.248417 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.116185Jy  sigma=0.549486
! Fit after  self-cal, rms=0.117456Jy  sigma=0.538337
! Inverting map and beam 
! Estimated beam: bmin=3.814 mas, bmaj=6.591 mas, bpa=-56.11 degrees
! Estimated noise=1.02111 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.00174027 Jy
! Component: 100  -  total flux cleaned = 0.00252744 Jy
! Total flux subtracted in 100 components = 0.00252744 Jy
! Clean residual min=-0.002199 max=0.002527 Jy/beam
! Clean residual mean=0.000089 rms=0.000604 Jy/beam
! Combined flux in latest and established models = 0.250945 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 65 components and 0.250945 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.117429Jy  sigma=0.538231
! Fit after  self-cal, rms=0.117441Jy  sigma=0.538195
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1300+580_S
! Writing UV FITS file: 1300+580_S.uvf
! Writing 65 model components to file: 1300+580_S.mod
! wwins: Wrote 2 windows to 1300+580_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.814 x 6.591 at -56.11 degrees (North through East)
! Clean map  min=-0.0021218  max=0.2152 Jy/beam
! Writing clean map to FITS file: 1300+580_S.fits
! Writing difmap environment to: 1300+580_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1300+580_Suv.ps/vps,1,2
! Attempting to open device: '1300+580_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1300+580_Sim.ps/vps
! Attempting to open device: '1300+580_Sim.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=3.814 mas, bmaj=6.591 mas, bpa=-56.11 degrees
! Estimated noise=1.02111 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.814 x 6.591 at -56.11 degrees (North through East)
! Clean map  min=-0.0021218  max=0.2152 Jy/beam
quit
! Quitting program
! Log file 1300+580_S.log closed on Thu Nov  5 11:46:37 1998