! Started logfile: 1514+197_S.log on Sat Mar 31 21:34:42 2007
observe 1514+197_S.edt
! Reading UV FITS file: 1514+197_S.edt
! AN table 1: 123 integrations on 105 of 105 possible baselines.
! AN table 2: 19 integrations on 105 of 105 possible baselines.
! AN table 3: 11 integrations on 105 of 105 possible baselines.
! AN table 4: 26 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.153126 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1514+197
! 
! 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 1268 lines of history.
! 
! Reading 11512 visibilities.
![@gonzo6-0.4 1514+197_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 = 6.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 1178 telescope corrections were flagged in sub-array 1.
!  A total of 285 telescope corrections were flagged in sub-array 2.
!  A total of 113 telescope corrections were flagged in sub-array 3.
!  A total of 330 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1178 telescope corrections were flagged in sub-array 1.
!  A total of 285 telescope corrections were flagged in sub-array 2.
!  A total of 113 telescope corrections were flagged in sub-array 3.
!  A total of 336 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1178 telescope corrections were flagged in sub-array 1.
!  A total of 285 telescope corrections were flagged in sub-array 2.
!  A total of 113 telescope corrections were flagged in sub-array 3.
!  A total of 330 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1179 telescope corrections were flagged in sub-array 1.
!  A total of 285 telescope corrections were flagged in sub-array 2.
!  A total of 113 telescope corrections were flagged in sub-array 3.
!  A total of 330 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.558582Jy  sigma=0.006093
! Fit after  self-cal, rms=0.558482Jy  sigma=0.006093
! 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.097 mas, bmaj=8.241 mas, bpa=-10.86 degrees
! Estimated noise=1338.89 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.339528 Jy
! Total flux subtracted in 50 components = 0.339528 Jy
! Clean residual min=-0.025255 max=0.094720 Jy/beam
! Clean residual mean=0.000208 rms=0.007880 Jy/beam
! Combined flux in latest and established models = 0.339528 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.339528 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.178131Jy  sigma=0.001822
! Fit after  self-cal, rms=0.178131Jy  sigma=0.001822
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0763069 Jy
! Total flux subtracted in 50 components = 0.0763069 Jy
! Clean residual min=-0.012582 max=0.024542 Jy/beam
! Clean residual mean=0.000131 rms=0.003876 Jy/beam
! Combined flux in latest and established models = 0.415835 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 8 components and 0.415835 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.139877Jy  sigma=0.001326
! Fit after  self-cal, rms=0.139910Jy  sigma=0.001325
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0235035 Jy
! Total flux subtracted in 50 components = 0.0235035 Jy
! Clean residual min=-0.011635 max=0.015752 Jy/beam
! Clean residual mean=0.000107 rms=0.003343 Jy/beam
! Combined flux in latest and established models = 0.439339 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 14 components and 0.439339 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.134322Jy  sigma=0.001247
! Fit after  self-cal, rms=0.134354Jy  sigma=0.001247
! 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.806 mas, bmaj=10.57 mas, bpa=-10.71 degrees
! Estimated noise=630.691 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.0258453 Jy
! Component: 100  -  total flux cleaned = 0.0362884 Jy
! Total flux subtracted in 100 components = 0.0362884 Jy
! Clean residual min=-0.007669 max=0.014936 Jy/beam
! Clean residual mean=0.000822 rms=0.002885 Jy/beam
! Combined flux in latest and established models = 0.475627 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 25 model components to the UV plane model.
! The established model now contains 38 components and 0.475627 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.130387Jy  sigma=0.001187
! Fit after  self-cal, rms=0.130334Jy  sigma=0.001187
! 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 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.97     HN        0.97     KB        1.01     
!   KP        1.14     LA        0.98     MK        1.00*    NL        1.02     
!   NY        1.11     OV        0.99     PT        0.95     SV        1.00*    
!   WF        0.98     WZ        0.99     TC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    HN        0.00*    KB        0.00*    
!   KP        0.00*    LA        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SV        0.00*    
!   WF        0.00*    WZ        0.00*    TC        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.13     FD        1.13     HN        1.00*    KB        1.00*    
!   KP        1.16     LA        1.11     MK        1.00*    NL        1.00*    
!   NY        1.00*    OV        1.09     PT        1.09     SV        1.00*    
!   WF        1.00*    WZ        1.00*    TC        1.00*    
! 
!  A total of 60 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*    
!   KP        0.00*    LA        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SV        0.00*    
!   WF        0.00*    WZ        0.00*    TC        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.96     HN        0.94     KB        0.98     
!   KP        1.04     LA        0.98     MK        1.00*    NL        1.03     
!   NY        1.06     OV        1.02     PT        0.99     SV        1.00*    
!   WF        0.97     WZ        0.99     TC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    HN        0.00*    KB        0.00*    
!   KP        0.00*    LA        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SV        0.00*    
!   WF        0.00*    WZ        0.00*    TC        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.21     FD        1.05     HN        1.00*    KB        1.00*    
!   KP        1.21     LA        1.09     MK        1.00*    NL        1.00*    
!   NY        1.00*    OV        1.15     PT        1.12     SV        1.00*    
!   WF        1.00*    WZ        1.00*    TC        1.00*    
! 
!  A total of 54 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*    
!   KP        0.00*    LA        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SV        0.00*    
!   WF        0.00*    WZ        0.00*    TC        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.97     HN        0.96     KB        1.20     
!   KP        1.07     LA        0.97     MK        1.00*    NL        1.02     
!   NY        0.99     OV        1.01     PT        0.96     SV        1.00*    
!   WF        0.95     WZ        0.99     TC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    HN        0.00*    KB        0.00*    
!   KP        0.00*    LA        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SV        0.00*    
!   WF        0.00*    WZ        0.00*    TC        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.17     FD        1.21     HN        1.00*    KB        1.00*    
!   KP        1.15     LA        0.90     MK        1.00*    NL        1.00*    
!   NY        1.00*    OV        1.07     PT        1.12     SV        1.00*    
!   WF        1.00*    WZ        1.00*    TC        1.00*    
! 
!  A total of 60 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*    
!   KP        0.00*    LA        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SV        0.00*    
!   WF        0.00*    WZ        0.00*    TC        0.00*    
! 
! 
! 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.94     HN        0.95     KB        1.59     
!   KP        1.06     LA        0.94     MK        1.00*    NL        1.04     
!   NY        1.07     OV        1.00     PT        0.92     SV        1.00*    
!   WF        0.95     WZ        1.00     TC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    HN        0.00*    KB        0.00*    
!   KP        0.00*    LA        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SV        0.00*    
!   WF        0.00*    WZ        0.00*    TC        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.07     FD        1.19     HN        1.00*    KB        1.00*    
!   KP        1.14     LA        0.90     MK        1.00*    NL        1.00*    
!   NY        1.00*    OV        1.10     PT        1.12     SV        1.00*    
!   WF        1.00*    WZ        1.00*    TC        1.00*    
! 
!  A total of 60 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*    
!   KP        0.00*    LA        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SV        0.00*    
!   WF        0.00*    WZ        0.00*    TC        0.00*    
! 
! 
! Fit before self-cal, rms=0.130334Jy  sigma=0.001187
! Fit after  self-cal, rms=0.124546Jy  sigma=0.001124
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.821 mas, bmaj=10.69 mas, bpa=-10.49 degrees
! Estimated noise=629.317 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 (-6, 5.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0112654 Jy
! Component: 100  -  total flux cleaned = 0.0132455 Jy
! Total flux subtracted in 100 components = 0.0132455 Jy
! Clean residual min=-0.003578 max=0.007875 Jy/beam
! Clean residual mean=0.000429 rms=0.001231 Jy/beam
! Combined flux in latest and established models = 0.488873 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 52 components and 0.488873 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.123645Jy  sigma=0.001112
! Fit after  self-cal, rms=0.123589Jy  sigma=0.001111
! Inverting map 
! Added new window around map position (-17.2, 22.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00694494 Jy
! Component: 100  -  total flux cleaned = 0.009159 Jy
! Total flux subtracted in 100 components = 0.009159 Jy
! Clean residual min=-0.002768 max=0.004017 Jy/beam
! Clean residual mean=0.000358 rms=0.000946 Jy/beam
! Combined flux in latest and established models = 0.498032 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 65 components and 0.498032 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.123231Jy  sigma=0.001107
! Fit after  self-cal, rms=0.123222Jy  sigma=0.001107
! 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 (13.6, 22.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00371408 Jy
! Component: 100  -  total flux cleaned = 0.00544736 Jy
! Total flux subtracted in 100 components = 0.00544736 Jy
! Clean residual min=-0.002711 max=0.003358 Jy/beam
! Clean residual mean=0.000314 rms=0.000862 Jy/beam
! Combined flux in latest and established models = 0.503479 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 81 components and 0.503479 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.123097Jy  sigma=0.001105
! Fit after  self-cal, rms=0.121800Jy  sigma=0.001090
! Inverting map and beam 
! Estimated beam: bmin=2.815 mas, bmaj=10.66 mas, bpa=-10.5 degrees
! Estimated noise=628.165 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)
! Added new window around map position (56.8, 92).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00332495 Jy
! Component: 100  -  total flux cleaned = 0.00482908 Jy
! Total flux subtracted in 100 components = 0.00482908 Jy
! Clean residual min=-0.002495 max=0.002438 Jy/beam
! Clean residual mean=0.000202 rms=0.000644 Jy/beam
! Combined flux in latest and established models = 0.508308 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 94 components and 0.508308 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.121695Jy  sigma=0.001089
! Fit after  self-cal, rms=0.121690Jy  sigma=0.001089
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1514+197_S
! Writing UV FITS file: 1514+197_S.uvf
! Writing 94 model components to file: 1514+197_S.mod
! wwins: Wrote 5 windows to 1514+197_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.815 x 10.66 at -10.5 degrees (North through East)
! Clean map  min=-0.0024448  max=0.45452 Jy/beam
! Writing clean map to FITS file: 1514+197_S.fits
! Writing difmap environment to: 1514+197_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1514+197_S]
device 1514+197_Suv.ps/vps,1,2
! Attempting to open device: '1514+197_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1514+197_Sim.ps/vps
! Attempting to open device: '1514+197_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.815 mas, bmaj=10.66 mas, bpa=-10.5 degrees
! Estimated noise=628.165 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.815 x 10.66 at -10.5 degrees (North through East)
! Clean map  min=-0.0024448  max=0.45452 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo6-0.4]
quit
! Quitting program
! Log file 1514+197_S.log closed on Sat Mar 31 21:35:03 2007