Astro::FITS::HdrTrans::UFTI - UKIRT UFTI translations
use Astro::FITS::HdrTrans::UFTI; %gen = Astro::FITS::HdrTrans::UFTI->translate_from_FITS( %hdr );
This class provides a generic set of translations that are specific to the UFTI camera of the United Kingdom Infrared Telescope.
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_translate method.
can_translate
$inst = $class->this_instrument();
Returns "UFTI".
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).
Sets the declination scale in arcseconds per pixel derived from keyword CDELT2. The default is time dependent, as tabulated in the UFTI web page. http://www.jach.hawaii.edu/UKIRT/instruments/ufti/PARAMETERS.html#1 The default scale assumes north is to the top.
CDELT2
The actual CDELT2 value is scaled if its unit is degree/pixel, as suggested by its size, and the presence of header CTYPE2 set to 'DEC--TAN' indicating that the WCS follows the AIPS convention.
CTYPE2
Determines the file format being used. It is either "HDS" (meaning an HDS container file of NDFs) or "FITS" and is determined by the presence of the DHSVER header.
"HDS"
"FITS"
Checks the filter name.
Converts the decimal hours in the FITS header RABASE into decimal degrees for the generic header RA_BASE.
RABASE
RA_BASE
Note that this is different from the original translation within ORAC-DR where it was to decimal hours.
There was a period from 2000-05-07 to 2000-07-19 inclusive, where degrees, not hours, were written whenever the data were stored as NDF format. However, there wasn't a clean changover during ORAC-DR commissioning. So use the FILE_FORMAT to discriminate between the two formats.
Converts the decimal degrees in the generic header RA_BASE into decimal hours for the FITS header RABASE.
%fits = $class->from_RA_BASE( \%generic );
There was a period from 2000-05-07 to 2000-07-19 inclusive, where degrees, not hours, were written whenever the data were stored as NDF format. However, there was not a clean changover during ORAC-DR commissioning. So use the generic header FILE_FORMAT to discriminate between the two formats. For symmetry and consistency, retain these units during the problem period.
Sets the right-ascension scale in arcseconds per pixel derived from keyword CDELT1. The default is time dependent, as tabulated in the UFTI web page. http://www.jach.hawaii.edu/UKIRT/instruments/ufti/PARAMETERS.html#1 The default scale assumes east is to the left.
CDELT1
It corrects for an erroneous sign in early data.
The actual CDELT1 value is scaled if its unit is degree/pixel, as suggested by its size, and the presence of header CTYPE1 set to 'RA---TAN' indicating that the WCS follows the AIPS convention.
CTYPE1
Converts the generic header RA_SCALE to the FITS header CDELT1 by ensuring it has a positive sign as in the input data. This sign is wrong because the right ascension increases with decreasing pixel index, however this conversion permits a cycle from FITS to generic and back to FITS to retain the original value.
RA_SCALE
%fits = $class->from_RA_SCALE( \%generic );
Converts FITS header values into Time::Piece object. This differs from the base class in the use of the DATE rather than UTDATE header item and the formatting of the DATE keyword is not an integer.
Time::Piece
DATE
UTDATE
Converts UT date in Time::Piece object into YYYY-MM-DD format for DATE header. This differs from the base class in the use of the DATE rather than UTDATE header item.
YYYY-MM-DD
Converts UT date in DATE-END header into Time::Piece object. Allows for blank DATE-END string present in early UFTI data.
DATE-END
Converts UT date in DATE-OBS header into Time::Piece object. Allows for blank DATE-OBS string present in early UFTI data.
DATE-OBS
Specify the reference pixel, which is normally near the frame centre. There may be small displacements to avoid detector joins or for polarimetry using a Wollaston prism.
Always returns CRPIX1 of "0.5".
Always returns CRPIX2 of "0.5".
Astro::FITS::HdrTrans, Astro::FITS::HdrTrans::UKIRT.
Astro::FITS::HdrTrans
Astro::FITS::HdrTrans::UKIRT
Malcolm J. Currie <mjc@star.rl.ac.uk> Brad Cavanagh <b.cavanagh@jach.hawaii.edu>, Tim Jenness <t.jenness@jach.hawaii.edu>.
Copyright (C) 2008 Science and Technology Facilities Council. Copyright (C) 2003-2007 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.
To install Astro::FITS::HdrTrans, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Astro::FITS::HdrTrans
CPAN shell
perl -MCPAN -e shell install Astro::FITS::HdrTrans
For more information on module installation, please visit the detailed CPAN module installation guide.