Scroll to navigation

FITS(3pm) User Contributed Perl Documentation FITS(3pm)

NAME

PDL::CCS::IO::FITS - PDL::IO::FITS wrappers for PDL::CCS::Nd

SYNOPSIS

 use PDL;
 use PDL::CCS::Nd;
 use PDL::CCS::IO::FITS;
 $ccs = PDL::CCS::Nd->newFromWhich($which,$nzvals);
 ccs_wfits($ccs,$fname);         # write a pair of FITS files
 $ccs2 = ccs_readfits($fname);   # read a pair of FITS files

I/O Utilities

ccs_wfits

Write a pair of FITS files using PDL::IO::FITS::wfits(). Piddles of type indx will be implicitly converted to long, since they are not currently supported by PDL::IO::FITS in PDL v2.014.

 ccs_wfits($ccs,$fname)
 ccs_wfits($ccs,$fname,\%opts)

Options %opts:

 Header      => $Header,       ##-- default="$fname.hdr"
 ixFile      => $ixFile,       ##-- default="$fname.ix.fits"
 nzFile      => $nzFile,       ##-- default="$fname.nz.fits"

ccs_rfits

Read a pair of FITS files using PDL::IO::FITS::rfits().

 $ccs = ccs_rfits($fname)
 $ccs = ccs_rfits($fname,\%opts)

Options %opts:

 Header   => $Header,      ##-- default="$fname.hdr"
 ixFile   => $ixFile,      ##-- default="$fname.ix.fits"
 nzFile   => $nzFile,      ##-- default="$fname.nz.fits"
 sorted   => $bool,        ##-- is data on disk already sorted? (default=1)

ACKNOWLEDGEMENTS

Perl by Larry Wall.

PDL by Karl Glazebrook, Tuomas J. Lukka, Christian Soeller, and others.

AUTHOR

Bryan Jurish <moocow@cpan.org>

Copyright (C) 2015-2022, Bryan Jurish. All rights reserved.

This package is free software, and entirely without warranty. You may redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

perl, PDL, PDL::CCS::Nd, PDL::CCS::IO::FastRaw, PDL::CCS::IO::MatrixMarket, PDL::CCS::IO::LDAC, ...

2023-04-15 perl v5.36.0