Welcome to iraf.net Friday, May 17 2024 @ 11:49 AM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 Accessing the SLALIB routines
   
FSBoyden
 10/12/2010 08:10AM (Read 2349 times)  
++++-
Regular Member

Status: offline


Registered: 06/07/2006
Posts: 95
HiI want to correct some MJD values for light arrival - i.e. correct to Barycentre.To do this I need to access some of the SLALIB routine.I used refer and help to identify the specific routine to use - the Q is:What is the easiest way to access/call the routines. I know cl scripting (do not want to waste to much time learning SPP). How would I go about it.Please advise.Regards
Pat

 
Profile Email
 Quote
fitz
 10/12/2010 08:10AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
The SLALIB routines are available as a library to compiled code only, the procedures don't have script complements. There is of course the RVCORRECT task that will compute a Barycentric velocity correction, but for time corrections the closest I could find is the DELAYTIME task in the STSDAS.SOBSOLETE.TIMESERIES package.You might try Googling for other possibiities, a good start might be http://astroutils.astronomy.ohio-state.edu/time/bjd_explanation.html

 
Profile Email
 Quote
FSBoyden
 10/12/2010 08:10AM  
++++-
Regular Member

Status: offline


Registered: 06/07/2006
Posts: 95
OKDid some research. Easiest for me would be to write some FORTRAN programs using the SLALIB subfunctions (just have to link properly to the SLALIB lib).So - Q: Is it possible to link/call said FORTRAN program from within IRAF. I would like to include the BJD corrector program in the Boyden Package that we are still actively developing.Regards
Pat

 
Profile Email
 Quote
fitz
 10/12/2010 08:10AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
You can declare host programs as 'foreign' tasks assuming they are commands somewhere in your normal search environment, e.g.[code:1:d6c24ef5c1]task $foo = $foreign[/code:1:d6c24ef5c1]This is roughly the same as doing e.g. "cl> !foo" from the command line.As part of a package you do something similar but need to resolve the package name, e.g.[code:1:d6c24ef5c1]printf("$task $foo = $%s/foo\nkeep\n", osfn("pkgbin$")) | cl()[/code:1:d6c24ef5c1]where 'pkgbin' is the logical variable to your package bin directory. You can use an explicit path, however this is more general.

 
Profile Email
 Quote
   
Content generated in: 0.17 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login