-
-
28 Jun 2006 04:45:07 UTC
- Distribution: Astro-FITS-CFITSIO
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (8)
- Testers (5 / 35 / 0)
- Kwalitee
Bus factor: 1- License: unknown
- Activity
24 month- Tools
- Download (189.63KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- unknown
- Reverse dependencies
- CPAN Testers List
- Dependency graph
match_datatype( )
$cfitsio_type = match_datatype($piddle); $cfitsio_type = match_datatype(long); # or short, or float, etc.
PDL datatypes are always guaranteed to be the same size on all architectures, whereas CFITSIO datatypes (TLONG, for example), will vary on some architectures since they correspond to the C datatypes on that system. This poses a problem for Perl scripts which wish to read FITS data into piddles, and do so in a portable manner. This routine takes a PDL object or PDL::Types token (returned by float() and friends when given no arguments), and returns the same-sized CFITSIO datatype, suitable for passing to routines such as fits_read_col().
Module Install Instructions
To install Astro::FITS::CFITSIO, copy and paste the appropriate command in to your terminal.
cpanm Astro::FITS::CFITSIO
perl -MCPAN -e shell install Astro::FITS::CFITSIO
For more information on module installation, please visit the detailed CPAN module installation guide.