! Started logfile: 1308+326_S.log on Mon Nov 25 11:22:43 2002
observe 1308+326_S.edt
! Reading UV FITS file: 1308+326_S.edt
! AN table 1: 176 integrations on 120 of 120 possible baselines.
! AN table 2: 97 integrations on 120 of 120 possible baselines.
! AN table 3: 34 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.285966 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1308+326
! 
! 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 6827 lines of history.
! 
! Reading 42140 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 = 6.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 1761 telescope corrections were flagged in sub-array 1.
!  A total of 855 telescope corrections were flagged in sub-array 2.
!  A total of 276 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1761 telescope corrections were flagged in sub-array 1.
!  A total of 849 telescope corrections were flagged in sub-array 2.
!  A total of 276 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1760 telescope corrections were flagged in sub-array 1.
!  A total of 855 telescope corrections were flagged in sub-array 2.
!  A total of 276 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1763 telescope corrections were flagged in sub-array 1.
!  A total of 855 telescope corrections were flagged in sub-array 2.
!  A total of 276 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.983877Jy  sigma=6.889084
! Fit after  self-cal, rms=0.984170Jy  sigma=6.891262
! 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.161 mas, bmaj=3.251 mas, bpa=-15.07 degrees
! Estimated noise=1.02692 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 = 1.41847 Jy
! Total flux subtracted in 50 components = 1.41847 Jy
! Clean residual min=-0.049984 max=0.395982 Jy/beam
! Clean residual mean=0.000102 rms=0.012330 Jy/beam
! Combined flux in latest and established models = 1.41847 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 1.41847 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.609788Jy  sigma=4.263268
! Fit after  self-cal, rms=0.609788Jy  sigma=4.263269
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.367343 Jy
! Total flux subtracted in 50 components = 0.367343 Jy
! Clean residual min=-0.028080 max=0.158961 Jy/beam
! Clean residual mean=0.000050 rms=0.007036 Jy/beam
! Combined flux in latest and established models = 1.78581 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 8 components and 1.78581 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.352064Jy  sigma=2.452088
! Fit after  self-cal, rms=0.352040Jy  sigma=2.451936
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.170322 Jy
! Total flux subtracted in 50 components = 0.170322 Jy
! Clean residual min=-0.025923 max=0.077047 Jy/beam
! Clean residual mean=0.000025 rms=0.005291 Jy/beam
! Combined flux in latest and established models = 1.95613 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 9 components and 1.95613 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.267874Jy  sigma=1.859245
! Fit after  self-cal, rms=0.267867Jy  sigma=1.859197
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0829363 Jy
! Total flux subtracted in 50 components = 0.0829363 Jy
! Clean residual min=-0.026229 max=0.038630 Jy/beam
! Clean residual mean=0.000014 rms=0.004792 Jy/beam
! Combined flux in latest and established models = 2.03907 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 11 components and 2.03907 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.243000Jy  sigma=1.684708
! Fit after  self-cal, rms=0.242992Jy  sigma=1.684659
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0467258 Jy
! Total flux subtracted in 50 components = 0.0467258 Jy
! Clean residual min=-0.027265 max=0.027223 Jy/beam
! Clean residual mean=0.000006 rms=0.004624 Jy/beam
! Combined flux in latest and established models = 2.0858 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 21 components and 2.0858 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.235057Jy  sigma=1.629433
! Fit after  self-cal, rms=0.235047Jy  sigma=1.629373
! 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=2.701 mas, bmaj=3.95 mas, bpa=-17.47 degrees
! Estimated noise=0.520132 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 (-5.6, 1.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.046429 Jy
! Component: 100  -  total flux cleaned = 0.0736606 Jy
! Total flux subtracted in 100 components = 0.0736606 Jy
! Clean residual min=-0.028148 max=0.025874 Jy/beam
! Clean residual mean=-0.000269 rms=0.005040 Jy/beam
! Combined flux in latest and established models = 2.15946 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 38 components and 2.15946 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.226525Jy  sigma=1.568885
! Fit after  self-cal, rms=0.226180Jy  sigma=1.566465
! 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 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.97     GC        1.06     HN        1.06     
!   KK        0.98     KP        1.06     LA        0.99     MC        1.12     
!   MK        1.00     NL        0.95     NY        1.00     OV        0.97     
!   PT        0.99     SC        0.99     WF        1.04     GN        0.95     
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.96     GC        0.99     HN        0.99     
!   KK        0.94     KP        1.08     LA        0.97     MC        1.10     
!   MK        1.00     NL        0.87     NY        1.00     OV        0.97     
!   PT        0.98     SC        0.97     WF        1.01     GN        0.91     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.97     GC        0.97     HN        0.98     
!   KK        0.97     KP        1.06     LA        0.98     MC        1.00*    
!   MK        1.02     NL        0.99     NY        1.01     OV        1.00     
!   PT        0.99     SC        1.02     WF        0.98     GN        1.01     
! 
! 
! Correcting IF 2.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.99     GC        1.07     HN        1.06     
!   KK        0.96     KP        1.13     LA        0.98     MC        1.22     
!   MK        0.97     NL        0.96     NY        0.99     OV        0.97     
!   PT        0.99     SC        0.99     WF        1.04     GN        0.93     
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.98     GC        0.99     HN        1.00     
!   KK        0.92     KP        1.11     LA        0.97     MC        1.06     
!   MK        0.98     NL        0.87     NY        1.00     OV        0.98     
!   PT        0.98     SC        0.97     WF        0.99     GN        0.91     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.98     GC        0.97     HN        0.98     
!   KK        0.95     KP        1.12     LA        0.98     MC        1.00*    
!   MK        1.00     NL        0.99     NY        1.01     OV        1.01     
!   PT        0.98     SC        1.03     WF        1.00     GN        1.01     
! 
! 
! Correcting IF 3.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.98     GC        1.07     HN        1.02     
!   KK        0.97     KP        1.06     LA        1.00     MC        1.05     
!   MK        0.99     NL        0.96     NY        1.01     OV        0.95     
!   PT        0.99     SC        0.99     WF        1.04     GN        0.95     
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.96     GC        1.00     HN        0.99     
!   KK        0.94     KP        1.04     LA        0.98     MC        1.72     
!   MK        1.00     NL        0.87     NY        1.02     OV        0.96     
!   PT        0.98     SC        0.98     WF        0.99     GN        0.94     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.97     GC        0.98     HN        0.98     
!   KK        0.97     KP        1.05     LA        0.99     MC        1.00*    
!   MK        1.02     NL        0.99     NY        1.03     OV        1.01     
!   PT        0.98     SC        1.02     WF        1.01     GN        1.02     
! 
! 
! Correcting IF 4.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.99     GC        1.05     HN        1.04     
!   KK        0.98     KP        1.13     LA        0.99     MC        1.14     
!   MK        0.98     NL        0.95     NY        1.00     OV        0.95     
!   PT        1.01     SC        1.00     WF        1.05     GN        0.95     
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.97     GC        0.99     HN        0.99     
!   KK        0.95     KP        1.11     LA        0.98     MC        1.21     
!   MK        0.99     NL        0.86     NY        1.00     OV        0.96     
!   PT        1.06     SC        0.99     WF        1.00     GN        0.93     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.99     GC        0.98     HN        0.97     
!   KK        0.97     KP        1.12     LA        0.98     MC        1.00*    
!   MK        1.01     NL        0.99     NY        1.02     OV        0.99     
!   PT        1.04     SC        1.03     WF        1.01     GN        1.02     
! 
! 
! Fit before self-cal, rms=0.226180Jy  sigma=1.566465
! Fit after  self-cal, rms=0.179017Jy  sigma=1.167558
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.74 mas, bmaj=3.978 mas, bpa=-18.57 degrees
! Estimated noise=0.522071 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.0130788 Jy
! Component: 100  -  total flux cleaned = 0.0146754 Jy
! Total flux subtracted in 100 components = 0.0146754 Jy
! Clean residual min=-0.008918 max=0.009982 Jy/beam
! Clean residual mean=0.000149 rms=0.002030 Jy/beam
! Combined flux in latest and established models = 2.17413 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 48 components and 2.17413 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177333Jy  sigma=1.155034
! Fit after  self-cal, rms=0.177236Jy  sigma=1.154280
! 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 (-18.4, 3.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0101986 Jy
! Component: 100  -  total flux cleaned = 0.0133339 Jy
! Total flux subtracted in 100 components = 0.0133339 Jy
! Clean residual min=-0.008869 max=0.009223 Jy/beam
! Clean residual mean=0.000075 rms=0.001943 Jy/beam
! Combined flux in latest and established models = 2.18747 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 61 components and 2.18747 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.176624Jy  sigma=1.150063
! Fit after  self-cal, rms=0.127308Jy  sigma=0.817973
! Inverting map and beam 
! Estimated beam: bmin=2.743 mas, bmaj=3.98 mas, bpa=-18.8 degrees
! Estimated noise=0.52196 mJy/beam.
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0070403 Jy
! Component: 100  -  total flux cleaned = 0.00832409 Jy
! Total flux subtracted in 100 components = 0.00832409 Jy
! Clean residual min=-0.004650 max=0.004776 Jy/beam
! Clean residual mean=0.000057 rms=0.000766 Jy/beam
! Combined flux in latest and established models = 2.19579 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 76 components and 2.19579 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.126592Jy  sigma=0.812414
! Fit after  self-cal, rms=0.125460Jy  sigma=0.804674
! Inverting map and beam 
! Estimated beam: bmin=2.744 mas, bmaj=3.98 mas, bpa=-18.81 degrees
! Estimated noise=0.521857 mJy/beam.
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00251502 Jy
! Component: 100  -  total flux cleaned = 0.00291844 Jy
! Total flux subtracted in 100 components = 0.00291844 Jy
! Clean residual min=-0.004136 max=0.004053 Jy/beam
! Clean residual mean=0.000036 rms=0.000685 Jy/beam
! Combined flux in latest and established models = 2.19871 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 82 components and 2.19871 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.125106Jy  sigma=0.801956
! Fit after  self-cal, rms=0.124815Jy  sigma=0.799537
! Inverting map and beam 
! Estimated beam: bmin=2.745 mas, bmaj=3.98 mas, bpa=-18.84 degrees
! Estimated noise=0.521808 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.000230386 Jy
! Component: 100  -  total flux cleaned = 0.000403574 Jy
! Total flux subtracted in 100 components = 0.000403574 Jy
! Clean residual min=-0.003820 max=0.003618 Jy/beam
! Clean residual mean=0.000026 rms=0.000637 Jy/beam
! Combined flux in latest and established models = 2.19911 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 87 components and 2.19911 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.124584Jy  sigma=0.797777
! Fit after  self-cal, rms=0.124578Jy  sigma=0.797665
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1308+326_S
! Writing UV FITS file: 1308+326_S.uvf
! Writing 87 model components to file: 1308+326_S.mod
! wwins: Wrote 3 windows to 1308+326_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.745 x 3.98 at -18.84 degrees (North through East)
! Clean map  min=-0.0024954  max=1.8929 Jy/beam
! Writing clean map to FITS file: 1308+326_S.fits
! Writing difmap environment to: 1308+326_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1308+326_Suv.ps/vps,1,2
! Attempting to open device: '1308+326_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1308+326_Sim.ps/vps
! Attempting to open device: '1308+326_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=2.745 mas, bmaj=3.98 mas, bpa=-18.84 degrees
! Estimated noise=0.521808 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.745 x 3.98 at -18.84 degrees (North through East)
! Clean map  min=-0.0024954  max=1.8929 Jy/beam
quit
! Quitting program
! Log file 1308+326_S.log closed on Mon Nov 25 11:23:56 2002