- COPYRIGHT AND LICENSE
- SEE ALSO
Astro::NED::Response::Object - query results for a single object
use Astro::NED::Response::Object; my $obj = Astro::NED::Response::Object->new( Field => $value, ... ); print $obj->Field;
An instance of Astro::NED::Response::Object contains information on a single object (astronomical, not computer science) returned by queries generated by Astro::NED::Query::ByName, Astro::NED::Query::NearName, or Astro::NED::Query::NearPosition (actually, any class subclassed from Astro::NED::Query::Objects).
The object (computer science, not astronomical) is usually contained in and created by a Astro::NED::Response::Objects object from the results of the query.
Objects are read-only.
For complete information on the available fields, see http://nedwww.ipac.caltech.edu/help/objresult_help.html.
Currently, the detailed object information is *not* available (just the summary information) although the InfoLink method will return the URL to that information.
The constructor, new, takes a list of field, value pairs with which to initialize the object. See Fields for more information.
$string = $obj->dumpstr(); $string = $obj->dumpstr( $pfx );
Return a string representation of the object. If
$pfxis specified, each output line will begin with it. The returned string is useful for printing only.
$obj->dump(); $obj->dump( $fh ); $obj->dump( $fh, $pfx );
Print a representation of the object to the passed filehandle. If no filehandle is specified, it is printed to the standard output stream. Each output line will begin with
@fields = $obj->fields; @fields = Astro::NED::Response::Object->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.
Acesss to the data is via accessor methods named after the fields returned by NED (e.g.
$obj->Name). They take no arguments and return the field values. Data can also be extracted into a hash via the data method.
The following fields are defined.
A sequential object number applicable to this list only.
One of NED's names for the object.
The latitude of the object, if the output coordinate system is in latitude/longitude.
The longitude of the object, if the output coordinate system is in latitude/longitude.
The Right Ascension of the object, if the output coordinate system is equatorial.
The Declination of the object, if the output coordinate system is equatorial.
The NED "Preferred Object Type"
The heliocentric redshift as cz, in km/s.
The heliocentric redshift.
A qualifier on the redshift.
The distance, in arcminutes, to the search position or named object position.
The number of literature references.
The number of catalogue notes.
The number of photometric determinations
The number of positions.
The number of velocities.
The number of NED associations.
A URL to an image of the object
A URL to the detailed information on this object.
None by default.
Diab Jerius, <firstname.lastname@example.org>
This software is Copyright (C) 2003 Smithsonian Astrophysical Observatory. All rights are of course reserved.
It is released under the GNU General Public License. You may find a copy at