Skip to main content

dustapprox – A tool for computing approximative extinction coefficients

https://img.shields.io/pypi/v/dustapprox.svg https://img.shields.io/badge/python-3.11,_3.12,_3.13,_3.14-blue.svg

This is a set of tools to compute photometric extinction coefficients in a quick and dirty way.

full documentation at: http://mfouesneau.github.io/dustapprox/

see recent changes at: What’s new

Quick Start

import pandas as pd
from dustapprox import models
from dustapprox.literature import edr3
import pylab as plt

# get Gaia models
lib = models.PrecomputedModel()
r = lib.find(passband='Gaia')[0]  # taking the first one
model = lib.load_model(r, passband='GAIA_GAIA3.G')

# get some data
data = pd.read_csv('models/precomputed/kurucz_gaiaedr3_small_a0_grid.csv')
df = data[(data['passband'] == 'GAIA_GAIA3.G') & (data['A0'] > 0)]

# values
kg_pred = model.predict(df)

Installation

  • Installation from PyPI

pip install dustapprox
  • Installation from pip+github

pip install git+https://github.com/mfouesneau/dustapprox
  • Manual installation

download the repository and run the setup

git clone https://github.com/mfouesneau/dustapprox
python -m pip install .

Contributors

  • Morgan Fouesneau (@mfouesneau)

  • René Andrae

  • Rosanna Sordo

  • Thavisha Dharmawardena

Contributing

Please open a new issue or new pull request for bugs, feedback, or new features you would like to see. If there is an issue you would like to work on, please leave a comment, and we will be happy to assist. New contributions and contributors are very welcome!

see contributing guide for more information.

Metadata

Release files for dustapprox 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dustapprox 0.2.2
File Size Uploaded Provenance Actions
dustapprox-0.2.2.tar.gz 5.9 MB Without provenance Details for dustapprox-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dustapprox 0.2.2
File Interpreter ABI Platform Actions
dustapprox-0.2.2-py3-none-any.whl Python 3 none any Details for dustapprox-0.2.2-py3-none-any.whl

Total release size: 11.9 MB

Release files / dustapprox-0.2.2.tar.gz

Download URL dustapprox-0.2.2.tar.gz
Size 5.9 MB
Tags Source
SHA-256 checksum
How to use checksums
2b31979b4e88f1bb6f916d3fc5703b94494fcedfb053805f18149f6bfce48b35
BLAKE2b-256 checksum
How to use checksums
6ceff93e489ab7630d2aa5c8e5b8c83ab0d83fbfaca4fb021bd68468ac6cea2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / dustapprox-0.2.2-py3-none-any.whl

Download URL dustapprox-0.2.2-py3-none-any.whl
Size 6.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
1cb8ad6475670690b9cb1e9db7b8fb753acf563e3028ea1171855d3e12c8b806
BLAKE2b-256 checksum
How to use checksums
bf78e898825bb846a686b93db857324b546fe8b369e6f775f2251425863144b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Security for dustapprox 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page