Astro-Catalog
view release on metacpan or search on metacpan
lib/Astro/Catalog/Query/SIMBAD.pm view on Meta::CPAN
package Astro::Catalog::Query::SIMBAD;
=head1 NAME
Astro::Catalog::Query::SIMBAD - A query request to the SIMBAD database
=head1 SYNOPSIS
$sim = new Astro::Catalog::Query::SIMBAD(
RA => $ra,
Dec => $dec,
Radius => $radius,
Target => $target,
);
my $catalog = $sim->querydb();
=head1 DESCRIPTION
The module is an object orientated interface to the online SIMBAD
database. Designed to return information on a single object.
Target name overrides RA/Dec.
The object will by default pick up the proxy information from the
HTTP_PROXY and NO_PROXY environment variables, see the LWP::UserAgent
documentation for details.
See L<Astro::Catalog::Query> for the catalog-independent methods.
=cut
use strict;
use warnings;
use base qw/Astro::Catalog::Transport::REST/;
use Carp;
use Astro::Coords;
use Astro::Catalog;
use Astro::Catalog::Item;
our $VERSION = '4.38';
=begin __PRIVATE_METHODS__
=head2 Private methods
These methods are for internal use only.
=over 4
=item B<_default_remote_host>
=cut
sub _default_remote_host {
return "simbad.u-strasbg.fr";
}
=item B<_default_url_path>
=cut
sub _default_url_path {
return "sim-id.pl?";
}
=item B<_get_allowed_options>
Returns a hash with keys, being the internal options supported
by this subclass, and values being the key name actually required
by the remote system (and to be included in the query).
=cut
sub _get_allowed_options {
my $self = shift;
return (
ra => 'ra',
dec => 'dec',
object => 'Ident',
radmax => 'Radius',
nout => "output.max",
bibyear1 => "Bibyear1",
bibyear2 => "Bibyear2",
( run in 0.304 second using v1.01-cache-2.11-cpan-d7a12ab2c7f )