|
Astro::Aladin - Perl class giving access to images and catalogues |
Astro::Aladin - Perl class giving access to images and catalogues
my $aladin = new Astro::Aladin();
my $aladin = new Astro::Aladin( RA => $ra,
Dec => $dec,
Radius => $radius );
An instance my be created using the default constructor, or using one that defines an R.A., Dec and Radius for future queries.
This module gives a high level interface to images and catalogues available using the CDS Aladin Application. It sits ontop of the Astro::Aladin::LowLevel module which drives Aladin directly through an anonymous pipe. You should use this module for access to resources rather than the lower level.
$Id: Aladin.pm,v 1.3 2003/02/26 19:21:37 aa Exp $
$aladin = new Astro::Aladin( %options );
returns a reference to an Aladin object.
$ra = $aladin->ra(); $aladin->ra( $ra );
where $ra should be a string of the form ``HH MM SS.SS'', e.g. 21 42 42.66
$dec = $aladin->dec(); $dss->aladin( $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
$radius = $aladin->radius(); $aladin->radius( 20 );
$waveband = $aladin->band(); $aladin->band( $waveband );
this is only really useful for repetative queries using the same catalogue or image server. Valid choices for the waveband are ``UKST Blue'', ``UKST Red'', ``UKST Infrared'', ``ESO Red'' and ``POSS-I Red''.
$filename = $aladin->file(); $aladin->file( $filename );
$filename = $aladin->supercos_catalog(
RA => $ra,
Dec => $dec,
Radius => $radius,
File => $catalog_file,
Band => $waveband );
$filename = $aladin->supercos_catalog();
where the RA and Dec are in standard sextuple format and the radius is in arc minutes. Valid choices for the waveband are "UKST Blue", "UKST Red", "UKST Infrared", "ESO Red" and "POSS-I Red".
The routine returns the filename of the retrieved catalogue, or undef is there has been an error. It is possiblle that the Aladin retrevial dies without returning results, leaving a corrupt, empty or nonexistant results file. Existance and readability of the returned file should always be checked when calling this method.
Configures the object, takes an options hash as an argument
$aladin->configure( %options);
Does nothing if the array is not supplied.
Copyright (C) 2003 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::Aladin - Perl class giving access to images and catalogues |