A simple python library with an astropy unit for λ/D
Project description
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_eq
. See documentation here.
Installation
pip install lod_unit
Use
Typical use will look like
import astropy.units as u
from lod_unit import lod, lod_eq
diam = 10*u.m
lam = 500*u.nm
separation_lod = 3 * lod
separation_lod.to(u.arcsec, lod_eq(lam, diam))
>> <Quantity 0.03093972 arcsec>
separations_as = [0.1, 0.5, 1]*u.arcsec
separations_as.to(lod, lod_eq(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
Release history Release notifications | RSS feed
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.5.0.tar.gz
(20.3 kB
view hashes)
Built Distribution
Close
Hashes for lod_unit-1.5.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d03e62bed5fddcb645abe6e61524bb46a8b7af0cb2520d3f8dff62dcc87788c |
|
MD5 | 43fdeeb49777f37d3a7d47e286a7e902 |
|
BLAKE2b-256 | 5f29ee759d97687b51b85867f5086dbf74695a81769b680be2c131ed84c5bf88 |