Submit a Story  :  IRAF Links  :  Past Polls  :  Calendar  :  Advanced Search  
     iraf.net
FAQ
 Forum FAQForum FAQ   Forum SearchForum Search   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

C library for STSDAS table format

 
Post new topic   Reply to topic    iraf.net Forum Index -> Misc
View previous topic :: View next topic  
Author Message
emiliano
Active IRAF User


Joined: 05 Dec 2005
Posts: 38
Location: Pisa - Italy

PostPosted: Fri May 26, 2006 4:48 pm    Post subject: C library for STSDAS table format Reply with quote

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
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Fri May 26, 2006 5:03 pm    Post subject: Reply with quote

Quote:
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?


The CVOS interface in STSDAS has a tables binding, see stsdas$lib/cvos and the doc subdirectory there.

Quote:
By the way: is Starbase format compatible with STSDAS?


Not as far as I know. Starbase is an ascii table format.

Quote:
And where exactly can I find the description for STSDAS tables format , in STSDAS docs?


See tables$doc/fileformat.doc

Cheers,
-Mike
Back to top
View user's profile Send private message
emiliano
Active IRAF User


Joined: 05 Dec 2005
Posts: 38
Location: Pisa - Italy

PostPosted: Sat May 27, 2006 1:47 pm    Post subject: Reply with quote

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 Smile

In that case, I'll post the code somewhere in this site, if useful.

Cheers,
Emiliano
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Sat May 27, 2006 2:28 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
emiliano
Active IRAF User


Joined: 05 Dec 2005
Posts: 38
Location: Pisa - Italy

PostPosted: Sat May 27, 2006 3:13 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    iraf.net Forum Index -> Misc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2009 phpBB Group
 Copyright © 2005-2011 iraf.net
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.14 seconds