Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1488 |
|
Package | dish | |
Module | dish |
include "sdaverager.g"
sdaverager | An sdaverager |
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. |
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.