Utilities useful within the CIAO environment
Utilities useful within the CIAO environment
Determine Galactic column density at specified ra and dec. This function calls the CIAO prop_colden_exe tool.
Parameters: |
|
---|---|
Returns: | column density (10^22 cm^-2) |
Run dmcoords for coordinates pos which are in coordinate system coord and return results as a dict.
The pos parameter must be a list with values interpreted according to the coordsys parameter:
coordsys | pos list values |
---|---|
cel | ra, dec |
sky | x, y |
det | detx, dety |
logical | chip_id, chipx, chipy |
msc | theta, phi |
Parameters: |
|
---|---|
Returns: | dict corresponding to dmcoords parameter list and values |
Make a temporary directory and put it at the head of env[‘PFILES’] so CIAO parameters for this session are localized there.
Usage:
>>> ciaoenv = Shell.getenv('. /soft/ciao/bin/ciao.bash')
>>> pfiles_dir = Util.CIAO.localize_param_files(ciaoenv)
Parameters: |
|
---|---|
Returns: | TempDir object. The temp dir is deleted when TempDir object gets destroyed or goes out of scope. |