Skip to content

Python3 implementation of popular BPZ Photo-z package

License

Notifications You must be signed in to change notification settings

miaohaitao/DESC_BPZ

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

To run traditional command-line BPZ use the bpz.py file in scripts, e.g.:
python 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

About

Python3 implementation of popular BPZ Photo-z package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • sed 42.7%
  • ReScript 36.3%
  • Python 21.0%