|
Astro::Catalog::USNOA2::Query - A query request to the USNO-A2.0 Catalog |
Astro::Catalog::USNOA2::Query - A query request to the USNO-A2.0 Catalog
$usno = new Astro::Catalog::USNOA2::Query( RA => $ra,
Dec => $dec,
Radius => $radius,
Bright => $magbright,
Faint => $magfaint,
Sort => $sort_type,
Number => $number_out );
my $catalog = $usno->querydb();
Stores information about an prospective USNO-A2.0 query and allows the query to be made, returning an Astro::Catalog::USNOA2::Catalog 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.
$Id: Query.pm,v 1.6 2002/05/29 20:32:29 aa Exp $
$usno = new Astro::Catalog::USNOA2::Query( RA => $ra,
Dec => $dec,
Radius => $radius,
Bright => $magbright,
Faint => $magfaint,
Sort => $sort_type,
Number => $number_out );
returns a reference to an USNO-A2 query object.
$catalog = $usno->querydb();
$usno->proxy( 'http://wwwcache.ex.ac.uk:8080/' ); $proxy_url = $usno->proxy();
$usno->timeout( 30 ); $proxy_timeout = $usno->timeout();
$url = $usno->url(); $usno->url( "archive.eso.org" );
if not defined the default URL is archive.eso.org
$agent_tag = $usno->agent();
$ra = $usno->ra(); $usno->ra( $ra );
where $ra should be a string of the form ``HH MM SS.SS'', e.g. 21 42 42.66
$dec = $usno->dec(); $usno->dec( $dec );
where $dec should be a string of the form ``+-HH MM SS.SS'', e.g. +43 35 09.5 or -40 25 67.89
$ident = $usno->target(); $usno->target( "HT Cas" );
using an object name will override the current R.A. and Dec settings for the
Query object (if currently set) and the next querydb() method call will query
USNO-A2.0 using this identifier rather than any currently set co-ordinates.
$radius = $query->radius(); $query->radius( 20 );
$faint = $query->faint(); $query->faint( 50 );
$faint = $query->bright(); $query->bright( 2 );
$sort = $query->sort(); $query->sort( 'RA' );
valid options are RA, DEC, RMAG, BMAG, DIST (distance to centre of the requested field) and POS (the position angle to the centre of the field).
$num = $query->number(); $query->nout( 100 );
$dss->configure( %options );
Does nothing if the array is not supplied.
Copyright (C) 2001 University of Exeter. All Rights Reserved.
This program was written as part of the eSTAR project and is free software; you can redistribute it and/or modify it under the terms of the GNU Public License.
Alasdair Allan <aa@astro.ex.ac.uk>,
|
Astro::Catalog::USNOA2::Query - A query request to the USNO-A2.0 Catalog |