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.scandiv - Function Up: dish - Tool Previous: dish.scanadd - Function


dish.scanbias - Function



Package dish
Module dish
Tool dish


Adds a bias level to a scan.


Synopsis
scanbias(scan, offset)


Description
Adds a bias offset to a spectrum. Also see d.bias() to add a value to the globalscan1 record directly.

The bias value can be a single value, in which case the entire data array in the sdrecord is offset by one value. It can also be an array of values if the user wishes to apply different offsets to each polarization. The length of the offset array in this case must equal the number of polarizations in the sdrecord.



Arguments

scan   scan
    Allowed: SDRecord
    Default: no default
offset   bias level to add
    Allowed: float or array of floats
    Default: no default


Returns
An SDRecord


Example
- scan := d.getc(2)
- biasedscan := d.scanbias(scan,0.5);
- d.plotscan(biasedscan)
- biasedscan_b := d.scanbias(scan,[0.5,-0.5]);
- d.plotscan(biasedscan_b)





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