SYNOPSIS

  use Astro::FITS::Header::GSD;

  $hdr = new Astro::FITS::Header::GSD( Cards => \@cards );
  $hdr = new Astro::FITS::Header::GSD( gsdobj => $gsd );
  $hdr = new Astro::FITS::Header::GSD( File => $file );

DESCRIPTION

This module makes use of the Starlink \s-1GSD\s0 module to read from a \s-1GSD\s0 header.

It stores information about a \s-1FITS\s0 header block in an object. Takes an hash as an argument, with either an array reference pointing to an array of \s-1FITS\s0 header cards, or a filename, or (alternatively) a \s-1GSD\s0 object.

METHODS

configure

Reads a header from a \s-1GSD\s0 file. $hdr->configure( Cards => \@cards ); $hdr->configure( Items => \@items ); $hdr->configure( gsdobj => $gsd ); $hdr->configure( File => $filename ); Accepts a \s-1GSD\s0 object or a filename. If both \*(C`gsdobj\*(C' and \*(C`File\*(C' keys exist, \*(C`gsdobj\*(C' key takes priority.

writehdr

The \s-1GSD\s0 library is read-only. The writehdr method is not implemented for this sub-class.

NOTES

This module requires the Starlink \s-1GSD\s0 module.

\s-1GSD\s0 supports keys that are longer than the 8 characters allowed as part of the \s-1FITS\s0 standard. \s-1GSD\s0 keys are truncated to 8 characters by this module.

RELATED TO Astro::FITS::Header::GSD…

\s-1NDF\s0, Astro::FITS::Header, Astro::FITS::Header::Item Astro::FITS::Header::CFITSIO, Astro::FITS::Header::NDF

AUTHORS

Tim Jenness <[email protected]>, Alasdair Allan <[email protected]>

COPYRIGHT

Copyright (C) 2008-2011 Science & Technology Facilities Council. Copyright (C) 2001-2002 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 \s-1GNU\s0 General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,but \s-1WITHOUT\s0 \s-1ANY\s0 \s-1WARRANTY\s0; without even the implied warranty of \s-1MERCHANTABILITY\s0 or \s-1FITNESS\s0 \s-1FOR\s0 A \s-1PARTICULAR\s0 \s-1PURPOSE\s0. See the \s-1GNU\s0 General Public License for more details.

You should have received a copy of the \s-1GNU\s0 General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place,Suite 330, Boston, \s-1MA\s0 02111-1307, \s-1USA\s0