Python Library for PFS GA (Stellar) Spectroscopy
The library consits of modules for
- interpolation of grids of synthetic stellar spectra
- fast simulation of observations based on the ETC
- training set generation for machine learning
- training of deep neural networks
You need PySynPhot for many spectrum operations. Clone it from github or install as a python package. Also download the PySynPhot CDBS data files.
To access SciServer, you need the SciScript-Python client. Clone it from github to your project directory.
An anaconda package list will soon be provided for setting up conda environments.
TBW
Clone the main git repository and its submodules under your typical project directory.
$ git clone --recursive [email protected]:Subaru-PFS-GA/ga_pfsspec_all.git
Check out all submodules to the latest of the master
branch by running
$ ./bin/checkout
Create your own environment file under configs/envs
by copying example.sh
to default.sh
. Activate the environment by sourcing the init script from the root directory of the ga_pfsspec_all
project.
$ cd ga_pfsspec_all
$ source bin/init
Remember to source this file in all terminals your planning to use for pfsspec development. The script sets important git options that cannot be checked into the repository and commits won't work without them. This includes the script that strips cell outputs from Jupyter notebooks to reduce clutter.