ska_arc5gl
¶
Access the Chandra archive via the arc5gl tool.
- class ska_arc5gl.arc5gl.Arc5gl(echo=False, timeout=100000)[source]¶
Class to create an object to communicate with arc5gl.
Create an object for sending commands to arc5gl and waiting for the prompt indicating command completion. Example:
arc5gl = ska_arc5gl.Arc5gl() arc5gl.sendline('obsid=21151') arc5gl.sendline('get acis2{evt2}') del arc5gl # explicitly shut things down, good idea
If the file
${HOME}/.arc5gl_user
exists then the content will be taken as the user name to pass to thearc5gl
Perl application for authentication. Otherwise the linux username will be used.- Parameters
echo – echo arc5gl output (default=False)
timeout – wait for up to timeout seconds for response (default=100000)