Astro-FITS-Header
view release on metacpan or search on metacpan
lib/Astro/FITS/Header/NDF.pm view on Meta::CPAN
$status = &NDF::SAI__ERROR;
err_rep(' ',
"$task: Argument hash does not contain ndfID, File or Cards",
$status);
}
if ($status == $good) {
# See if the extension exists
ndf_xstat( $indf, "FITS", my $there, $status);
if ($status == $good && $there) {
# Find the FITS extension
ndf_xloc($indf, 'FITS', 'READ', my $xloc, $status);
if ($status == $good) {
# Variables...
my (@dim, $ndim, $nfits, $maxdim);
lib/Astro/FITS/Header/NDF.pm view on Meta::CPAN
err_rep(' ',"File '$file' does not exist to receive the header", $status);
}
} else {
err_end( $status );
croak "Missing argument to writehdr. Must include either ndfID or File key";
}
# Now need to find out whether we have a FITS header in the
# file already
ndf_xstat( $ndfid, 'FITS', my $there, $status);
# delete it
ndf_xdel($ndfid, 'FITS', $status) if $there;
# Get the fits array
my @cards = $self->cards;
# Write the FITS extension
if ($#cards > -1) {
( run in 0.496 second using v1.01-cache-2.11-cpan-49f99fa48dc )