Installation

To begin, it is strongly advised that you separate your PanCAKE installation within an Anaconda environment. This is a flexible way to manage many Python environments at once to ensure packages don’t clash, and that the installation of a new package doesn’t break your entire Python installation.

To initialise an Anaconda environment for PanCAKE use the following:

conda create -n pcake python=3

With the environment created, enter it

conda activate pcake

and install the PanCAKE package and all relevant dependencies

pip install git+https://github.com/AarynnCarter/PanCAKE.git

Necessary Data Files

PanCAKE makes use of the Pandeia, WebbPSF, and synphot packages that require their own separate data files. You may find that certain aspects of PanCAKE will work without some of these data files, but to access all of PanCAKE’s functionality, they must be downloaded.

WebbPSF: webbpsf-data-1.2.1.tar.gz (~100 MB, Direct Download Link)
Synphot Throughputs: synphot1_throughput-master.tar (~1 GB, Direct Download Link)
Synphot Spectra: synphot5_phoenix-models.tar (~2 GB, Direct Download Link)
Synphot Calibration: synphot6_calibration-spectra.tar (~4 GB, Direct Download Link, or manually add the alpha_lyr_stis file from here)

Put these folders somewhere sensible on your hard drive, making sure you combine the Synphot files. Also

Finally adjust your ~/.bashrc file to include the following lines (adjusted accordingly to where you saved the above):

export pandeia_refdata="/path/to/pandeia/data/directory"
export WEBBPSF_PATH="/path/to/webbpsf/data/directory"
export PYSYN_CDBS="/path/to/synphot/data/redcat/trds"

NOTE: The final export must map directly to the /redcat/trds/ directory, and not the encompassing /grp/ directory.

With all the above done, you should have everything you need to start using PanCAKE!