Re:

From: John Houck <houck_at_email.domain.hidden>
Date: Sat, 24 Jan 2009 08:11:21 -0500
On Fri, Jan 23, 2009 at 17:15 -0500, Herbert Pablo wrote:
> Hey all,
>
> I'm pretty new to isis and I have gotten a reasonable handle on most things.
> However, there is one thing that I am still unsure about. I know that there
> are ways to write to an ascii file, but lets say I combine plus and minus
> orders and then flux correct. Is there a way to save this new file that I have
> just created. I can run the script easily enough and display it in isis, but I
> wasn't able to find a way to save the file. Any help would be greatly
> appreciated.
>
> Thanks,
> Bert

You can use fits_write_binary_table to save it in a FITS file.
For example:
     d = get_data_flux(1);
     fits_write_binary_table ("spectrum.fits", "SPECTRUM", d);

The file can be reloaded using fits_read_table:
   f = fits_read_table ("spectrum.fits");
and added to the dataset list:
   id = define_flux (f);

On the other hand, load_data() will not read the above FITS
file because the column names and keywords don't match the OGIP
definition of a PHA file.

isis doesn't currently provide a function to write out an
OGIP-compatible PHA file, but it's straightforward to write
such a function using the cfitsio module provided with the isis
distribution.

Thanks,
-John
----
You received this message because you are
subscribed to the isis-users list.
To unsubscribe, send a message to
isis-users-request_at_email.domain.hiddenwith the first line of the message as:
unsubscribe
Received on Sat Jan 24 2009 - 08:11:36 EST

This archive was generated by hypermail 2.2.0 : Mon Feb 02 2009 - 13:57:20 EST