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


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.3.3.tar.gz (716.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

desc_bpz-0.3.3-py3-none-any.whl (483.7 kB view details)

Uploaded Python 3

File details

Details for the file desc_bpz-0.3.3.tar.gz.

File metadata

  • Download URL: desc_bpz-0.3.3.tar.gz
  • Upload date:
  • Size: 716.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for desc_bpz-0.3.3.tar.gz
Algorithm Hash digest
SHA256 40ed4f200a6bf2107ca52a4b0441339274034ad8f3351a3b8dbf44ad09637ca1
MD5 e368cb469d86f26d770114b1c6af6204
BLAKE2b-256 82b515ecd752dd1f7173b63e642923efdae403710b43f5ee57e62c62450065df

See more details on using hashes here.

Provenance

The following attestation bundles were made for desc_bpz-0.3.3.tar.gz:

Publisher: publish-to-pypi.yml on LSSTDESC/DESC_BPZ

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file desc_bpz-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: desc_bpz-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 483.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for desc_bpz-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 086cc7ee040591e358b574301e35e661adb0ac5a45651b0fb72644815af5e113
MD5 c7771e451a0699bea2cd4c7a4e2c9198
BLAKE2b-256 31bc477d1dfc8cf1d043ee672767398dc3fdcad1792a1840aed873ebd56be8a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for desc_bpz-0.3.3-py3-none-any.whl:

Publisher: publish-to-pypi.yml on LSSTDESC/DESC_BPZ

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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