Skip to content
Natasha Batalha edited this page Dec 22, 2016 · 13 revisions

PandExo: A Community Tool for Transiting Exoplanet Science

PandExo is an online tool for generation instrument simulations of JWST's NIRSpec, NIRCam, NIRISS and NIRCam. It is based on STScI's Exposure Time Calculator, Pandeia: Pandeia + Exoplanets = PandExo. This wiki contains information on how to download, install and analyze PandExo output. Before reading further, if you do not wish to install PandExo, there is an online version of the code at PSU Science and NASA GSFC.

##Installation Procedure

Before installing PandExo, make sure you have the following dependencies:

###Pandeia:

cd pandeia_repo

python setup.py install

Many users experience issues when downloading Pandeia because of it's dependency on pyfftw. If you experience this problem try these steps:

  • If you do not have a non-LLVM based GCC installation on your system, you can obtain one from here but gcc 5.1 does not produce a usable FFTW installation so make sure you download gcc 4.9 or below

mv $(which gcc) $(which gcc).orig

curl -O https://bitbucket.org/api/2.0/snippets/jhunkeler/ R7gy5/3265aea27175817087ab4a39c21157d926f8afc3/files/build_fftw.sh

chmod +x build_fftw.sh

./build_fftw

Lastly, make sure PandExo knows where the Pandeia reference data is:

export pandeia_refdata=USRDIR/pandeia_data

###Bokeh: pip install bokeh

###PySynphot PandExo uses a STScI's pysynphot to pull stellar spectra. Specifically, it uses the phoenix stellar atlas.

Download stellar database here
mkdir stellar data

mv synphot5.tar.gz stellar_data

tar -xvf synphot5.tar.gz

export PYSYN_CDBS=USRDIR/stellar_data

##Installing PandExo

Download or clone repo

cd pandexo_repo

python setup.py install

Clone this wiki locally