/DESC_BPZ

Python3 implementation of popular BPZ Photo-z package

Primary LanguagesedMIT LicenseMIT

DESC_BPZ:

This repo contains a python3 port of the popular BPZ software package (https://www.stsci.edu/~dcoe/BPZ/). The code was modified from the original bpz-1.99.3 version available at the given URL, upgraded to be python3 compatible, and modified to read and write hdf5 files rather than straight ascii. The code is messy in many places, having gone through multiple iterations by multiple authors. No promises are made as to functionality of multiple subsystems (e.g. plotting), so use with caution!

If you use this code, please cite Benitez (2000) and Coe et al. (2006).

In order to run, you should set the environment variable

BPZDATAPATH to point to the directory housing the SED, FILTER, and AB files. Default SED and FILTER files are available in the src/desc_bpz/data_files/FILTER and src/desc_bpz/data_files/SED directories

To run traditional command-line BPZ use the bpz.py file in src/desc_bpz/scripts, e.g.:

python src/desc_bpz/scripts/bpz.py yourasciicatalog.cat -P yourparameterfile.pars

Dan Coe's STScI webpage (listed above) contains a nice BPZ user guide, for more detail on running the code, please check that website.

However, this package will mainly be used as a library for running "bpz_lite" in the DESC PZ RAIL Package, see:

https://github.com/LSSTDESC/RAIL