Skip to main content

Python3 version of BPZ used in DESC

Project description

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

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

desc-bpz-0.2.tar.gz (488.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page