[fitsbits] Writing 3d array to fits

William Pence pence at tetra.gsfc.nasa.gov
Tue Mar 7 14:37:24 EST 2000


Michael Mayer wrote:
> 
> Hi all,
> 
> i'm trying to write some 3d data array to a FITS file but it doesn't work
> I tried with FITSIO and ftp3d[eijd] routine but all I've got from my
> compiler were some SegFaults. Does anyone of you know how to write a
> routine doing this or some URLs with example programs ?

The ftp3d routine has been widely used by other users.  An example of how to
write a 2-D image with FITSIO is given in the Cookbook that is available from 
http://legacy.gsfc.nasa.gov/docs/software/fitsio/fitsio.html; this example
could be easily extended to the 3-D case.  If you still have problems, send me
more details of what you are doing and I'll try to help.

-Bill Pence
-- 
____________________________________________________________________
Dr. William Pence                          pence at tetra.gsfc.nasa.gov
NASA/GSFC Code 662         HEASARC         +1-301-286-4599 (voice)     
Greenbelt MD 20771                         +1-301-286-1684 (fax)



More information about the fitsbits mailing list