Astro::Flux is a Perl class for handling astronomical flux quantities.
SYNOPSIS
use Astro::Flux;
$flux = new Astro::Flux( $quantity, $units, $waveband );
$quantity = $flux- >quantity('mag');
Class for handling astronomical flux quantities. This class does not currently support conversions from one flux type to another (say, from magnitudes to Janskies) but may in the future.
METHODS
Constructor
new
Create a new instance of an Astro::Flux object.
$flux = new Astro::Flux( $quantity, $type, $waveband );
The first three parameters must be defined. They are:
quantity - numerical value for the flux, my be a primitive, or a
C< Number::Uncertainty > object.
type - type of flux. Can be any string.
waveband - waveband for the given flux. Must be an C< Astro::WaveBand > object.
If any of the parameters are undefined, the constructor will throw an error. If the waveband parameter is not an Astro::WaveBand object, the constructor will throw an error.
The type is case-insensitive for lookups using the quantity method.
A fourth optional argument may be passed; this is a hash containing the following optional keys:
quality - an C< Misc::Quality > object denoting quality flags for the
C< Astro::Flux > object.
reference_waveband - an C< Astro::WaveBand > object denoting a reference
waveband for the C< Astro::Flux > object. This is used for determining
magnitudes when deriving them from C< Astro::FluxColor > objects. See
C< Astro::Fluxes >.
datetime - an C< DateTime > object which is the datetime of observation for the
measurement in the C< Astro::Flux > object.
obsid - An array reference to a list of observation identifiers. Can be used to identify the observation(s) from which this measurement was taken (e.g. from a filename).
Product's homepage
Requirements:
· Perl