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.scansrr - Function Up: dish - Tool Previous: dish.scanmult - Function


dish.scanscale - Function



Package dish
Module dish
Tool dish


Multiply an sdrecord's spectrum by a value or array


Synopsis
scanscale(scan1, sfactor)


Description
This function scales an sdrecord and returns the result as an sdrecord. Also see the function d.scale() to apply scaling to the globalscan1 record directly.

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



Arguments

scan1   SDRecord to be scaled
    Allowed: SDRecord
    Default: no default
sfactor   multiplicative factor
    Allowed: float or array of floats
    Default: no default


Returns
Boolean


Example
- sc := d.getc(10)
- scaled := d.scanscale(sc, 2.0)
- d.plotscan(scaled)
- scaled_b := d.scanscale(sc, [2.0,4.5])
- d.plotscan(scaled_b)





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