| AHELP for CIAO 4.2 | pix_init_pixlib |
Context: pixlib |
Synopsis
Initialize the pixlib library.
Syntax
pix_init_pixlib() pix_init_pixlib( String_Type param ) pix_init_pixlib( String_Type telescope, String_Type param )
Description
After the pixlib module has been loaded, the pix_init_pixlib() function must be called before any other routine from the module is called. The param argument param gives the name of the parameter file file to use to set up the library; it defaults to "geom". The telescope argument defaults to the value of "flight"; other settings are not recommended.
The pixlib module is not available by default; to use it in a S-Lang program, it must be loaded using the S-Lang require() function:
require("pixlib");Example
slsh> require("pixlib");
slsh> pix_init_pixlib;Bugs
Restarting pixlib
Pixlib should not be closed and re-initialized within a single session, as this causes internal variables to be mis-set and incorrect results produced. This bug will be addressed in a future release; the simple workaround is to call pix_init_pixlib only once, immediately after the call to require("pixlib").
See the bugs page for the pixlib library on the CIAO website for an up-to-date listing of known bugs.
See Also
- modules
- pixlib
- pixlib
- pix_close_pixlib
![[CIAO Logo]](../imgs/ciao_logo_navbar.gif)