Astro-WaveBand

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

Astro::WaveBand
===============

This module provides transparent conversion of astronomical filter
names to wavelength and frequency and vice versa.  For example it
knows the wavelengths of the J, H and K near-infrared filters or the
filter names of the SCUBA submm camera.

This software is still in alpha release. It's been used in my
applications but there may be some future API tweaks required as more
telescopes/instruments are included.

Requirements
------------

lib/Astro/WaveBand.pm  view on Meta::CPAN

    $natural = $w->natural;
    $natural = "$w";

    $w->natural_unit("wavelength");

    if ($w1 > $w2) {...}
    if ($w1 == $w2) {...}

=head1 DESCRIPTION

Class to transparently deal with the conversion between filters,
wavelength, frequency and other methods of specifying a location
in the electro-magentic spectrum.

The class tries to determine the natural form of the numbers such that
a request for a summary of the object when it contains 2.2 microns
would return the filter name but would return the wavelength if it was
not a standard filter. In ambiguous cases an instrument name is
required to decide what to return. In really ambiguous cases the user
can specify the unit in which to display the numbers on
stringification.



( run in 0.424 second using v1.01-cache-2.11-cpan-a1d94b6210f )