! Started logfile: 0955+476_S.log on Mon Nov 18 18:29:58 2002
observe 0955+476_S.edt
! Reading UV FITS file: 0955+476_S.edt
! AN table 1: 90 integrations on 120 of 120 possible baselines.
! AN table 2: 21 integrations on 120 of 120 possible baselines.
! AN table 3: 57 integrations on 120 of 120 possible baselines.
! AN table 4: 7 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.26781 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0955+476
! 
! 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 22496 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 1129 telescope corrections were flagged in sub-array 1.
!  A total of 237 telescope corrections were flagged in sub-array 2.
!  A total of 379 telescope corrections were flagged in sub-array 3.
!  A total of 91 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1120 telescope corrections were flagged in sub-array 1.
!  A total of 237 telescope corrections were flagged in sub-array 2.
!  A total of 379 telescope corrections were flagged in sub-array 3.
!  A total of 91 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1120 telescope corrections were flagged in sub-array 1.
!  A total of 237 telescope corrections were flagged in sub-array 2.
!  A total of 379 telescope corrections were flagged in sub-array 3.
!  A total of 91 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1120 telescope corrections were flagged in sub-array 1.
!  A total of 237 telescope corrections were flagged in sub-array 2.
!  A total of 379 telescope corrections were flagged in sub-array 3.
!  A total of 95 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.166960Jy  sigma=1.183929
! Fit after  self-cal, rms=0.166478Jy  sigma=1.181177
! 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.285 mas, bmaj=3.117 mas, bpa=40.15 degrees
! Estimated noise=1.23018 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.701764 Jy
! Total flux subtracted in 50 components = 0.701764 Jy
! Clean residual min=-0.024094 max=0.195822 Jy/beam
! Clean residual mean=0.000119 rms=0.006207 Jy/beam
! Combined flux in latest and established models = 0.701764 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.701764 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.253046Jy  sigma=1.794046
! Fit after  self-cal, rms=0.253046Jy  sigma=1.794046
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.153837 Jy
! Total flux subtracted in 50 components = 0.153837 Jy
! Clean residual min=-0.012905 max=0.047715 Jy/beam
! Clean residual mean=0.000036 rms=0.002644 Jy/beam
! Combined flux in latest and established models = 0.855601 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.855601 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.151965Jy  sigma=1.072661
! Fit after  self-cal, rms=0.151951Jy  sigma=1.072549
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0483374 Jy
! Total flux subtracted in 50 components = 0.0483374 Jy
! Clean residual min=-0.010695 max=0.020243 Jy/beam
! Clean residual mean=0.000009 rms=0.002060 Jy/beam
! Combined flux in latest and established models = 0.903938 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 6 components and 0.903938 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.138036Jy  sigma=0.973221
! Fit after  self-cal, rms=0.138009Jy  sigma=0.973022
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0212013 Jy
! Total flux subtracted in 50 components = 0.0212013 Jy
! Clean residual min=-0.009813 max=0.010894 Jy/beam
! Clean residual mean=-0.000002 rms=0.001928 Jy/beam
! Combined flux in latest and established models = 0.92514 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 8 components and 0.92514 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.134950Jy  sigma=0.951265
! Fit after  self-cal, rms=0.134940Jy  sigma=0.951188
! 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.685 mas, bmaj=3.71 mas, bpa=47.93 degrees
! Estimated noise=0.729967 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.013342 Jy
! Component: 100  -  total flux cleaned = 0.0196285 Jy
! Total flux subtracted in 100 components = 0.0196285 Jy
! Clean residual min=-0.008376 max=0.009166 Jy/beam
! Clean residual mean=-0.000091 rms=0.001916 Jy/beam
! Combined flux in latest and established models = 0.944768 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 20 components and 0.944768 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.133800Jy  sigma=0.943121
! Fit after  self-cal, rms=0.133787Jy  sigma=0.943034
! 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 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.96     GC        0.99     HN        1.03     
!   KK        1.00     KP        1.09     LA        0.98     MC        1.00*    
!   MK        1.01     NL        0.98     NY        1.01     OV        0.99     
!   PT        0.99     SC        0.98     WF        0.99     GN        0.94     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.00*    GC        1.02     HN        1.01     
!   KK        1.00*    KP        1.00*    LA        1.00*    MC        0.98     
!   MK        1.00*    NL        0.99     NY        1.03     OV        1.00*    
!   PT        1.00*    SC        1.00*    WF        0.98     GN        1.11     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.98     GC        0.97     HN        1.01     
!   KK        0.98     KP        1.07     LA        0.98     MC        1.11     
!   MK        1.02     NL        1.00     NY        0.99     OV        0.98     
!   PT        1.00     SC        1.00*    WF        1.02     GN        1.08     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.90     GC        1.01     HN        1.00*    
!   KK        0.99     KP        2.25     LA        1.00*    MC        1.00*    
!   MK        0.97     NL        1.00*    NY        1.00*    OV        0.88     
!   PT        0.89     SC        1.00*    WF        0.96     GN        0.96     
! 
! 
! Correcting IF 2.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.98     GC        0.99     HN        1.02     
!   KK        0.97     KP        1.15     LA        0.97     MC        1.00*    
!   MK        0.99     NL        0.98     NY        0.99     OV        1.01     
!   PT        0.99     SC        1.00     WF        0.99     GN        0.93     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.00*    GC        1.03     HN        1.01     
!   KK        1.00*    KP        1.00*    LA        1.00*    MC        0.99     
!   MK        1.00*    NL        0.99     NY        0.97     OV        1.00*    
!   PT        1.00*    SC        1.00*    WF        1.03     GN        1.14     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.98     GC        0.97     HN        1.02     
!   KK        0.95     KP        1.12     LA        0.96     MC        1.18     
!   MK        1.01     NL        1.01     NY        0.98     OV        0.99     
!   PT        0.98     SC        1.00*    WF        1.05     GN        1.09     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.92     GC        0.97     HN        1.00*    
!   KK        0.98     KP        1.54     LA        1.00*    MC        1.00*    
!   MK        0.95     NL        1.00*    NY        1.00*    OV        0.90     
!   PT        0.86     SC        1.00*    WF        0.92     GN        0.93     
! 
! 
! Correcting IF 3.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.97     GC        1.00     HN        1.00     
!   KK        0.98     KP        1.06     LA        0.98     MC        1.00*    
!   MK        1.01     NL        0.98     NY        1.00     OV        0.98     
!   PT        0.98     SC        0.99     WF        1.01     GN        0.94     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.00*    GC        1.00     HN        0.97     
!   KK        1.00*    KP        1.00*    LA        1.00*    MC        0.86     
!   MK        1.00*    NL        1.02     NY        1.00     OV        1.00*    
!   PT        1.00*    SC        1.00*    WF        1.02     GN        1.13     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.97     GC        0.98     HN        1.01     
!   KK        0.96     KP        1.03     LA        0.99     MC        0.94     
!   MK        1.02     NL        1.00     NY        0.99     OV        0.98     
!   PT        0.97     SC        1.00*    WF        1.03     GN        1.09     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.88     GC        0.93     HN        1.00*    
!   KK        1.02     KP        1.15     LA        1.00*    MC        1.00*    
!   MK        1.03     NL        1.00*    NY        1.00*    OV        0.88     
!   PT        0.76     SC        1.00*    WF        0.98     GN        0.96     
! 
! 
! Correcting IF 4.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.98     GC        0.98     HN        1.00     
!   KK        0.99     KP        1.11     LA        0.98     MC        1.00*    
!   MK        0.98     NL        0.98     NY        0.99     OV        0.97     
!   PT        1.01     SC        0.98     WF        1.00     GN        0.94     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.00*    GC        1.00     HN        0.99     
!   KK        1.00*    KP        1.00*    LA        1.00*    MC        1.05     
!   MK        1.00*    NL        1.03     NY        0.97     OV        1.00*    
!   PT        1.00*    SC        1.00*    WF        1.01     GN        1.13     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.98     GC        0.98     HN        1.00     
!   KK        0.96     KP        1.12     LA        0.95     MC        1.06     
!   MK        1.01     NL        0.99     NY        0.98     OV        0.98     
!   PT        0.99     SC        1.00*    WF        1.04     GN        1.08     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.91     GC        1.03     HN        1.00*    
!   KK        1.00     KP        1.45     LA        1.00*    MC        1.00*    
!   MK        0.94     NL        1.00*    NY        1.00*    OV        0.93     
!   PT        1.00*    SC        1.00*    WF        0.96     GN        0.88     
! 
! 
! Fit before self-cal, rms=0.133787Jy  sigma=0.943034
! Fit after  self-cal, rms=0.124135Jy  sigma=0.864963
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.694 mas, bmaj=3.718 mas, bpa=48.12 degrees
! Estimated noise=0.730361 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 (4.8, -5.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00714072 Jy
! Component: 100  -  total flux cleaned = 0.0111371 Jy
! Total flux subtracted in 100 components = 0.0111371 Jy
! Clean residual min=-0.002541 max=0.002924 Jy/beam
! Clean residual mean=0.000156 rms=0.000733 Jy/beam
! Combined flux in latest and established models = 0.955905 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 30 components and 0.955905 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.123747Jy  sigma=0.862236
! Fit after  self-cal, rms=0.123747Jy  sigma=0.862140
! 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.00255032 Jy
! Component: 100  -  total flux cleaned = 0.00388408 Jy
! Total flux subtracted in 100 components = 0.00388408 Jy
! Clean residual min=-0.002634 max=0.002824 Jy/beam
! Clean residual mean=0.000109 rms=0.000708 Jy/beam
! Combined flux in latest and established models = 0.959789 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 41 components and 0.959789 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.123672Jy  sigma=0.861609
! Fit after  self-cal, rms=0.121751Jy  sigma=0.843287
! Inverting map and beam 
! Estimated beam: bmin=2.693 mas, bmaj=3.718 mas, bpa=48.17 degrees
! Estimated noise=0.731118 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.00248905 Jy
! Component: 100  -  total flux cleaned = 0.00400747 Jy
! Total flux subtracted in 100 components = 0.00400747 Jy
! Clean residual min=-0.002205 max=0.002525 Jy/beam
! Clean residual mean=0.000080 rms=0.000599 Jy/beam
! Combined flux in latest and established models = 0.963797 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 57 components and 0.963797 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.121700Jy  sigma=0.842928
! Fit after  self-cal, rms=0.121700Jy  sigma=0.842909
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0955+476_S
! Writing UV FITS file: 0955+476_S.uvf
! Writing 57 model components to file: 0955+476_S.mod
! wwins: Wrote 2 windows to 0955+476_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.693 x 3.718 at 48.17 degrees (North through East)
! Clean map  min=-0.0021258  max=0.90611 Jy/beam
! Writing clean map to FITS file: 0955+476_S.fits
! Writing difmap environment to: 0955+476_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 0955+476_Suv.ps/vps,1,2
! Attempting to open device: '0955+476_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0955+476_Sim.ps/vps
! Attempting to open device: '0955+476_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.693 mas, bmaj=3.718 mas, bpa=48.17 degrees
! Estimated noise=0.731118 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.693 x 3.718 at 48.17 degrees (North through East)
! Clean map  min=-0.0021258  max=0.90611 Jy/beam
quit
! Quitting program
! Log file 0955+476_S.log closed on Mon Nov 18 18:30:42 2002