Astro::NED::Response::CoordExtinct - query results for a coordinates and extinction
use Astro::NED::Response::CoordExtinct; # create and initialize object $obj = Astro::NED::Response::CoordExtinct->new( Field => $value, ... ); print $obj->Field; # initialize existing object from an HTML response $obj->parseHTML( $html );
An instance of Astro::NED::Response::CoordExtinct contains information returned by queries generated by Astro::NED::Query::CoordExtinct.
For complete information on the available fields, see http://nedwww.ipac.caltech.edu/help/calc_help.html.
The constructor, new, takes a list of field, value pairs with which to initialize the object. See Fields for more information.
$obj->dump( $fh );
Print a representation of the object to the passed filehandle. If no filehandle is specified, it is printed to the standard output stream.
@fields = $obj->fields; @fields = Astro::NED::Response::CoordExtinct->fields;
This is either a class or an object method. As an object method, it returns a list of fields which had values in the object. As a class method, it returns a list of all possible fields.
%data = $obj->data;
This returns the object's data as a hash, keyed off of the field names. Use the accessor methods if possible.
$obj->parseHTML( $html );
Initializes the object from the passed HTML content. This is typically invoked only by Astro::NED::Query::CoordExtinct.
Acesss to the data is via accessor methods named after the fields returned by NED (e.g. $obj->RA). They take no arguments and return the field values. Data can also be extracted into a hash via the data method.
$obj->RA
The following fields are defined.
The latitude of the object in degrees, if the output coordinate system is in latitude/longitude.
The longitude of the object in degrees, if the output coordinate system is in latitude/longitude.
The Right Ascension of the object in degrees, if the output coordinate system is equatorial.
The Declination of the object in degrees, if the output coordinate system is equatorial.
The position angle of the object in degrees, in the output coordinate system,
The extinction in the given bandpass.
The E(B-V) color excess.
None by default.
Diab Jerius, <djerius@cpan.org>
This software is Copyright (C) 2004 Smithsonian Astrophysical Observatory. All rights are of course reserved.
It is released under the GNU General Public License. You may find a copy at
http://www.fsf.org/copyleft/gpl.html
Astro::NED::Response, Astro::NED::Query, perl.
To install Astro::NED::Query, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Astro::NED::Query
CPAN shell
perl -MCPAN -e shell install Astro::NED::Query
For more information on module installation, please visit the detailed CPAN module installation guide.