Main > Programming > Libraries >

PDL::IO::FITS 2.4.3

PDL::IO::FITS 2.4.3

Sponsored Links

PDL::IO::FITS 2.4.3 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 2.1 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 823
Date added: 2007-07-24

PDL::IO::FITS 2.4.3 description

PDL::IO::FITS Perl module offers a simple FITS support for PDL.

SYNOPSIS

use PDL;
use PDL::IO::FITS;

$a = rfits(foo.fits); # read a FITS file
$a->wfits(bar.fits); # write a FITS file

This module provides basic FITS support for PDL, in the sense of reading and writing whole FITS files. (For more complex operations, such as prefiltering rows out of tables or performing operations on the FITS file in-place on disk), you can use the Astro::FITS::CFITSIO module that is available on CPAN.

Basic FITS image files are supported, along with BINTABLE and IMAGE extensions. ASCII Table support is planned, as are the HEASARC bintable extensions that are recommended in the 1999 FITS standard.

Table support is based on hashes and named columns, rather than the less convenient (but slightly more congruent) technique of perl lists of numbered columns.

The principle interface routines are rfits and wfits, for reading and writing respectively. FITS headers are returned as perl hashes or (if the module is present) Astro::FITS::Header objects that are tied to perl hashes.

Astro::FITS::Header objects provide convenient access through the tied hash interface, but also allow you to control the card structure in more detail using a separate method interface; see the Astro::FITS::Header documentation for details.

FUNCTIONS

rfits()

Simple piddle FITS reader.

$pdl = rfits(file.fits); # Read a simple FITS image

Suffix magic:

$pdl = rfits(file.fits.gz); # Read a file with gunzip(1)
$pdl = rfits(file.fits.Z); # Read a file with uncompress(1)

$pdl = rfits(file.fits[2]); # Read 2nd extension
$pdl = rfits(file.fits.gz[3]); # Read 3rd extension
@pdls = rfits(file.fits); # Read primary data and extensions

$hdr = rfits(file.fits,{data=>0}); # Options hash changes behavior

In list context, rfits reads the primary image and all possible extensions, returning them in the same order that they occurred in the file. In scalar context, the default is to read the primary HDU. One can read other HDUs by using the [n] syntax, the second one is [1]. Currently recognized extensions are IMAGE and BINTABLE. (See the addendum on EXTENSIONS for details).

rfits accepts several options that may be passed in as a hash ref if desired:
bscale (default=1)

Determines whether the data are linearly scaled using the BSCALE/BZERO keywords in the FITS header. To read in the exact data values in the file, set this to 0.

data (default=1)

Determines whether to read the data, or just the header. If you set this to 0, you will get back the FITS header rather than the data themselves. (Note that the header is normally returned as the hdr field of the returned PDL; this causes it to be returned as a hash ref directly.)

hdrcpy (default=0)

Determines whether the hdrcpy flag is set in the returned PDL. Setting the flag will cause an explicit deep copy of the header whenever you use the returned PDL in an arithmetic or slicing operation. That is useful in many circumstances but also causes a hit in speed.

FITS image headers are stored in the output PDL and can be retrieved with hdr or gethdr. The hdrcpy flag of the PDL is set so that the header is copied to derived piddles by default. (This is inefficient if you are planning to do lots of small operations on the data; clear the flag with "->hcpy(0)" or via the options hash if thats the case.)

The header is a hash whose keys are the keywords in the FITS header. If you have the "Astro::FITS::Header" module installed, the header is actually a tied hash to a FITS header object, which can give you more control over card order, comment fields, and variable types. (see Astro::FITS::Header for details).
The header keywords are converted to uppercase per the FITS standard. Access is case-insensitive on the perl side, provided that Astro::FITS::Header is installed.

If Astro::FITS::Header is not installed, then a built-in legacy parser is used to generate the header hash. Keyword-associated comments in the headers are stored under the hash key < keyword >_COMMENT >. All HISTORY cards in the header are collected into a single multiline string stored in the HISTORY key. All COMMENT cards are similarly collected under the COMMENT key.

PDL::IO::FITS 2.4.3 Screenshot

Advertisements

PDL::IO::FITS 2.4.3 Keywords

Bookmark PDL::IO::FITS 2.4.3

Hyperlink code:
Link for forum:

PDL::IO::FITS 2.4.3 Copyright

WareSeeker periodically updates pricing and software information of PDL::IO::FITS 2.4.3 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of PDL::IO::FITS 2.4.3 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
PDL::Internals is a Perl module that contains a description of some aspects of the current internals. Free Download
PDL::API is a Perl module for making piddles from Perl and C/XS code. Free Download
PDL::FAQ is a Perl module for frequently asked questions about PDL. Free Download
OpenGeDB Perl module is a module to access the OpenGeoDB database and calculate all ZIP codes in a certain radius. Free Download
Locale::Memories is a Perl module for L10N Message Retrieval. Free Download
PDL::Pod::Html is Perl module to convert pod files to HTML. Free Download
PDF::FromHTML::Twig is a Perl module with PDF::FromHTML guts. Free Download
dtRdr::User.pm is a user class as a Perl module. Free Download