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


next up previous contents index
Next: dish.addstack - Function Up: dish - Tool Previous: dish - Constructor


dish.accum - Function



Package dish
Module dish
Tool dish


Add spectrum to the accumulator.


Synopsis
accum(scans)


Description
This function is used in averaging scans. The spectrum stored in the globalscan1 spectrum is added to the accumulator for later averaging. Optionally, a scan number or vector of scan numbers can be supplied to this function, and those will be added to the accumulator.



Arguments

scans   scan numbers to add to accumulator
    Allowed: integer or vector of integers
    Default: globalscan1


Returns
Boolean


Example
 d.sclear()           # clear the accumulator
 d.getc(35)           # retrieve calibrated scan 35
 d.accum()            # add the scan to the accumulator
 d.getc(36)           # retrieve calibrated scan 36
 d.accum()            # add the scan to the accumulator
 d.ave()              # average scans in the accumulator
 d.show()             # display the result on the plotter

 Equivalently:

 d.sclear()           # clear the accumulator
 d.accum([35,36])     # add the scans to the accumulator
 d.ave()              # average scans in the accumulator
 d.show()             # display the result on the plotter





next up previous contents index
Next: dish.addstack - Function Up: dish - Tool Previous: dish - Constructor   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