radiation_unit_conversion

A simple python package to convert between radiation units, based on the STScI units webpage.

https://github.com/nenasedk/radiation_unit_conversion

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 (5.0%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

A simple python package to convert between radiation units, based on the STScI units webpage.

Basic Info
  • Host: GitHub
  • Owner: nenasedk
  • License: mit
  • Language: Python
  • Default Branch: main
  • Size: 64.5 KB
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • Open Issues: 0
  • Releases: 0
Created about 1 year ago · Last pushed 9 months ago
Metadata Files
Readme Changelog License Citation

README.rst

=========================
radiation_unit_conversion
=========================

**An easy-to-use Python package for converting between different radiation units**

Implementing the `STScI units page `_, since astropy doesn't like to easily convert between radiation units.

Example
=======
Using astropy units::

  import numpy as np
  import astropy.units as u
  import radiation_unit_conversion.units as units
  
  flambda_spectrum = np.linspace(1,10,10) * u.W/u.m**2/u.micron
  wavelength = np.linspace(1,5,10) * u.micron
  fnu_spectrum = units.flambda2fnu(flambda_spectrum, wavelength, u.Jy)

Without using astropy units::

  import numpy as np
  import radiation_unit_conversion.units as units

  flambda_spectrum = np.linspace(1,10,10) # W/m^2/micron
  wavelength = np.linspace(1,5,10) # micron
  fnu_spectrum = units.watt_metersquared_micron2jansky(flambda_spectrum, wavelength)

License
=======
Copyright 2024 Evert Nasedkin

radiation_unit_conversion is available under the MIT license.
See the LICENSE file for more information.

Owner

  • Name: Evert Nasedkin
  • Login: nenasedk
  • Kind: user
  • Location: Heidelberg
  • Company: Max Planck Institute for Astronomy

PhD Student in the APEx Department at the Max Planck Institute for Astronomy. I work on developing retrieval codes to study exoplanet atmospheres.

Citation (CITATION.cff)

cff-version: 1.2.0
message: >-
  If you use this software, please cite it using the
  metadata from this file. Always cite the original paper,
  and cite the associated papers if relevant.

# Project information
title: radiation unit conversion
type: software
authors:
  - name: Evert Nasedkin

repository-code: 'https://github.com/nenasedk/radiation_unit_conversion/tree/main'

license: MIT

GitHub Events

Total
  • Watch event: 1
  • Delete event: 1
  • Push event: 34
  • Pull request event: 1
  • Create event: 3
Last Year
  • Watch event: 1
  • Delete event: 1
  • Push event: 34
  • Pull request event: 1
  • Create event: 3

Dependencies

.github/workflows/python-package.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v3 composite
.github/workflows/python-publish.yml actions
  • actions/checkout v4 composite
  • actions/download-artifact v4 composite
  • actions/setup-python v5 composite
  • actions/upload-artifact v4 composite
  • pypa/gh-action-pypi-publish release/v1 composite
pyproject.toml pypi
  • astropy *
  • meson-python *
  • ninja *
  • numpy *
  • unittest *