Astro::FITS::Header::CFITSIO - Manipulates FITS headers from a FITS file
use Astro::FITS::Header::CFITSIO; $header = new Astro::FITS::Header::CFITSIO( Cards => \@array ); $header = new Astro::FITS::Header::CFITSIO( File => $file ); $header = new Astro::FITS::Header::CFITSIO( fitsID => $ifits ); $header->writehdr( File => $file ); $header->writehdr( fitsID => $ifits );
This module makes use of the CFITSIO module to read and write directly to a FITS HDU.
It stores information about a FITS header block in an object. Takes an hash as an arguement, with either an array reference pointing to an array of FITS header cards, or a filename, or (alternatively) and FITS identifier.
$Id: CFITSIO.pm,v 1.3 2001/03/29 22:04:32 allan Exp $
Reads a FITS header from a FITS HDU
$header->configure( Cards => \@cards ); $header->configure( fitsID => $ifits ); $header->configure( File => $file );
Accepts an FITS identifier or a filename. If both fitsID and File keys exist, fitsID key takes priority.
Write a FITS header to a FITS file
$header->writehdr( File => $file ); $header->writehdr( fitsID => $ifits );
Its accepts a FITS identifier or a filename. If both fitsID and File keys exist, fitsID key takes priority.
Returns undef on error, true if the header was written successfully.
This module requires Pete Ratzlaff's CFITSIO module, and William Pence's cfitsio subroutine library (v2.1 or greater).
cfitsio
Astro::FITS::Header, Astro::FITS::Header::Item, Astro::FITS::Header::NDF, CFITSIO
Alasdair Allan <aa@astro.ex.ac.uk>,
Copyright (C) 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.
To install Astro::FITS::Header, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Astro::FITS::Header
CPAN shell
perl -MCPAN -e shell install Astro::FITS::Header
For more information on module installation, please visit the detailed CPAN module installation guide.