File Coverage

blib/lib/Astro/FITS/HdrTrans/GMOS.pm
Criterion Covered Total %
statement 18 18 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod 1 1 100.0
total 26 26 100.0


line stmt bran cond sub pod time code
1              
2             =head1 NAME
3              
4             Astro::FITS::HdrTrans::GMOS - Gemini GMOS translations
5              
6             =head1 SYNOPSIS
7              
8             use Astro::FITS::HdrTrans::GMOS;
9              
10             %gen = Astro::FITS::HdrTrans::GMOS->translate_from_FITS( %hdr );
11              
12             =head1 DESCRIPTION
13              
14             This class provides a generic set of translations that are specific to
15             GMOS on the Gemini Observatory.
16              
17             =cut
18              
19             use 5.006;
20 10     10   28491455 use warnings;
  10         37  
21 10     10   49 use strict;
  10         17  
  10         277  
22 10     10   41 use Carp;
  10         16  
  10         191  
23 10     10   49  
  10         15  
  10         665  
24             # Inherit from GEMINI
25             use base qw/ Astro::FITS::HdrTrans::GEMINI /;
26 10     10   64  
  10         21  
  10         3628  
27             use vars qw/ $VERSION /;
28 10     10   59  
  10         20  
  10         1120  
29             $VERSION = "1.65";
30              
31             # for a constant mapping, there is no FITS header, just a generic
32             # header that is constant
33             my %CONST_MAP = (
34             OBSERVATION_MODE => 'imaging',
35             );
36              
37             # NULL mappings used to override base class implementations
38             my @NULL_MAP = qw/ /;
39              
40             # unit mapping implies that the value propogates directly
41             # to the output with only a keyword name change
42              
43             my %UNIT_MAP = (
44             );
45              
46              
47             # Create the translation methods
48             __PACKAGE__->_generate_lookup_methods( \%CONST_MAP, \%UNIT_MAP, \@NULL_MAP );
49              
50             =head1 METHODS
51              
52             =over 4
53              
54             =item B<this_instrument>
55              
56             The name of the instrument required to match (case insensitively)
57             against the INSTRUME/INSTRUMENT keyword to allow this class to
58             translate the specified headers. Called by the default
59             C<can_translate> method.
60              
61             $inst = $class->this_instrument();
62              
63             Returns "GMOS".
64              
65             =cut
66              
67             return qr/^GMOS/;
68             }
69 20     20 1 86  
70             =back
71              
72             =head1 SEE ALSO
73              
74             C<Astro::FITS::HdrTrans>, C<Astro::FITS::HdrTrans::UKIRT>.
75              
76             =head1 AUTHOR
77              
78             Brad Cavanagh E<lt>b.cavanagh@jach.hawaii.eduE<gt>,
79             Tim Jenness E<lt>t.jenness@jach.hawaii.eduE<gt>.
80              
81             =head1 COPYRIGHT
82              
83             Copyright (C) 2003-2005 Particle Physics and Astronomy Research Council.
84             All Rights Reserved.
85              
86             This program is free software; you can redistribute it and/or modify it under
87             the terms of the GNU General Public License as published by the Free Software
88             Foundation; either Version 2 of the License, or (at your option) any later
89             version.
90              
91             This program is distributed in the hope that it will be useful,but WITHOUT ANY
92             WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
93             PARTICULAR PURPOSE. See the GNU General Public License for more details.
94              
95             You should have received a copy of the GNU General Public License along with
96             this program; if not, write to the Free Software Foundation, Inc., 59 Temple
97             Place, Suite 330, Boston, MA 02111-1307, USA.
98              
99             =cut
100              
101             1;