Skip to main content

A tool for computing extinction coefficients in a quick and dirty manner

Project description

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.

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

dustapprox-0.2.0.tar.gz (5.9 MB view details)

Uploaded Source

Built Distribution

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

dustapprox-0.2.0-py3-none-any.whl (6.0 MB view details)

Uploaded Python 3

File details

Details for the file dustapprox-0.2.0.tar.gz.

File metadata

  • Download URL: dustapprox-0.2.0.tar.gz
  • Upload date:
  • Size: 5.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for dustapprox-0.2.0.tar.gz
Algorithm Hash digest
SHA256 abdfa7142feef1628ec5df3c58a09443b9e6d4e617250ec516a4f7f0af1dd148
MD5 1c80cb7b07f7613834e4baad8e673bba
BLAKE2b-256 16e428d54630c5d7bfabfe0666c28d0df42331392687ee22a4406bf750e9240a

See more details on using hashes here.

File details

Details for the file dustapprox-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: dustapprox-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for dustapprox-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0bf5d338b8619b25e00daba80fc416ee9b689148a6af089dd80d18cf6d8e3dfd
MD5 9d2fc347e30c0b7bde14184c4ecc2e5f
BLAKE2b-256 2ac12b8d53c6843bad40109ca0cd996b749e35cae0a5b439bd6cc3fb4f009d22

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