Skip to main content

A simple python library with an astropy unit for λ/D

Project description

lod_unit logo

Codecov PyPI Documentation Status CI


lod_unit

This is set up to make it easy to keep coronagraph information in λ/D space with an astropy unit called lod ("Lambda Over D"). Convert into angular units (or vise versa) with an astropy Equivalency relationship lod. See documentation here.

Installation

pip install lod_unit

Use

Typical use will look like

import astropy.units as u
from astropy.units import equivalencies as equiv
import lod_unit

diam = 10*u.m
lam = 500*u.nm
separation_lod = 3 * u.lod
separation_lod.to(u.arcsec, equiv.lod(lam, diam))
>> <Quantity 0.03093972 arcsec>

separations_as = [0.1, 0.5, 1]*u.arcsec
separations_as.to(u.lod, equiv.lod(lam, diam))
>> <Quantity [ 9.69627362, 48.48136811, 96.96273622] λ/D>

Gosh Corey, that's a lot of releases with no changes

This was a testing place for GitHub tools on the assumption no one would notice. Go away.

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

lod_unit-1.8.0.tar.gz (22.8 kB view details)

Uploaded Source

Built Distribution

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

lod_unit-1.8.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file lod_unit-1.8.0.tar.gz.

File metadata

  • Download URL: lod_unit-1.8.0.tar.gz
  • Upload date:
  • Size: 22.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for lod_unit-1.8.0.tar.gz
Algorithm Hash digest
SHA256 3af50e667b94635898bf2e66e9873865556f090fcf9f2e78840e3d2de006f27f
MD5 9c12b7eb892c33884b29c9ee0c961d26
BLAKE2b-256 b405d690f94961a86e663892b318c99dedbc23702b6e3f049d9cbc9a23c4b356

See more details on using hashes here.

Provenance

The following attestation bundles were made for lod_unit-1.8.0.tar.gz:

Publisher: publish-to-pypi.yml on CoreySpohn/lod_unit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lod_unit-1.8.0-py3-none-any.whl.

File metadata

  • Download URL: lod_unit-1.8.0-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for lod_unit-1.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dd0e9d2d77aa87911dc1bfe3b29a549cfa01162814479833a6f8093bfc523215
MD5 5b33366fe6a5ea097ce4bd76c4b819f1
BLAKE2b-256 42099039e54285c4d5696391913bf6965c31de9b41cf59143f194e2d9b2eaf7f

See more details on using hashes here.

Provenance

The following attestation bundles were made for lod_unit-1.8.0-py3-none-any.whl:

Publisher: publish-to-pypi.yml on CoreySpohn/lod_unit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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