comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » reading slices of FITS files
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
reading slices of FITS files [message #63708] Tue, 18 November 2008 07:30
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
Maybe someone with better knowledge of the miriad of FITS-related
routines has some experience in this...

I have an extremely large FITS data cube, and I only want to read in a
single slice in the first or second dimension. I.e. I want something
that is functionally equivalent to:

dataslice = (readfits(filename))[xslice,*,*]

but faster. READFITS does have a handy NSLICE keyword, but as far as I
can tell it will only give a slice in the final dimension. I imagine
that it's implemented that way because only slices in the final
dimension are stored contiguously in the file, but it should certainly
be possible to extract slices in other dimensions more efficiently
than reading in the entire file. Maybe one of the 15 other FITS
reading procedures does what I want? ;-)

-Jeremy.
[Message index]
 
Read Message
Previous Topic: Chunk Array Decimation
Next Topic: Musing on IDL's Future Direction

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 05:44:50 PDT 2025

Total time taken to generate the page: 0.64609 seconds