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

Home » Public Forums » archive » table in fits format
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
table in fits format [message #93467] Sun, 24 July 2016 06:07 Go to next message
gunvicsin11 is currently offline  gunvicsin11
Messages: 93
Registered: November 2012
Member
I have a table in fits format. But when i read the fits file as

clv=readfits('example.fits')
help,clv
CLV LONG = -1

How do i open the file definitely its not a single value it is actually a table.
please help me out in knowing the values of the table.

thank you
Re: table in fits format [message #93468 is a reply to message #93467] Sun, 24 July 2016 16:23 Go to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
To see how your FITS file is organized use

IDL> fits_help,'example.fits'

Usually, a single table will be stored in the first extension which can be read using mrdfits.pro

str = mrdfits('example.fits',1)

where "str" will be an IDL structure containing the table data

Also see http://idlastro.gsfc.nasa.gov/fitsio.html

--Wayne

On Sunday, July 24, 2016 at 9:07:22 AM UTC-4, sin wrote:
> I have a table in fits format. But when i read the fits file as
>
> clv=readfits('example.fits')
> help,clv
> CLV LONG = -1
>
> How do i open the file definitely its not a single value it is actually a table.
> please help me out in knowing the values of the table.
>
> thank you
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: very very strange thing is happening with modfits......
Next Topic: array summation

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

Current Time: Wed Oct 08 09:10:49 PDT 2025

Total time taken to generate the page: 0.00393 seconds