Page History
Table of Contents |
---|
For Pandeia Engine v1.5.12
Python Requirements:
Required | Recommended | ||
---|---|---|---|
python 23.76+ | 3.67.57 | ||
numpy 1.13.317+ | 1.1518.41 | ||
scipy >1 | 1.41.1.0 | ||
astropy 2--34+ | 42.0.9 | ||
photutils | 0.7.42 | ||
synphot 0.3+pysynphot | 0.93.120 | ||
stsynphot 0.3+ | 0.3 | six | 1.11.0 |
six | 401. | 814.0 |
...
setuptools |
pandeia.engine v1.5.1 is not compatible with scipy 1.4+ or astropy 4+
47.3.1 |
Installing the Pandeia Engine requires a python environment with the dependencies listed above, a set of telescope-specific datafiles, and an optional (but highly recommended) second set of data files for additional spectral manipulation capabilities.
...
- Follow its installation instructions to set up a new environment if you do not already have one.
- Once installed, from a terminal with access to the conda environment, type "
conda config --add channels http://ssb.stsci.edu/astroconda
" to install the Astroconda channel. - Create an AstroConda environment with the STScI package installed. For example, to create an environment named "pandeia" working under python 3.67, type
Code Block | ||
---|---|---|
| ||
conda create -n pandeia stsci scipy=1.1 astropy=2synphot stsynphot python=3.67 |
from a terminal with access to the conda environment.
...
Code Block | ||
---|---|---|
| ||
pip install pandeia.engine==1.5.12 |
It should also be possible to install the Pandeia Engine and all its dependencies by simply running "pip install pandeia.engine==1.5.12"
but this is not recommended and users are likely to run into more issues if it is installed this way.
...
- James Webb Space Telescope: https://stsci.app.box.com/v/pandeia-refdata-v1p5p1v1p5p2
- Nancy Grace Roman Space Telescope: https://stsci.box.com/v/pandeia-refdatadata-v1p5p1v1p5p2-wfirstroman
Download and untar the files to a suitable location.
...
*Both telescope datasets may be untarred to the same location to produce an engine that can work with either telescopeobservatory; any files the two packages have in common may be overwritten.
...
Code Block |
---|
Pandeia Engine version: 1.5.12 Pandeia RefData version: 1.5.12 Pysynphot Data: /your/data/directory/pysynphotsynphot |
Helper Script
The following script assumes you are operating in a terminal where a conda installation has been installed in $HOME/anaconda
and has been activated, that you've installed the pandeia refdata in ${HOME}/data/pandeia
, and the cdbs folder from the additional dataset moved and renamed to ${HOME}/data/pysynphotsynphot
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
conda config --add channels http://ssb.stsci.edu/astroconda conda create -n pandeia stsci numpy scipy=1.1 astropy=2 synphot stsynphot python=3.67 mkdir -p ~/anaconda/envs/pandeia/etc/conda/activate.d cat >>~/anaconda/envs/pandeia/etc/conda/activate.d/env_vars.sh <<EOF #!/bin/sh export PYSYN_CDBS=${HOME}/data/pysynphotsynphot export pandeia_refdata=${HOME}/data/pandeia EOF mkdir -p ~/anaconda/envs/pandeia/etc/conda/deactivate.d cat >>~/anaconda/envs/pandeia/etc/conda/deactivate.d/env_vars.sh <<EOF #!/bin/sh unset PYSYN_CDBS unset pandeia_refdata EOF conda activate pandeia pip install pandeia.engine==1.5.12 |
This creates a pandeia environment in an already-existing conda installation (line 2) and installs the pandeia.engine (line 16), and sets up two scripts (line 4, line 10) to automatically set and unset the required environment variables every time you activate and deactivate the pandeia environment.
...