Skip to main content
https://img.shields.io/pypi/v/dustapprox.svg https://img.shields.io/badge/python-3.10,_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.

Release files for dustapprox 0.2.0

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.0
File Size Uploaded
dustapprox-0.2.0.tar.gz 5.9 MB Details

Built distribution (wheel)

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

Total release size: 11.9 MB

Release files / dustapprox-0.2.0.tar.gz

Download URL dustapprox-0.2.0.tar.gz
Size 5.9 MB
Tags Source
SHA-256 checksum
How to use checksums
abdfa7142feef1628ec5df3c58a09443b9e6d4e617250ec516a4f7f0af1dd148
BLAKE2b-256 checksum
How to use checksums
16e428d54630c5d7bfabfe0666c28d0df42331392687ee22a4406bf750e9240a
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.0-py3-none-any.whl

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

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1

2 release files

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