NAME
Astro::FITS::HdrTrans::SCUBA - JCMT SCUBA translations
DESCRIPTION
Converts information contained in SCUBA FITS headers to and from generic headers. See Astro::FITS::HdrTrans for a list of generic headers.
METHODS
- this_instrument
-
The name of the instrument required to match (case insensitively) against the INSTRUME/INSTRUMENT keyword to allow this class to translate the specified headers. Called by the default
can_translatemethod.$inst = $class->this_instrument();Returns "SCUBA".
- can_translate
-
The database tables do not include an instrument field so we need to determine suitability by looking at other fields instead of using the base implementation.
$cando = $class->can_translate( \%hdrs );For SCUBA we first check for BOLOMS and SCU# headers and then use the base implementation that will look at the INSTRUME field.
COMPLEX CONVERSIONS
These methods are more complicated than a simple mapping. We have to provide both from- and to-FITS conversions All these routines are methods and the to_ routines all take a reference to a hash and return the translated value (a many-to-one mapping) The from_ methods take a reference to a generic hash and return a translated hash (sometimes these are many-to-many)
- to_CHOP_COORDINATE_SYSTEM
-
Uses the
CHOP_CRDFITS header to determine the chopper coordinate system, and then places that coordinate type in theCHOP_COORDINATE_SYSTEMgeneric header.A FITS header value of 'LO' translates to 'Tracking', 'AZ' translates to 'Alt/Az', and 'NA' translates to 'Focal Plane'. Any other values will return undef.
- to_COORDINATE_TYPE
-
Uses the
CENT_CRDFITS header to determine the coordinate type (galactic, B1950, J2000) and then places that coordinate type in theCOORDINATE_TYPEgeneric header. - to_EQUINOX
-
Translates EQUINOX header into valid equinox value. The following translation is done:
RB => 1950
RJ => 2000
RD => current
AZ => AZ/EL
- from_EQUINOX
-
Translates generic
EQUINOXvalues into SCUBA FITS equinox values for theCENT_CRDheader. - to_OBSERVATION_MODE
-
Returns
photometryif the FITS header value forMODEisPHOTOM, otherwise returnsimaging. - to_OBSERVATION_TYPE
-
Converts the observation type. If the FITS header is equal to
PHOTOM,MAP,POLPHOT, orPOLMAP, then the generic header value isOBJECT. Else, the FITS header value is copied directly to the generic header value. - to_POLARIMETRY
-
Sets the
POLARIMETRYgeneric header to 'true' if the value for the FITS headerMODEis 'POLMAP' or 'POLPHOT', otherwise sets it to 'false'. - to_UTDATE
-
Converts either the
UTDATEorDATEheader into aTime::Pieceobject. - from_UTDATE
-
Converts UT date in
Time::Pieceobject intoYYYY:MM:DDformat forUTDATEheader. - to_UTSTART
-
Combines
UTDATEandUTSTARTinto a unifiedUTSTARTgeneric header. If those headers do not exist, usesDATE. - from_UTSTART
-
Converts the unified
UTSTARTgeneric header intoUTDATEandUTSTARTFITS headers of the formYYYY:MM:DDandHH:MM:SS. - to_UTEND
-
Converts the <UTDATE> and
UTENDheaders into a combinedTime::Pieceobject. - from_UTEND
-
Converts the unified
UTENDgeneric header intoUTDATEandUTENDFITS headers of the formYYYY:MM:DDandHH:MM:SS. - to_MSBID
-
Converts the MSBID field to an MSBID. Complication is that the SCUBA header and database store a blank MSBID as a single space rather than an empty string and this causes difficulty in some subsystems.
This routine replaces a single space with a null string.
SEE ALSO
Astro::FITS::HdrTrans, Astro::FITS::HdrTrans::Base
AUTHOR
Brad Cavanagh <b.cavanagh@jach.hawaii.edu>, Tim Jenness <t.jenness@jach.hawaii.edu>
COPYRIGHT
Copyright (C) 2007 Science and Technology Facilities Council. Copyright (C) 2003-2005 Particle Physics and Astronomy Research Council. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place,Suite 330, Boston, MA 02111-1307, USA