Welcome to iraf.net Friday, May 03 2024 @ 02:16 PM GMT
emiliano |
05/26/2006 04:48PM (Read 9525 times)
|
|
|
Status: offline
Registered: 12/05/2005
Posts: 38
|
Hello,for a synthetic photometry project I need to read/write STSDAS tables; do you know if there is a C library to read/write STSDAS tables?
By the way: is Starbase format compatible with STSDAS? And where exactly can I find the description for STSDAS tables format , in STSDAS docs?Many thanks and kind regards,
Emiliano Gregori
|
|
|
|
fitz |
05/26/2006 04:48PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
[quote:0f27a54ca2]or a synthetic photometry project I need to read/write STSDAS tables; do you know if there is a C library to read/write STSDAS tables? [/quote:0f27a54ca2]The CVOS interface in STSDAS has a tables binding, see stsdas$lib/cvos and the doc subdirectory there.[quote:0f27a54ca2]By the way: is Starbase format compatible with STSDAS?[/quote:0f27a54ca2]Not as far as I know. Starbase is an ascii table format.[quote:0f27a54ca2]And where exactly can I find the description for STSDAS tables format , in STSDAS docs? [/quote:0f27a54ca2]See tables$doc/fileformat.docCheers,
-Mike
|
|
|
|
emiliano |
05/26/2006 04:48PM
|
|
|
Status: offline
Registered: 12/05/2005
Posts: 38
|
Hello Mike,
many thanks for your reply. I'm reading the docs, and maybe I'll write some stand-alone C functions to manage STSDAS tables, since linking to CVOS could not be the optimal solution...I don't know exactly up to know In that case, I'll post the code somewhere in this site, if useful.Cheers,
Emiliano
|
|
|
|
fitz |
05/26/2006 04:48PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
FITS binary tables are another option and will work with the TABLES package tasks as well. The CFITSIO interface could be used for this, and you can either use the FITS files directly or else TCOPY to change the format to .tab files. I'm not sure CITSIO is any easier to master, but bintables are usable outside of the system so there may be some advantage there.....-Mike
|
|
|
|
emiliano |
05/26/2006 04:48PM
|
|
|
Status: offline
Registered: 12/05/2005
Posts: 38
|
for my thesis on integrated spectra of stellar populations, I'm writing a code to work with (synthetic) stellar spectra. I'm just using CFITSIO to read/write FITS observed spectra, but since I'd like to feed data to Synphot, it could be very useful to write spectra directly in STSDAS tables format (the format Synphot likes more, since in ASCII tables you can't specify things like flux units, and so on...).I could write the output directly in FITS format, and then convert the spectra with imspec, or as you said, I could link to CVOS, but I'd like to have the fewer dependences on big external packages...I'm now making few software experiments. Many thanks for your advice,Emiliano
|
|
|
|
| |
|
Content generated in: 0.11 seconds |
|