Astro-Catalog
view release on metacpan or search on metacpan
lib/Astro/Catalog/Query/SuperCOSMOS.pm view on Meta::CPAN
package Astro::Catalog::Query::SuperCOSMOS;
# Depressingly the generic reg expression used the SkyCat.pm doesn't
# seem to work for SuperCOSMOS URL's, eventually we're going to have
# to make the regexp more generic. In the interim, I've cut and pasted
# the entire module into this sub-class so I can do queries.
#
# Yes Tim, I know this sucks.
=head1 NAME
Astro::Catalog::Query::SuperCOSMOS - A query request to the SuperCOSMOS catalogue
=head1 SYNOPSIS
$supercos = new Astro::Catalog::Query::SuperCOSMOS(
RA => $ra,
Dec => $dec,
Radius => $radius,
Nout => $number_out,
Colour => $band);
my $catalog = $supercos->querydb();
=head1 WARNING
This code totally ignores the epoch of the observations and the associated
proper motions, this pretty much means that for astrometric work the catalogs
you get back from the query are pretty much bogus. This should be sorted in
the next distribution.
=head1 DESCRIPTION
The module is an object orientated interface to the online SuperCOSMOS
catalogue using the generic Astro::Catalog::Query::SkyCat class
Stores information about an prospective query and allows the query to
be made, returning an Astro::Catalog::Query::SuperCOSMOS object.
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::BaseQuery> for the catalog-independent methods.
=cut
use strict;
use warnings;
use warnings::register;
use base qw/Astro::Catalog::Transport::REST/;
use Data::Dumper;
use Carp;
use File::Spec;
use Carp;
# generic catalog objects
use Astro::Catalog;
use Astro::Catalog::Item;
use Astro::Flux;
use Astro::FluxColor;
use Astro::Fluxes;
use Number::Uncertainty;
our $VERSION = '4.38';
our $DEBUG = 0;
# Controls whether we follow 'directory' config entries and recursively
# expand those. Default to false at the moment.
our $FOLLOW_DIRS = 0;
# This is the name of the config file that was used to generate
# the content in %CONFIG. Can be different to the contents ofg_file
# if that
my $CFG_FILE;
# This is the content of the config file
# organized as a hash indexed by remote server shortname
# this has the advantage of removing duplicates
my %CONFIG;
=head1 METHODS
=head2 Constructor
=over 4
=item B<new>
Simple constructor, handles the 'Colour' option, e.g.
long_name: SuperCOSMOS catalog - blue (UKJ) southern survey
short_name: SSScat_UKJ@WFAU
long_name: SuperCOSMOS catalog - red (UKR) southern survey
short_name: SSScat_UKR@WFAU
long_name: SuperCOSMOS catalog - near IR (UKI) southern survey
( run in 0.379 second using v1.01-cache-2.11-cpan-d7a12ab2c7f )