dustapprox

A tool for computing approximative extinction coefficients

https://github.com/mfouesneau/dustapprox

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.4%) to scientific vocabulary

Keywords

approximation astronomy extinction
Last synced: 6 months ago · JSON representation ·

Repository

A tool for computing approximative extinction coefficients

Basic Info
Statistics
  • Stars: 8
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 2
Topics
approximation astronomy extinction
Created almost 4 years ago · Last pushed about 1 year ago
Metadata Files
Readme License Code of conduct Citation

README.rst

dustapprox -- A tool for computing approximative extinction coefficients
=============================================================================

.. image:: https://img.shields.io/pypi/v/dustapprox.svg
    :target: https://pypi.org/project/dustapprox/

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

.. code-block:: python

  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

.. code::

  pip install dustapprox
  
* Installation from pip+github

.. code::

  pip install git+https://github.com/mfouesneau/gdr3_extinction

* Manual installation

download the repository and run the setup

.. code::

  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!

Owner

  • Name: Morgan Fouesneau
  • Login: mfouesneau
  • Kind: user

@mfouesneau@mastodon.online

Citation (CITATION.cff)

# For citing software, see:

# http://journals.aas.org/authors/references.html

# GitHub has Zenodo DOI integration:
# https://guides.github.com/activities/citable-code/

# What is a CITATION.cff file:
# https://citation-file-format.github.io/

# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: dustapprox
message: If you use this software, please cite it using the metadata from this file.
date-released: 2022-04-20
url: 'https://github.com/mfouesneau/dustapprox'
version: 0.1
type: software
authors:
  - family-names: Fouesneau
    given-names: Morgan
    orcid: 'https://orcid.org/0000-0001-9256-5516'
  - family-names: Andrae
    given-names: René
    orcid: 'https://orcid.org/0000-0001-8006-6365'
  - family-names: Sordo
    given-names: Rosanna
    orcid: 'https://orcid.org/0000-0003-4979-0659'
  - family-names: Dharmawardena
    given-names: Thavisha
    orcid: 'https://orcid.org/0000-0002-9583-5216'

GitHub Events

Total
  • Issues event: 2
  • Create event: 1
Last Year
  • Issues event: 2
  • Create event: 1

Issues and Pull Requests

Last synced: 8 months ago

All Time
  • Total issues: 5
  • Total pull requests: 0
  • Average time to close issues: 4 months
  • Average time to close pull requests: N/A
  • Total issue authors: 5
  • Total pull request authors: 0
  • Average comments per issue: 2.6
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: less than a minute
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 0.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • saharsh1 (1)
  • Antonio19-jpg (1)
  • Gabriel-p (1)
  • HNLala (1)
  • vickyscowcroft (1)
Pull Request Authors
Top Labels
Issue Labels
bug (1)
Pull Request Labels

Dependencies

docs/requirements.txt pypi
  • markupsafe <2.10
  • matplotlib *
  • myst-nb *
  • sphinx *
  • sphinx-book-theme *
requirements.txt pypi
  • astropy *
  • numpy *
  • pandas *
  • pyphot *
  • pyyaml *
  • scikit-learn *
  • scipy *
  • tqdm *
.github/workflows/documentation.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite
  • ad-m/github-push-action master composite
.github/workflows/python-publish.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite
  • pypa/gh-action-pypi-publish 27b31702a0e7fc50959f5ad993c78deac1bdfc29 composite
.github/workflows/unittests.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite
pyproject.toml pypi
setup.py pypi