! Started logfile: 1155+251_S.log on Wed Jul 18 21:19:39 2007
observe 1155+251_S.edt
! Reading UV FITS file: 1155+251_S.edt
! AN table 1: 74 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.437253 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1155+251
! 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.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 1332 lines of history.
! 
! Reading 22132 visibilities.
![@gonzo7-0.4 1155+251_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 631 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 595 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 581 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 580 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.653446Jy  sigma=0.008194
! Fit after  self-cal, rms=0.648861Jy  sigma=0.008188
! 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.042 mas, bmaj=3.561 mas, bpa=-8.745 degrees
! Estimated noise=1653.23 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.200046 Jy
! Total flux subtracted in 50 components = 0.200046 Jy
! Clean residual min=-0.021000 max=0.069018 Jy/beam
! Clean residual mean=-0.000406 rms=0.009177 Jy/beam
! Combined flux in latest and established models = 0.200045 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.200045 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.335718Jy  sigma=0.004769
! Fit after  self-cal, rms=0.335667Jy  sigma=0.004768
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0847599 Jy
! Total flux subtracted in 50 components = 0.0847599 Jy
! Clean residual min=-0.018015 max=0.047899 Jy/beam
! Clean residual mean=-0.000367 rms=0.007571 Jy/beam
! Combined flux in latest and established models = 0.284805 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 25 components and 0.284805 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.286915Jy  sigma=0.004069
! Fit after  self-cal, rms=0.286852Jy  sigma=0.004068
! 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=3.395 mas, bmaj=5.121 mas, bpa=-18.36 degrees
! Estimated noise=561.052 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.179734 Jy
! Component: 100  -  total flux cleaned = 0.267942 Jy
! Total flux subtracted in 100 components = 0.267942 Jy
! Clean residual min=-0.030460 max=0.088511 Jy/beam
! Clean residual mean=-0.001069 rms=0.016412 Jy/beam
! Combined flux in latest and established models = 0.552748 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 36 model components to the UV plane model.
! The established model now contains 50 components and 0.552748 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.179977Jy  sigma=0.002524
! Fit after  self-cal, rms=0.179905Jy  sigma=0.002523
! 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 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.45     FD        0.95     GC        0.95     GG        1.00*    
!   HN        1.48     KP        0.76     LA        0.81     MA        0.81     
!   MK        1.00*    NL        1.08     NY        1.38     ON        0.76     
!   OV        0.82     PT        0.79     SC        1.13     TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.64     FD        0.89     GC        0.98     GG        1.00*    
!   HN        1.59     KP        0.82     LA        0.78     MA        0.74     
!   MK        1.00*    NL        1.14     NY        1.31     ON        0.87     
!   OV        0.88     PT        0.79     SC        1.18     TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.89     FD        0.85     GC        1.09     GG        1.00*    
!   HN        1.67     KP        0.80     LA        0.67     MA        0.65     
!   MK        1.00*    NL        1.22     NY        1.18     ON        0.87     
!   OV        0.88     PT        0.81     SC        1.36     TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.89     FD        0.79     GC        1.11     GG        1.00*    
!   HN        1.55     KP        0.79     LA        0.70     MA        0.59     
!   MK        1.00*    NL        1.16     NY        1.12     ON        0.81     
!   OV        0.78     PT        0.79     SC        1.26     TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.179905Jy  sigma=0.002523
! Fit after  self-cal, rms=0.122703Jy  sigma=0.001375
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.244 mas, bmaj=5.426 mas, bpa=-13.47 degrees
! Estimated noise=527.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.000779094 Jy
! Component: 100  -  total flux cleaned = -0.00161866 Jy
! Total flux subtracted in 100 components = -0.00161866 Jy
! Clean residual min=-0.018073 max=0.026272 Jy/beam
! Clean residual mean=-0.000100 rms=0.004759 Jy/beam
! Combined flux in latest and established models = 0.551129 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 52 components and 0.551129 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.121874Jy  sigma=0.001373
! Fit after  self-cal, rms=0.122366Jy  sigma=0.001369
! 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 (5.6, 8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0195426 Jy
! Component: 100  -  total flux cleaned = 0.0201675 Jy
! Total flux subtracted in 100 components = 0.0201675 Jy
! Clean residual min=-0.015005 max=0.021533 Jy/beam
! Clean residual mean=-0.000011 rms=0.004197 Jy/beam
! Combined flux in latest and established models = 0.571296 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 68 components and 0.571297 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.117708Jy  sigma=0.001306
! Fit after  self-cal, rms=0.106293Jy  sigma=0.001247
! Inverting map and beam 
! Estimated beam: bmin=3.271 mas, bmaj=5.371 mas, bpa=-13.62 degrees
! Estimated noise=525.395 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 (-40.4, 12.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0199239 Jy
! Component: 100  -  total flux cleaned = 0.0248607 Jy
! Total flux subtracted in 100 components = 0.0248607 Jy
! Clean residual min=-0.012327 max=0.018290 Jy/beam
! Clean residual mean=-0.000002 rms=0.003485 Jy/beam
! Combined flux in latest and established models = 0.596157 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 81 components and 0.596157 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.102294Jy  sigma=0.001195
! Fit after  self-cal, rms=0.102052Jy  sigma=0.001189
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1155+251_S
! Writing UV FITS file: 1155+251_S.uvf
! Writing 81 model components to file: 1155+251_S.mod
! wwins: Wrote 3 windows to 1155+251_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.271 x 5.371 at -13.62 degrees (North through East)
! Clean map  min=-0.011986  max=0.36434 Jy/beam
! Writing clean map to FITS file: 1155+251_S.fits
! Writing difmap environment to: 1155+251_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1155+251_S]
device 1155+251_Suv.ps/vps,1,2
! Attempting to open device: '1155+251_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1155+251_Sim.ps/vps
! Attempting to open device: '1155+251_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=3.271 mas, bmaj=5.371 mas, bpa=-13.62 degrees
! Estimated noise=525.395 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.271 x 5.371 at -13.62 degrees (North through East)
! Clean map  min=-0.011986  max=0.36434 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.4]
quit
! Quitting program
! Log file 1155+251_S.log closed on Wed Jul 18 21:19:47 2007