Skip to main content

Foundational pure-function utilities for astronomy analysis

Project description

noobase

Foundational pure-function utilities for astronomy analysis. Rust core with Python bindings via PyO3.

Status: pre-1.0, API unstable. Breaking changes expected between minor versions.

Install

pip install noobase

Requires Python 3.12 or newer. Wheels are published for linux-x86_64, macos-arm64, and windows-x86_64; a source distribution is also available.

Quick start

import numpy as np
import noobase

wavelength = np.linspace(1.0, 5.0, 200)
flux = np.exp(-((wavelength - 3.0) ** 2) / 0.5)
error = 0.01 * np.ones_like(flux)

spectrum = noobase.Spectrum(
    wavelength=wavelength,
    flux=flux,
    error=error,
    spacing="linear",
    kind="centers",
)

transmission_grid = np.linspace(2.5, 3.5, 50)
transmission_values = np.exp(-((transmission_grid - 3.0) ** 2) / 0.05)

band_flux, band_error, coverage = spectrum.synthetic_photometry(
    transmission_grid=transmission_grid,
    transmission_values=transmission_values,
    convention="photon_counting",
)

What's in the box

  • Grid — 1-D monotonic axis (linear / log, centers / edges)
  • Spectrum — wavelength + flux + optional error + optional mask, with rebinning and flux density convention conversion
  • photometry.SyntheticOperator — cached synthetic photometry suited for MCMC hot loops

See the full project README on GitHub for the complete feature list, the workspace layout, and the development workflow.

License

MIT.

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

noobase-0.0.1.tar.gz (50.7 kB view details)

Uploaded Source

Built Distributions

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

noobase-0.0.1-cp312-abi3-win_amd64.whl (206.5 kB view details)

Uploaded CPython 3.12+Windows x86-64

noobase-0.0.1-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (319.5 kB view details)

Uploaded CPython 3.12+manylinux: glibc 2.17+ x86-64

noobase-0.0.1-cp312-abi3-macosx_11_0_arm64.whl (290.4 kB view details)

Uploaded CPython 3.12+macOS 11.0+ ARM64

File details

Details for the file noobase-0.0.1.tar.gz.

File metadata

  • Download URL: noobase-0.0.1.tar.gz
  • Upload date:
  • Size: 50.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.13.3

File hashes

Hashes for noobase-0.0.1.tar.gz
Algorithm Hash digest
SHA256 20bab4233f7361248442047a894e619b972592d11c7c71ed4cc77a1ad56fbb26
MD5 06adf221e99812e954dac6b3454d714c
BLAKE2b-256 9e5aeba3329a2d478a9951f977b97a32d6fc26caba92c0b497027b391cf6f601

See more details on using hashes here.

File details

Details for the file noobase-0.0.1-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: noobase-0.0.1-cp312-abi3-win_amd64.whl
  • Upload date:
  • Size: 206.5 kB
  • Tags: CPython 3.12+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.13.3

File hashes

Hashes for noobase-0.0.1-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 f9ab934945dbcfd59bf7ad5f1a6a9ed24949e513b27788b3104658cc85603b2a
MD5 98e93a365e0d1fde2c24c85d8f014ae6
BLAKE2b-256 c9376d4c70a99e656c62df52587a3956a83739ea2c31739fe6fd96f54225691a

See more details on using hashes here.

File details

Details for the file noobase-0.0.1-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for noobase-0.0.1-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 33fa89239539ece7e2e6583cdaca4dbeed00eb565ebbaf0309127d2a48496779
MD5 baad27ca5298186057cfa44bf57ccaef
BLAKE2b-256 b220fe7b7ce3173deb0e31496e07949baf1566b45da4484ea24fe1789b761426

See more details on using hashes here.

File details

Details for the file noobase-0.0.1-cp312-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for noobase-0.0.1-cp312-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 806d47c47616b4da07b884787f35ecc52ab57b9dbc8d4ff5e6c9d371161fece4
MD5 a8cfbe18081497ccbf7e10fc24826293
BLAKE2b-256 986c7a3736f9d27806abd47c464b1964244a49a53afb02ba5dd661beb8f85c38

See more details on using hashes here.

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