! Started logfile: 2234+282_S.log on Thu Aug 14 09:22:45 2008
observe 2234+282_S.edt
! Reading UV FITS file: 2234+282_S.edt
! AN table 1: 38 integrations on 105 of 105 possible baselines.
! AN table 2: 65 integrations on 105 of 105 possible baselines.
! AN table 3: 14 integrations on 105 of 105 possible baselines.
! AN table 4: 4 integrations on 105 of 105 possible baselines.
! AN table 5: 33 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.0456401 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.23697e+09        8e+06          1        8e+06
!  02        2  2.26697e+09        8e+06          1        8e+06
!  03        3  2.35697e+09        8e+06          1        8e+06
!  04        4  2.37697e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 947 lines of history.
! 
! Reading 2952 visibilities.
![@gonzo7-0.4 2234+282_S]
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 494 telescope corrections were flagged in sub-array 1.
!  A total of 770 telescope corrections were flagged in sub-array 2.
!  A total of 154 telescope corrections were flagged in sub-array 3.
!  A total of 48 telescope corrections were flagged in sub-array 4.
!  A total of 415 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 497 telescope corrections were flagged in sub-array 1.
!  A total of 767 telescope corrections were flagged in sub-array 2.
!  A total of 154 telescope corrections were flagged in sub-array 3.
!  A total of 48 telescope corrections were flagged in sub-array 4.
!  A total of 415 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 497 telescope corrections were flagged in sub-array 1.
!  A total of 771 telescope corrections were flagged in sub-array 2.
!  A total of 154 telescope corrections were flagged in sub-array 3.
!  A total of 48 telescope corrections were flagged in sub-array 4.
!  A total of 415 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 497 telescope corrections were flagged in sub-array 1.
!  A total of 770 telescope corrections were flagged in sub-array 2.
!  A total of 155 telescope corrections were flagged in sub-array 3.
!  A total of 48 telescope corrections were flagged in sub-array 4.
!  A total of 415 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.417400Jy  sigma=0.003416
! Fit after  self-cal, rms=0.301042Jy  sigma=0.002909
! 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.131 mas, bmaj=4.464 mas, bpa=10.35 degrees
! Estimated noise=1972.05 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.76068 Jy
! Total flux subtracted in 50 components = 0.76068 Jy
! Clean residual min=-0.058044 max=0.212151 Jy/beam
! Clean residual mean=-0.000332 rms=0.018158 Jy/beam
! Combined flux in latest and established models = 0.76068 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.76068 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.332046Jy  sigma=0.003809
! Fit after  self-cal, rms=0.332047Jy  sigma=0.003809
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.200346 Jy
! Total flux subtracted in 50 components = 0.200346 Jy
! Clean residual min=-0.045124 max=0.081600 Jy/beam
! Clean residual mean=-0.000169 rms=0.012612 Jy/beam
! Combined flux in latest and established models = 0.961027 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 9 components and 0.961027 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.265458Jy  sigma=0.002754
! Fit after  self-cal, rms=0.265416Jy  sigma=0.002754
! 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.089 mas, bmaj=4.943 mas, bpa=10.61 degrees
! Estimated noise=1449.08 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.088348 Jy
! Component: 100  -  total flux cleaned = 0.143875 Jy
! Total flux subtracted in 100 components = 0.143875 Jy
! Clean residual min=-0.042978 max=0.056282 Jy/beam
! Clean residual mean=0.000237 rms=0.010669 Jy/beam
! Combined flux in latest and established models = 1.1049 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 35 components and 1.1049 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.248006Jy  sigma=0.002372
! Fit after  self-cal, rms=0.247842Jy  sigma=0.002371
! 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.90     FD        0.83     HN        1.04     KB        1.00*    
!   KK        1.01     KP        0.89     LA        1.00*    MK        0.88     
!   NL        1.00*    NY        0.93     OV        0.93     PT        0.92     
!   SC        0.81     WZ        1.04     ZC        1.00*    
! 
!  A total of 60 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.00*    HN        0.83     KB        0.81     
!   KK        1.09     KP        1.00*    LA        1.00*    MK        1.18     
!   NL        1.00*    NY        1.25     OV        0.92     PT        1.00*    
!   SC        1.00*    WZ        1.08     ZC        0.97     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.93     FD        0.85     HN        1.00*    KB        1.00*    
!   KK        1.04     KP        0.95     LA        1.00*    MK        0.98     
!   NL        1.00*    NY        1.00*    OV        0.95     PT        0.98     
!   SC        1.00*    WZ        1.00*    ZC        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    HN        0.00*    KB        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    WZ        0.00*    ZC        0.00*    
! 
!  A total of 60 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.00*    HN        1.00*    KB        0.86     
!   KK        1.00*    KP        1.00*    LA        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.18     OV        1.00*    PT        1.00*    
!   SC        1.00*    WZ        0.96     ZC        1.07     
! 
! 
! Correcting IF 2.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.92     FD        0.83     HN        0.99     KB        1.00*    
!   KK        0.99     KP        0.87     LA        1.00*    MK        0.90     
!   NL        1.00*    NY        0.95     OV        0.93     PT        0.89     
!   SC        0.85     WZ        1.21     ZC        1.00*    
! 
!  A total of 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.08     FD        1.00*    HN        0.88     KB        0.76     
!   KK        0.89     KP        1.00*    LA        1.00*    MK        1.00     
!   NL        1.00*    NY        1.23     OV        1.05     PT        1.00*    
!   SC        1.00*    WZ        0.97     ZC        1.05     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.92     FD        0.85     HN        1.00*    KB        1.00*    
!   KK        1.02     KP        0.92     LA        1.00*    MK        1.00     
!   NL        1.00*    NY        1.00*    OV        0.96     PT        1.01     
!   SC        1.00*    WZ        1.00*    ZC        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    HN        0.00*    KB        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    WZ        0.00*    ZC        0.00*    
! 
!  A total of 60 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.00*    HN        1.00*    KB        0.92     
!   KK        1.00*    KP        1.00*    LA        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.15     OV        1.00*    PT        1.00*    
!   SC        1.00*    WZ        0.92     ZC        1.02     
! 
! 
! Correcting IF 3.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.90     FD        0.85     HN        0.98     KB        1.00*    
!   KK        0.96     KP        0.87     LA        1.00*    MK        0.89     
!   NL        1.00*    NY        1.04     OV        0.91     PT        0.92     
!   SC        1.34     WZ        1.10     ZC        1.00*    
! 
!  A total of 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.90     FD        1.00*    HN        0.72     KB        1.09     
!   KK        0.98     KP        1.00*    LA        1.00*    MK        1.04     
!   NL        1.00*    NY        1.27     OV        1.01     PT        1.00*    
!   SC        1.00*    WZ        1.11     ZC        1.03     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.92     FD        0.80     HN        1.00*    KB        1.00*    
!   KK        1.06     KP        0.87     LA        1.00*    MK        0.92     
!   NL        1.00*    NY        1.00*    OV        0.95     PT        0.97     
!   SC        1.00*    WZ        1.00*    ZC        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    HN        0.00*    KB        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    WZ        0.00*    ZC        0.00*    
! 
!  A total of 60 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.00*    HN        1.00*    KB        1.26     
!   KK        1.00*    KP        1.00*    LA        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.30     OV        1.00*    PT        1.00*    
!   SC        1.00*    WZ        1.00     ZC        1.21     
! 
! 
! Correcting IF 4.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.89     FD        0.82     HN        0.93     KB        1.00*    
!   KK        1.02     KP        0.88     LA        1.00*    MK        0.91     
!   NL        1.00*    NY        0.95     OV        0.90     PT        0.92     
!   SC        0.93     WZ        1.04     ZC        1.00*    
! 
!  A total of 60 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.00*    HN        0.75     KB        1.81     
!   KK        1.02     KP        1.00*    LA        1.00*    MK        0.97     
!   NL        1.00*    NY        1.35     OV        0.97     PT        1.00*    
!   SC        1.00*    WZ        1.02     ZC        1.03     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.84     FD        0.75     HN        1.00*    KB        1.00*    
!   KK        1.07     KP        0.86     LA        1.00*    MK        0.85     
!   NL        1.00*    NY        1.00*    OV        0.95     PT        0.98     
!   SC        1.00*    WZ        1.00*    ZC        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    HN        0.00*    KB        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    WZ        0.00*    ZC        0.00*    
! 
!  A total of 60 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.00*    HN        1.00*    KB        2.03     
!   KK        1.00*    KP        1.00*    LA        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.33     OV        1.00*    PT        1.00*    
!   SC        1.00*    WZ        0.99     ZC        1.06     
! 
! 
! Fit before self-cal, rms=0.247842Jy  sigma=0.002371
! Fit after  self-cal, rms=0.165144Jy  sigma=0.001207
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.093 mas, bmaj=4.998 mas, bpa=9.317 degrees
! Estimated noise=1507.18 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.0226734 Jy
! Component: 100  -  total flux cleaned = -0.0253339 Jy
! Total flux subtracted in 100 components = -0.0253339 Jy
! Clean residual min=-0.016608 max=0.011802 Jy/beam
! Clean residual mean=0.000195 rms=0.003502 Jy/beam
! Combined flux in latest and established models = 1.07957 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 40 components and 1.07957 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.158152Jy  sigma=0.001163
! Fit after  self-cal, rms=0.158233Jy  sigma=0.001162
! 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.00204924 Jy
! Component: 100  -  total flux cleaned = -0.00168878 Jy
! Total flux subtracted in 100 components = -0.00168878 Jy
! Clean residual min=-0.014234 max=0.011250 Jy/beam
! Clean residual mean=0.000187 rms=0.003401 Jy/beam
! Combined flux in latest and established models = 1.07788 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 40 components and 1.07788 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.156507Jy  sigma=0.001152
! Fit after  self-cal, rms=0.152150Jy  sigma=0.001059
! Inverting map and beam 
! Estimated beam: bmin=2.115 mas, bmaj=5.014 mas, bpa=9.049 degrees
! Estimated noise=1504.88 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.0121552 Jy
! Component: 100  -  total flux cleaned = -0.0136286 Jy
! Total flux subtracted in 100 components = -0.0136286 Jy
! Clean residual min=-0.010620 max=0.007333 Jy/beam
! Clean residual mean=0.000064 rms=0.002020 Jy/beam
! Combined flux in latest and established models = 1.06425 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 40 components and 1.06425 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.149595Jy  sigma=0.001047
! Fit after  self-cal, rms=0.149641Jy  sigma=0.001046
! 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 40 model components to file: 2234+282_S.mod
! wwins: Wrote 1 windows to 2234+282_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.115 x 5.014 at 9.049 degrees (North through East)
! Clean map  min=-0.0099676  max=0.93516 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 "****************************"
! **************************** 
![@gonzo_plot 2234+282_S]
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.115 mas, bmaj=5.014 mas, bpa=9.049 degrees
! Estimated noise=1504.88 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.115 x 5.014 at 9.049 degrees (North through East)
! Clean map  min=-0.0099676  max=0.93516 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.4]
quit
! Quitting program
! Log file 2234+282_S.log closed on Thu Aug 14 09:23:01 2008