Skip to main content

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

Project description

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/

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/kurucs_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 git+https://github.com/mfouesneau/gdr3_extinction
  • Manual installation

download the repository and run the setup

git clone https://github.com/mfouesneau/gdr3_extinction
python setup.py 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!

Project details


Release history Release notifications | RSS feed

This version

0.1

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.1.tar.gz (6.0 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.1-py3-none-any.whl (73.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dustapprox-0.1.tar.gz
  • Upload date:
  • Size: 6.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for dustapprox-0.1.tar.gz
Algorithm Hash digest
SHA256 daeef7f2064fb8ee442fdae22cfa6fbff6dee55043546aca405d2e2efcf1aeed
MD5 3d569e4a0a5a3cb514631b74a181915e
BLAKE2b-256 1383a48d7baec6d27e48736a5150e281fe48541aaaa4a95e207147efb5e70b66

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dustapprox-0.1-py3-none-any.whl
  • Upload date:
  • Size: 73.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for dustapprox-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2677f26e3dd6ea85f14a5ee32d1a62749dc55a934e4cf1122682f31921a2e536
MD5 57601e06abdb345b6602e403b69c30fc
BLAKE2b-256 d27deb14048c8882dc2a50e4bf29f739d41ddd2d715b56d4e6b72c1b7a4bee33

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