! Started logfile: 2234+282_S.log on Thu Dec 19 09:54:02 2002
observe 2234+282_S.edt
! Reading UV FITS file: 2234+282_S.edt
! AN table 1: 72 integrations on 120 of 120 possible baselines.
! AN table 2: 101 integrations on 120 of 120 possible baselines.
! AN table 3: 52 integrations on 120 of 120 possible baselines.
! AN table 4: 5 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.359384 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 2234+282
! 
! 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 39676 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 872 telescope corrections were flagged in sub-array 1.
!  A total of 652 telescope corrections were flagged in sub-array 2.
!  A total of 502 telescope corrections were flagged in sub-array 3.
!  A total of 80 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 872 telescope corrections were flagged in sub-array 1.
!  A total of 652 telescope corrections were flagged in sub-array 2.
!  A total of 502 telescope corrections were flagged in sub-array 3.
!  A total of 80 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 872 telescope corrections were flagged in sub-array 1.
!  A total of 652 telescope corrections were flagged in sub-array 2.
!  A total of 502 telescope corrections were flagged in sub-array 3.
!  A total of 80 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 872 telescope corrections were flagged in sub-array 1.
!  A total of 652 telescope corrections were flagged in sub-array 2.
!  A total of 502 telescope corrections were flagged in sub-array 3.
!  A total of 80 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.207050Jy  sigma=1.485774
! Fit after  self-cal, rms=0.206983Jy  sigma=1.485480
! 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.129 mas, bmaj=3.466 mas, bpa=-8.797 degrees
! Estimated noise=0.971466 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.680178 Jy
! Total flux subtracted in 50 components = 0.680178 Jy
! Clean residual min=-0.025520 max=0.189909 Jy/beam
! Clean residual mean=0.000129 rms=0.007514 Jy/beam
! Combined flux in latest and established models = 0.680178 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.680178 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.291111Jy  sigma=2.088778
! Fit after  self-cal, rms=0.291111Jy  sigma=2.088778
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.174322 Jy
! Total flux subtracted in 50 components = 0.174322 Jy
! Clean residual min=-0.019947 max=0.073163 Jy/beam
! Clean residual mean=0.000071 rms=0.004825 Jy/beam
! Combined flux in latest and established models = 0.8545 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.8545 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.181779Jy  sigma=1.303021
! Fit after  self-cal, rms=0.181719Jy  sigma=1.302586
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0775591 Jy
! Total flux subtracted in 50 components = 0.0775591 Jy
! Clean residual min=-0.020398 max=0.034711 Jy/beam
! Clean residual mean=0.000045 rms=0.004119 Jy/beam
! Combined flux in latest and established models = 0.932059 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 9 components and 0.932059 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.152925Jy  sigma=1.095428
! Fit after  self-cal, rms=0.152903Jy  sigma=1.095266
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.04011 Jy
! Total flux subtracted in 50 components = 0.04011 Jy
! Clean residual min=-0.020873 max=0.020455 Jy/beam
! Clean residual mean=0.000031 rms=0.003909 Jy/beam
! Combined flux in latest and established models = 0.972169 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 21 components and 0.972169 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.145380Jy  sigma=1.041149
! Fit after  self-cal, rms=0.145332Jy  sigma=1.040795
! 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.586 mas, bmaj=4.401 mas, bpa=-12.38 degrees
! Estimated noise=0.524985 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.0209964 Jy
! Component: 100  -  total flux cleaned = 0.0310857 Jy
! Total flux subtracted in 100 components = 0.0310857 Jy
! Clean residual min=-0.012951 max=0.011735 Jy/beam
! Clean residual mean=0.000232 rms=0.002257 Jy/beam
! Combined flux in latest and established models = 1.00325 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 30 components and 1.00325 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.142692Jy  sigma=1.021854
! Fit after  self-cal, rms=0.142654Jy  sigma=1.021575
! 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 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.95     GC        0.98     HN        1.07     
!   KK        0.95     KP        1.09     LA        1.01     MC        1.00*    
!   MK        1.01     NL        0.76     NY        1.04     OV        0.98     
!   PT        0.98     SC        1.00     WF        0.99     GN        0.96     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.98     GC        1.02     HN        0.99     
!   KK        1.06     KP        1.09     LA        0.97     MC        1.06     
!   MK        1.01     NL        0.99     NY        1.01     OV        0.98     
!   PT        0.99     SC        0.99     WF        0.98     GN        0.93     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.99     GC        1.04     HN        0.97     
!   KK        1.00*    KP        1.10     LA        0.98     MC        2.00     
!   MK        1.00*    NL        0.99     NY        0.98     OV        0.99     
!   PT        0.99     SC        1.00*    WF        0.95     GN        0.93     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MC        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WF        0.00*    GN        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.98     GC        0.99     HN        1.09     
!   KK        0.90     KP        1.13     LA        1.00     MC        1.00*    
!   MK        0.98     NL        0.75     NY        1.05     OV        1.00     
!   PT        0.99     SC        1.02     WF        1.03     GN        0.94     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.98     GC        1.02     HN        0.98     
!   KK        1.05     KP        1.13     LA        0.98     MC        1.03     
!   MK        1.00     NL        0.98     NY        0.99     OV        0.99     
!   PT        0.99     SC        0.99     WF        0.98     GN        0.92     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.98     GC        1.06     HN        0.99     
!   KK        1.00*    KP        1.12     LA        0.97     MC        1.43     
!   MK        1.00*    NL        0.99     NY        0.97     OV        1.00     
!   PT        0.99     SC        1.00*    WF        0.97     GN        0.93     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MC        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WF        0.00*    GN        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.97     GC        1.01     HN        1.06     
!   KK        0.93     KP        1.05     LA        1.03     MC        1.00*    
!   MK        0.99     NL        0.74     NY        1.07     OV        0.99     
!   PT        0.99     SC        1.02     WF        1.03     GN        0.97     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.98     GC        1.03     HN        0.98     
!   KK        1.06     KP        1.05     LA        0.99     MC        0.95     
!   MK        1.03     NL        0.99     NY        1.01     OV        0.99     
!   PT        0.99     SC        0.99     WF        0.97     GN        0.94     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.98     GC        1.05     HN        0.98     
!   KK        1.00*    KP        1.05     LA        0.99     MC        1.13     
!   MK        1.00*    NL        0.98     NY        0.99     OV        0.99     
!   PT        0.98     SC        1.00*    WF        0.97     GN        0.96     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MC        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WF        0.00*    GN        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.97     GC        1.01     HN        1.05     
!   KK        0.93     KP        1.12     LA        1.00     MC        1.00*    
!   MK        0.99     NL        0.76     NY        1.05     OV        0.98     
!   PT        1.02     SC        1.02     WF        1.01     GN        0.96     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.99     GC        1.02     HN        0.97     
!   KK        1.06     KP        1.12     LA        0.99     MC        1.29     
!   MK        1.01     NL        0.99     NY        1.00     OV        0.98     
!   PT        1.09     SC        1.00     WF        0.98     GN        0.92     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.99     GC        1.03     HN        0.98     
!   KK        1.00*    KP        1.12     LA        0.97     MC        1.25     
!   MK        1.00*    NL        0.99     NY        0.98     OV        0.99     
!   PT        1.01     SC        1.00*    WF        0.98     GN        0.94     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MC        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WF        0.00*    GN        0.00*    
! 
! 
! Fit before self-cal, rms=0.142654Jy  sigma=1.021575
! Fit after  self-cal, rms=0.120521Jy  sigma=0.876549
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.629 mas, bmaj=4.431 mas, bpa=-12.69 degrees
! Estimated noise=0.526688 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.00345379 Jy
! Component: 100  -  total flux cleaned = -0.00359311 Jy
! Total flux subtracted in 100 components = -0.00359311 Jy
! Clean residual min=-0.006924 max=0.006396 Jy/beam
! Clean residual mean=0.000019 rms=0.001187 Jy/beam
! Combined flux in latest and established models = 0.999662 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 34 components and 0.999662 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.120272Jy  sigma=0.875036
! Fit after  self-cal, rms=0.120268Jy  sigma=0.874911
! 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.000597743 Jy
! Component: 100  -  total flux cleaned = -0.000692333 Jy
! Total flux subtracted in 100 components = -0.000692333 Jy
! Clean residual min=-0.006732 max=0.006363 Jy/beam
! Clean residual mean=0.000024 rms=0.001182 Jy/beam
! Combined flux in latest and established models = 0.998969 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 36 components and 0.998969 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.120162Jy  sigma=0.874279
! Fit after  self-cal, rms=0.109528Jy  sigma=0.753923
! Inverting map and beam 
! Estimated beam: bmin=2.635 mas, bmaj=4.428 mas, bpa=-12.69 degrees
! Estimated noise=0.52673 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.00181126 Jy
! Component: 100  -  total flux cleaned = -0.00191339 Jy
! Total flux subtracted in 100 components = -0.00191339 Jy
! Clean residual min=-0.003061 max=0.003336 Jy/beam
! Clean residual mean=-0.000010 rms=0.000522 Jy/beam
! Combined flux in latest and established models = 0.997056 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 38 components and 0.997056 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.109393Jy  sigma=0.752967
! Fit after  self-cal, rms=0.109394Jy  sigma=0.752901
! Inverting map 
! Added new window around map position (-3.2, -0.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000976317 Jy
! Component: 100  -  total flux cleaned = 0.000776091 Jy
! Total flux subtracted in 100 components = 0.000776091 Jy
! Clean residual min=-0.002723 max=0.002022 Jy/beam
! Clean residual mean=-0.000016 rms=0.000500 Jy/beam
! Combined flux in latest and established models = 0.997832 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 48 components and 0.997832 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.109282Jy  sigma=0.752098
! Fit after  self-cal, rms=0.109280Jy  sigma=0.752044
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 2234+282_S
! Writing UV FITS file: 2234+282_S.uvf
! Writing 48 model components to file: 2234+282_S.mod
! wwins: Wrote 2 windows to 2234+282_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.635 x 4.428 at -12.69 degrees (North through East)
! Clean map  min=-0.0026177  max=0.89359 Jy/beam
! Writing clean map to FITS file: 2234+282_S.fits
! Writing difmap environment to: 2234+282_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 2234+282_Suv.ps/vps,1,2
! Attempting to open device: '2234+282_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 2234+282_Sim.ps/vps
! Attempting to open device: '2234+282_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.635 mas, bmaj=4.428 mas, bpa=-12.69 degrees
! Estimated noise=0.52673 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.635 x 4.428 at -12.69 degrees (North through East)
! Clean map  min=-0.0026177  max=0.89359 Jy/beam
quit
! Quitting program
! Log file 2234+282_S.log closed on Thu Dec 19 09:54:49 2002