NAME
Astro::Telescope - class for obtaining telescope information
SYNOPSIS
use Astro::Telescope;
$tel = new Astro::Telescope( 'UKIRT' );
$latitude = $tel->lat;
$longitude = $tel->long;
$altitude = $tel->alt;
@telescopes = Astro::Telescope->telNames();
DESCRIPTION
A class for handling properties of individual telescopes such as longitude, latitude and height.
METHODS
Constructor
- new
-
Create a new telescope object. Takes the telescope abbreviation as the single argument.
$tel = new Astro::Telescope( 'VLA' );
An argument must be supplied. Returns
undef
if the telescope is not recognized.
Acessor Methods
- name
-
Returns the abbreviated name of the telescope. This is the same as that given to the constructor (although it will be upper-cased).
The object can be reconfigured to a new telescope by supplying a new abbreviation to this method.
$tel->name('JCMT');
The object will not change state if the name is not known.
- fullname
-
Returns the full name of the telescope. For example, if the abbreviated name is "JCMT" this will return "James Clerk Maxwell Telescope".
- long
-
Longitude of the telescope (east +ve). By default this is in radians.
An argument of "d" or "s" can be supplied to retrieve the value in decimal degrees or sexagesimal string format respectively.
$string = $tel->long("s");
- lat
-
Geodetic latitude of the telescope. By default this is in radians.
An argument of "d" or "s" can be supplied to retrieve the value in decimal degrees or sexagesimal string format respectively.
$deg = $tel->lat("d");
- alt
-
Altitude of the telescope in metres.
Class Methods
- telNames
-
Obtain a sorted list of all supported telescope names.
REQUIREMENTS
The list of telescope properties is currently obtained from those provided by SLALIB (Astro::SLA
).
AUTHOR
Tim Jenness <t.jenness@jach.hawaii.edu>
COPYRIGHT
Copyright (C) 1998-2001 Particle Physics and Astronomy Research Council. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.