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.4.0.tar.gz (717.1 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.4.0-py3-none-any.whl (484.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for desc_bpz-0.4.0.tar.gz
Algorithm Hash digest
SHA256 2ab965f7ea47581b9d358e5b7d41df0a6226a4fd6e2a5d3b7be7fccc2206b310
MD5 10320e58d1a300b9738bb31c5a8494a3
BLAKE2b-256 1ec11256eb193b4541d273a828e486b81982584b13a0270b6ca0b5165e747c2e

See more details on using hashes here.

Provenance

The following attestation bundles were made for desc_bpz-0.4.0.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.4.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for desc_bpz-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 24b54d0a56a4117515aa12c885084516a6df967600974b31cd93ed5af4cc8d24
MD5 5f753df8fe74f3209a1dd5dc041a0a06
BLAKE2b-256 4afe397f8ffa76dddc44db6117a0ea689a705f2aa404ce12fbfcf541f4521735

See more details on using hashes here.

Provenance

The following attestation bundles were made for desc_bpz-0.4.0-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