! Started logfile: 0235+164_S.log on Thu May 30 09:09:14 2002
observe 0235+164_S.edt
! Reading UV FITS file: 0235+164_S.edt
! AN table 1: 58 integrations on 171 of 171 possible baselines.
! AN table 2: 26 integrations on 171 of 171 possible baselines.
! AN table 3: 43 integrations on 171 of 171 possible baselines.
! AN table 4: 18 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.187659 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0235+164
! 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.
! 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 18612 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 896 telescope corrections were flagged in sub-array 1.
!  A total of 461 telescope corrections were flagged in sub-array 2.
!  A total of 694 telescope corrections were flagged in sub-array 3.
!  A total of 225 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 896 telescope corrections were flagged in sub-array 1.
!  A total of 461 telescope corrections were flagged in sub-array 2.
!  A total of 694 telescope corrections were flagged in sub-array 3.
!  A total of 225 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 896 telescope corrections were flagged in sub-array 1.
!  A total of 461 telescope corrections were flagged in sub-array 2.
!  A total of 694 telescope corrections were flagged in sub-array 3.
!  A total of 225 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 924 telescope corrections were flagged in sub-array 1.
!  A total of 467 telescope corrections were flagged in sub-array 2.
!  A total of 694 telescope corrections were flagged in sub-array 3.
!  A total of 232 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.206396Jy  sigma=1.430236
! Fit after  self-cal, rms=0.205469Jy  sigma=1.423844
! 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.975 mas, bmaj=3.916 mas, bpa=-4.848 degrees
! Estimated noise=1.68079 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.762932 Jy
! Total flux subtracted in 50 components = 0.762932 Jy
! Clean residual min=-0.025291 max=0.212803 Jy/beam
! Clean residual mean=0.000125 rms=0.008465 Jy/beam
! Combined flux in latest and established models = 0.762932 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.762932 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.310599Jy  sigma=2.158931
! Fit after  self-cal, rms=0.310598Jy  sigma=2.158932
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.168147 Jy
! Total flux subtracted in 50 components = 0.168147 Jy
! Clean residual min=-0.017287 max=0.055261 Jy/beam
! Clean residual mean=0.000075 rms=0.005136 Jy/beam
! Combined flux in latest and established models = 0.931079 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.931079 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.214944Jy  sigma=1.488242
! Fit after  self-cal, rms=0.214941Jy  sigma=1.488224
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0594769 Jy
! Total flux subtracted in 50 components = 0.0594769 Jy
! Clean residual min=-0.018579 max=0.027857 Jy/beam
! Clean residual mean=0.000058 rms=0.004652 Jy/beam
! Combined flux in latest and established models = 0.990556 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 15 components and 0.990556 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.198922Jy  sigma=1.375324
! Fit after  self-cal, rms=0.198919Jy  sigma=1.375297
! 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.35 mas, bmaj=4.505 mas, bpa=-6.457 degrees
! Estimated noise=1.19503 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.0444999 Jy
! Component: 100  -  total flux cleaned = 0.0708126 Jy
! Total flux subtracted in 100 components = 0.0708126 Jy
! Clean residual min=-0.016238 max=0.020571 Jy/beam
! Clean residual mean=0.000002 rms=0.004259 Jy/beam
! Combined flux in latest and established models = 1.06137 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 27 model components to the UV plane model.
! The established model now contains 41 components and 1.06137 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.189620Jy  sigma=1.309786
! Fit after  self-cal, rms=0.189605Jy  sigma=1.309671
! 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 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.03     GC        1.00*    GG        1.00*    
!   HN        1.01     KP        1.00*    LA        1.01     MC        0.99     
!   MK        1.00*    NL        0.97     NY        0.97     ON        0.87     
!   OV        1.00*    PT        1.00*    SC        1.00     TS        1.10     
!   WF        0.95     KK        1.00*    WZ        0.93     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.32     GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    MC        1.05     
!   MK        1.00*    NL        1.00*    NY        1.05     ON        1.11     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        0.91     
!   WF        1.00*    KK        1.00*    WZ        1.21     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.85     FD        1.10     GC        0.92     GG        1.00*    
!   HN        1.02     KP        0.88     LA        0.95     MC        1.00*    
!   MK        0.87     NL        0.86     NY        1.10     ON        1.00*    
!   OV        0.93     PT        0.97     SC        1.00     TS        1.06     
!   WF        1.06     KK        1.13     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.85     FD        1.10     GC        0.93     GG        1.00*    
!   HN        1.02     KP        0.90     LA        0.95     MC        1.12     
!   MK        0.87     NL        0.85     NY        1.09     ON        0.89     
!   OV        0.87     PT        0.97     SC        0.99     TS        1.00*    
!   WF        1.05     KK        1.15     WZ        1.06     
! 
! 
! Correcting IF 2.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.04     GC        1.00*    GG        1.00*    
!   HN        1.01     KP        1.00*    LA        1.04     MC        1.11     
!   MK        1.00*    NL        1.01     NY        0.97     ON        0.90     
!   OV        1.00*    PT        1.00*    SC        1.01     TS        1.11     
!   WF        1.00     KK        1.00*    WZ        0.91     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.21     GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    MC        1.04     
!   MK        1.00*    NL        1.00*    NY        1.02     ON        1.03     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        0.92     
!   WF        1.00*    KK        1.00*    WZ        1.24     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.91     FD        0.96     GC        0.92     GG        1.00*    
!   HN        1.12     KP        0.95     LA        0.92     MC        1.00*    
!   MK        0.97     NL        0.92     NY        1.05     ON        1.00*    
!   OV        0.96     PT        0.94     SC        0.98     TS        1.02     
!   WF        1.06     KK        1.15     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.91     FD        0.97     GC        0.95     GG        1.00*    
!   HN        1.12     KP        0.94     LA        0.92     MC        1.19     
!   MK        0.96     NL        0.93     NY        1.01     ON        0.95     
!   OV        0.97     PT        0.96     SC        0.95     TS        1.00*    
!   WF        1.02     KK        1.16     WZ        1.02     
! 
! 
! Correcting IF 3.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.05     GC        1.00*    GG        1.00*    
!   HN        1.05     KP        1.00*    LA        1.04     MC        1.00     
!   MK        1.00*    NL        1.00     NY        1.00     ON        0.92     
!   OV        1.00*    PT        1.00*    SC        1.01     TS        1.13     
!   WF        0.97     KK        1.00*    WZ        0.95     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.29     GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    MC        1.41     
!   MK        1.00*    NL        1.00*    NY        1.03     ON        1.09     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.02     
!   WF        1.00*    KK        1.00*    WZ        1.18     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.92     GC        1.00     GG        1.00*    
!   HN        1.19     KP        1.01     LA        0.91     MC        1.00*    
!   MK        0.94     NL        0.98     NY        1.13     ON        1.00*    
!   OV        0.96     PT        1.03     SC        1.00     TS        1.04     
!   WF        1.30     KK        0.93     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.91     GC        0.99     GG        1.00*    
!   HN        1.18     KP        0.98     LA        0.92     MC        1.20     
!   MK        0.92     NL        0.99     NY        1.10     ON        0.93     
!   OV        0.97     PT        1.04     SC        1.00     TS        1.00*    
!   WF        1.74     KK        0.96     WZ        1.03     
! 
! 
! Correcting IF 4.
!  A total of 66 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.04     GC        1.00*    GG        1.00*    
!   HN        1.04     KP        1.00*    LA        1.04     MC        1.00*    
!   MK        1.00*    NL        1.03     NY        1.14     ON        1.02     
!   OV        1.00*    PT        1.00*    SC        1.06     TS        1.17     
!   WF        1.00     KK        1.00*    WZ        0.87     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.28     GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    MC        1.00*    
!   MK        1.00*    NL        1.00*    NY        1.04     ON        1.07     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        0.98     
!   WF        1.00*    KK        1.00*    WZ        1.21     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        0.82     GC        1.06     GG        1.00*    
!   HN        1.13     KP        1.05     LA        0.77     MC        1.00*    
!   MK        0.90     NL        0.97     NY        1.17     ON        1.00*    
!   OV        0.89     PT        1.07     SC        0.89     TS        1.00     
!   WF        1.25     KK        0.96     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.94     FD        0.85     GC        1.07     GG        1.00*    
!   HN        1.15     KP        1.01     LA        0.77     MC        1.00*    
!   MK        0.90     NL        0.98     NY        1.15     ON        0.96     
!   OV        0.89     PT        1.01     SC        0.89     TS        1.00*    
!   WF        1.20     KK        1.01     WZ        1.00     
! 
! 
! Fit before self-cal, rms=0.189605Jy  sigma=1.309671
! Fit after  self-cal, rms=0.133178Jy  sigma=0.887836
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.392 mas, bmaj=4.537 mas, bpa=-6.779 degrees
! Estimated noise=1.19362 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.00666541 Jy
! Component: 100  -  total flux cleaned = -0.00740197 Jy
! Total flux subtracted in 100 components = -0.00740197 Jy
! Clean residual min=-0.005883 max=0.006069 Jy/beam
! Clean residual mean=0.000010 rms=0.001204 Jy/beam
! Combined flux in latest and established models = 1.05397 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 52 components and 1.05397 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.132786Jy  sigma=0.885301
! Fit after  self-cal, rms=0.132824Jy  sigma=0.885168
! 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 (3.6, 1.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00448133 Jy
! Component: 100  -  total flux cleaned = 0.00448248 Jy
! Total flux subtracted in 100 components = 0.00448248 Jy
! Clean residual min=-0.005710 max=0.005048 Jy/beam
! Clean residual mean=0.000010 rms=0.001174 Jy/beam
! Combined flux in latest and established models = 1.05845 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 65 components and 1.05845 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.132531Jy  sigma=0.882918
! Fit after  self-cal, rms=0.129964Jy  sigma=0.864148
! Inverting map and beam 
! Estimated beam: bmin=2.396 mas, bmaj=4.538 mas, bpa=-6.926 degrees
! Estimated noise=1.19178 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.001955 Jy
! Component: 100  -  total flux cleaned = -0.00224467 Jy
! Total flux subtracted in 100 components = -0.00224467 Jy
! Clean residual min=-0.005050 max=0.004109 Jy/beam
! Clean residual mean=0.000008 rms=0.001075 Jy/beam
! Combined flux in latest and established models = 1.0562 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 69 components and 1.05621 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.129775Jy  sigma=0.862793
! Fit after  self-cal, rms=0.129778Jy  sigma=0.862754
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0235+164_S
! Writing UV FITS file: 0235+164_S.uvf
! Writing 69 model components to file: 0235+164_S.mod
! wwins: Wrote 2 windows to 0235+164_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.396 x 4.538 at -6.926 degrees (North through East)
! Clean map  min=-0.0048038  max=0.97875 Jy/beam
! Writing clean map to FITS file: 0235+164_S.fits
! Writing difmap environment to: 0235+164_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 0235+164_Suv.ps/vps,1,2
! Attempting to open device: '0235+164_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0235+164_Sim.ps/vps
! Attempting to open device: '0235+164_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.396 mas, bmaj=4.538 mas, bpa=-6.926 degrees
! Estimated noise=1.19178 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.396 x 4.538 at -6.926 degrees (North through East)
! Clean map  min=-0.0048038  max=0.97875 Jy/beam
quit
! Quitting program
! Log file 0235+164_S.log closed on Thu May 30 09:09:42 2002