Astro::NED::Query::ByName - query NED by object name
use Astro::NED::Query::ByName; $req = Astro::NED::Query::ByName->new( Field => $value, ... ); $req->Field( $value ); $objs = $req->query;
This class queries NED using the "Objects By Name" interface. It is a subclass of Astro::NED::Query, and thus shares all of its methods.
Class specific details are provided here. See Astro::NED::Query for general information on the class methods (including those not documented here) and how to set or get the search parameters.
$req = Astro::NED::Query::ByName->new( keyword1 => $value1, keyword2 => $value2, ... );
Queries are constructed using the new method, which is passed a list of keyword and value pairs. The keywords may be the names of single valued query parameters.
Search parameters may also be set or queried using the accessor methods; see Astro::NED::Query.
$res = $req->query;
The query method returns an instance of the Astro::NED::Response::Objects class, which contains the results of the query. At present it returns only the summary table, not the detailed information on each object. See Astro::NED::Response::Object for more info.
If an error ocurred an exception is thrown via croak.
Please note that for fields which take specific enumerated values, the values are often not those which are displayed by a web browser. It's best to initially use the possible_values method to determine acceptable values. Usually it's pretty obvious what they correspond to.
The class accessor methods have the same names as the search parameters. See Astro::NED::Query on how to use them.
The object name.
Whether to perform an extended search. Possible values are yes and no.
yes
no
The output coordinate system. Use the possible_values method to determine which ones are available.
The output coordinate system equinox.
The output sort order. Use the possible_values method to determine which ones are available.
Whether the output is formatted as an HTML table or plain text. This will always be forced to HTML.
The upper limit to the number of objects with detailed information. This is always set to force no detailed information
The maximum redshift velocity which will be displayed as km/s.
Whether or not to return an image preview. Always forced off.
None by default.
Diab Jerius, <djerius@cpan.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
http://www.fsf.org/copyleft/gpl.html
Astro::NED::Query, Astro::NED::Response::Objects, Astro::NED::Response::Object, 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.