table in fits format [message #93467] |
Sun, 24 July 2016 06:07  |
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  |
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
|
|
|