NAME

Astro::NED::Response::CoordExtinct - query results for a coordinates and extinction

SYNOPSIS

  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 );

DESCRIPTION

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.

Constructor

The constructor, new, takes a list of field, value pairs with which to initialize the object. See Fields for more information.

Non Accessor Methods

dump
  $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
  @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
  %data = $obj->data;

This returns the object's data as a hash, keyed off of the field names. Use the accessor methods if possible.

parseHTML
  $obj->parseHTML( $html );

Initializes the object from the passed HTML content. This is typically invoked only by Astro::NED::Query::CoordExtinct.

Accessing the data

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.

Fields

The following fields are defined.

Lat

The latitude of the object in degrees, if the output coordinate system is in latitude/longitude.

Lon

The longitude of the object in degrees, if the output coordinate system is in latitude/longitude.

RA

The Right Ascension of the object in degrees, if the output coordinate system is equatorial.

Dec

The Declination of the object in degrees, if the output coordinate system is equatorial.

PA

The position angle of the object in degrees, in the output coordinate system,

U, B, V, R, I, J, H, K, L'

The extinction in the given bandpass.

EB-V

The E(B-V) color excess.

EXPORT

None by default.

AUTHOR

Diab Jerius, <djerius@cpan.org>

COPYRIGHT AND LICENSE

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

SEE ALSO

Astro::NED::Response, Astro::NED::Query, perl.