! Started logfile: 0827+243_S.log on Wed Jun  5 08:32:51 2002
observe 0827+243_S.edt
! Reading UV FITS file: 0827+243_S.edt
! AN table 1: 61 integrations on 171 of 171 possible baselines.
! AN table 2: 39 integrations on 171 of 171 possible baselines.
! AN table 3: 43 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.220137 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0827+243
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! 
! 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.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1191 lines of history.
! 
! Reading 21532 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 823 telescope corrections were flagged in sub-array 1.
!  A total of 522 telescope corrections were flagged in sub-array 2.
!  A total of 463 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 823 telescope corrections were flagged in sub-array 1.
!  A total of 522 telescope corrections were flagged in sub-array 2.
!  A total of 463 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 823 telescope corrections were flagged in sub-array 1.
!  A total of 522 telescope corrections were flagged in sub-array 2.
!  A total of 463 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 836 telescope corrections were flagged in sub-array 1.
!  A total of 522 telescope corrections were flagged in sub-array 2.
!  A total of 463 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.552635Jy  sigma=3.971798
! Fit after  self-cal, rms=0.552495Jy  sigma=3.970804
! 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=1.986 mas, bmaj=3.614 mas, bpa=2.776 degrees
! Estimated noise=1.35093 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.328573 Jy
! Total flux subtracted in 50 components = 0.328573 Jy
! Clean residual min=-0.019236 max=0.092310 Jy/beam
! Clean residual mean=0.000273 rms=0.005495 Jy/beam
! Combined flux in latest and established models = 0.328573 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.328573 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.232790Jy  sigma=1.668723
! Fit after  self-cal, rms=0.232786Jy  sigma=1.668701
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.092624 Jy
! Total flux subtracted in 50 components = 0.092624 Jy
! Clean residual min=-0.015134 max=0.056902 Jy/beam
! Clean residual mean=0.000188 rms=0.003989 Jy/beam
! Combined flux in latest and established models = 0.421197 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 10 components and 0.421197 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.183878Jy  sigma=1.318288
! Fit after  self-cal, rms=0.183853Jy  sigma=1.318098
! Inverting map 
! Added new window around map position (2.8, -3.2).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0589886 Jy
! Total flux subtracted in 50 components = 0.0589886 Jy
! Clean residual min=-0.012234 max=0.031003 Jy/beam
! Clean residual mean=0.000133 rms=0.003176 Jy/beam
! Combined flux in latest and established models = 0.480186 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 14 components and 0.480186 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.159935Jy  sigma=1.146554
! Fit after  self-cal, rms=0.159586Jy  sigma=1.144016
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0404673 Jy
! Total flux subtracted in 50 components = 0.0404673 Jy
! Clean residual min=-0.010621 max=0.022333 Jy/beam
! Clean residual mean=0.000095 rms=0.002683 Jy/beam
! Combined flux in latest and established models = 0.520653 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 22 components and 0.520653 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.146629Jy  sigma=1.051127
! Fit after  self-cal, rms=0.146479Jy  sigma=1.050029
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0296866 Jy
! Total flux subtracted in 50 components = 0.0296866 Jy
! Clean residual min=-0.010363 max=0.016786 Jy/beam
! Clean residual mean=0.000067 rms=0.002380 Jy/beam
! Combined flux in latest and established models = 0.55034 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 26 components and 0.55034 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.138921Jy  sigma=0.995867
! Fit after  self-cal, rms=0.138847Jy  sigma=0.995323
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0222381 Jy
! Total flux subtracted in 50 components = 0.0222381 Jy
! Clean residual min=-0.010249 max=0.012557 Jy/beam
! Clean residual mean=0.000046 rms=0.002194 Jy/beam
! Combined flux in latest and established models = 0.572578 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.572578 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.134373Jy  sigma=0.963274
! Fit after  self-cal, rms=0.134334Jy  sigma=0.962987
! 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.43 mas, bmaj=4.394 mas, bpa=-2.374 degrees
! Estimated noise=0.752381 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.0285919 Jy
! Component: 100  -  total flux cleaned = 0.0459016 Jy
! Total flux subtracted in 100 components = 0.0459016 Jy
! Clean residual min=-0.008637 max=0.011336 Jy/beam
! Clean residual mean=0.000005 rms=0.002154 Jy/beam
! Combined flux in latest and established models = 0.618479 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 32 model components to the UV plane model.
! The established model now contains 53 components and 0.618479 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.128594Jy  sigma=0.921945
! Fit after  self-cal, rms=0.128518Jy  sigma=0.921405
! 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        0.99     GC        1.00*    GG        1.00*    
!   HN        1.01     KP        1.00*    LA        0.98     MC        0.97     
!   MK        1.00*    NL        0.99     NY        0.99     ON        0.89     
!   OV        1.00*    PT        0.98     SC        1.04     TS        1.00*    
!   WF        0.97     KK        1.00*    WZ        0.96     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.99     GC        1.05     GG        1.00*    
!   HN        1.00*    KP        0.98     LA        0.94     MC        1.00*    
!   MK        0.95     NL        1.04     NY        0.94     ON        1.00*    
!   OV        0.96     PT        0.99     SC        1.00*    TS        0.94     
!   WF        1.00*    KK        0.93     WZ        1.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.88     FD        1.13     GC        0.94     GG        1.00*    
!   HN        0.98     KP        0.91     LA        0.93     MC        1.00*    
!   MK        0.90     NL        0.85     NY        1.01     ON        1.00*    
!   OV        0.91     PT        0.96     SC        1.06     TS        1.23     
!   WF        1.05     KK        1.16     WZ        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.02     FD        0.99     GC        1.00*    GG        1.00*    
!   HN        0.99     KP        1.00*    LA        1.01     MC        0.98     
!   MK        1.00*    NL        1.00     NY        1.01     ON        0.91     
!   OV        1.00*    PT        1.00     SC        1.09     TS        1.00*    
!   WF        0.97     KK        1.00*    WZ        0.94     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.99     GC        1.02     GG        1.00*    
!   HN        1.00*    KP        0.98     LA        0.98     MC        1.00*    
!   MK        0.97     NL        1.00     NY        0.99     ON        1.00*    
!   OV        1.01     PT        1.00     SC        1.00*    TS        0.91     
!   WF        1.00*    KK        0.95     WZ        1.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.93     FD        0.97     GC        0.93     GG        1.00*    
!   HN        1.13     KP        0.95     LA        0.91     MC        1.00*    
!   MK        0.99     NL        0.93     NY        0.99     ON        1.00*    
!   OV        0.99     PT        0.94     SC        1.00     TS        1.20     
!   WF        1.04     KK        1.16     WZ        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.06     FD        1.03     GC        1.00*    GG        1.00*    
!   HN        1.03     KP        1.00*    LA        0.99     MC        1.38     
!   MK        1.00*    NL        1.04     NY        0.99     ON        0.91     
!   OV        1.00*    PT        1.03     SC        1.11     TS        1.00*    
!   WF        0.96     KK        1.00*    WZ        0.99     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        0.99     GC        1.07     GG        1.00*    
!   HN        1.00*    KP        1.03     LA        0.98     MC        1.00*    
!   MK        0.98     NL        1.05     NY        1.01     ON        1.00*    
!   OV        1.03     PT        1.01     SC        1.00*    TS        0.91     
!   WF        1.00*    KK        1.02     WZ        1.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.93     GC        0.99     GG        1.00*    
!   HN        1.20     KP        0.99     LA        0.92     MC        1.00*    
!   MK        0.98     NL        1.00     NY        1.03     ON        1.00*    
!   OV        0.96     PT        1.00     SC        1.05     TS        1.21     
!   WF        1.34     KK        0.98     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.04     GC        1.00*    GG        1.00*    
!   HN        1.03     KP        1.00*    LA        1.01     MC        1.00*    
!   MK        1.00*    NL        1.06     NY        1.01     ON        0.94     
!   OV        1.00*    PT        0.96     SC        1.06     TS        1.00*    
!   WF        0.99     KK        1.00*    WZ        1.00     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.02     GC        1.01     GG        1.00*    
!   HN        1.00*    KP        1.01     LA        1.02     MC        1.00*    
!   MK        0.99     NL        1.05     NY        0.96     ON        1.00*    
!   OV        1.04     PT        0.95     SC        1.00*    TS        0.95     
!   WF        1.00*    KK        1.02     WZ        1.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.84     GC        1.05     GG        1.00*    
!   HN        1.15     KP        1.03     LA        0.77     MC        1.00*    
!   MK        0.95     NL        0.97     NY        1.11     ON        1.00*    
!   OV        0.91     PT        0.94     SC        0.93     TS        1.17     
!   WF        1.22     KK        1.02     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.128518Jy  sigma=0.921405
! Fit after  self-cal, rms=0.114919Jy  sigma=0.832053
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.465 mas, bmaj=4.476 mas, bpa=-2.391 degrees
! Estimated noise=0.746467 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, -8.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.007254 Jy
! Component: 100  -  total flux cleaned = 0.0107877 Jy
! Total flux subtracted in 100 components = 0.0107877 Jy
! Clean residual min=-0.002786 max=0.004038 Jy/beam
! Clean residual mean=0.000163 rms=0.000816 Jy/beam
! Combined flux in latest and established models = 0.629267 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 75 components and 0.629267 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.114506Jy  sigma=0.828917
! Fit after  self-cal, rms=0.114496Jy  sigma=0.828635
! 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.00127727 Jy
! Component: 100  -  total flux cleaned = 0.00225351 Jy
! Total flux subtracted in 100 components = 0.00225351 Jy
! Clean residual min=-0.002672 max=0.003476 Jy/beam
! Clean residual mean=0.000144 rms=0.000781 Jy/beam
! Combined flux in latest and established models = 0.63152 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 24 model components to the UV plane model.
! The established model now contains 85 components and 0.63152 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.114354Jy  sigma=0.827620
! Fit after  self-cal, rms=0.113087Jy  sigma=0.814096
! Inverting map and beam 
! Estimated beam: bmin=2.464 mas, bmaj=4.478 mas, bpa=-2.481 degrees
! Estimated noise=0.748044 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.00377017 Jy
! Component: 100  -  total flux cleaned = 0.00473352 Jy
! Total flux subtracted in 100 components = 0.00473352 Jy
! Clean residual min=-0.002802 max=0.003264 Jy/beam
! Clean residual mean=0.000120 rms=0.000741 Jy/beam
! Combined flux in latest and established models = 0.636254 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 91 components and 0.636254 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.112961Jy  sigma=0.813163
! Fit after  self-cal, rms=0.112959Jy  sigma=0.813081
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0827+243_S
! Writing UV FITS file: 0827+243_S.uvf
! Writing 91 model components to file: 0827+243_S.mod
! wwins: Wrote 3 windows to 0827+243_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.464 x 4.478 at -2.481 degrees (North through East)
! Clean map  min=-0.0025906  max=0.45271 Jy/beam
! Writing clean map to FITS file: 0827+243_S.fits
! Writing difmap environment to: 0827+243_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 0827+243_Suv.ps/vps,1,2
! Attempting to open device: '0827+243_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0827+243_Sim.ps/vps
! Attempting to open device: '0827+243_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.464 mas, bmaj=4.478 mas, bpa=-2.481 degrees
! Estimated noise=0.748044 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.464 x 4.478 at -2.481 degrees (North through East)
! Clean map  min=-0.0025906  max=0.45271 Jy/beam
quit
! Quitting program
! Log file 0827+243_S.log closed on Wed Jun  5 08:33:29 2002