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

Home » Public Forums » archive » Re: howto make a fits cube in IDL?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: howto make a fits cube in IDL? [message #56659 is a reply to message #56654] Wed, 07 November 2007 12:26 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Wayne Landsman writes:

> This looks like a case for using the "Binary table" FITS format.
> The routines MWRFITS and MRDFITS give a nice mapping between IDL
> structures and FITS binary tables. So say you have 200 X,Y points and
> that at each X,Y you have a temperature and velocity spectrum with 60
> points.
>
> IDL> str = {x:0, y:0, temperature:fltarr(60), velocity:fltarr(60) }
> IDL> str = replicate(str, 200)
>
> (If the number of points are not all the same in each spectra then you
> could use pointers rather than fixed arrays.)
>
> Then you fill the structure with the actual values, and finally write
> the structure to a FITS file
>
> IDL> mwrfits,str,'myfile.fits'

Get out!!

I had a similar question, but I was too embarrassed to ask here.
But this is WAY too easy. I was hoping to bill about 40 hours
on this part of the code. :-(

I better go read up on FITS files.

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: time_test replacement?
Next Topic: !p.multi

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

Current Time: Sat Oct 11 04:55:57 PDT 2025

Total time taken to generate the page: 1.44109 seconds