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 hashes)

Uploaded Source

Built Distribution

dustapprox-0.1-py3-none-any.whl (73.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page