Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1488
News FAQ
Search Home


next up previous contents index
Next: sdaverager - Constructor Up: dish - Module Previous: dishdemodata - Function


sdaverager - Tool



Package dish
Module dish


Postscript file available

A tool for averaging single dish data

include "sdaverager.g"

Constructors
sdaverager An sdaverager
Functions
accumiterator Add an entire iterator to the internal accumulation
accumulate Add the data array to the internal accumulation.
average Get the current internal accumulation
clear Clear the on-going average.
dorestshift Do we align by rest frequency?
getalignment Return the current alignment option.
getweighting Return the current weighting option.
restshiftstate Are we aligning by rest frequency?
setalignment Set the alignment option.
setweighting Set the weighting option.



Description
This tool is intended to be used with dish, the single dish environment. It averages single dish data including the contents of an Sditerator tool with a single function call.



Example
sdit := sditerator('dishdemo1')
avger := sdaverager()
avger.clear()
avger.setalignment('VELOCITY')
avger.setweighting('TSYS')
avger.dorestshift(T)
ok := avger.accumiterator(sdit)
ok := avger.average(newarr, newtsys, newcrpix, newcrval, 
                    newcdelt, newcunit, newctype, newveldef, 
                    newrestfreq, newexposure, newduration)

The first line makes an sditerator from a file. The second line makes the averager tool. The averager is then cleared before the accumulation starts. Various options are set. The entire sditerator is then averaged. The resulting averaged array, system temperature, x-axis description, rest frequency, exposure, and duration are then requested from the averager. At this point, additional sdrecords from other iterators or other sources could continue to be added to this on-going average. If a new average is to be started, the averager must first be cleared.



See Also
dish reference manual Using Dish sditerator tool




next up previous contents index
Next: sdaverager - Constructor Up: dish - Module Previous: dishdemodata - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-08-01