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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lod_unit-1.5.2.tar.gz.
File metadata
- Download URL: lod_unit-1.5.2.tar.gz
- Upload date:
- Size: 20.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b172c737a362600d272b4c6719baa4aa31c4fb68fbf3b97d64ba747691c08c3a
|
|
| MD5 |
7b5a3c913e38b0a84cb814e02018652d
|
|
| BLAKE2b-256 |
62f79c35069add07e0c52a78d7b5a4b8e0d2f361df8658ad58cf73f3ab95a949
|
File details
Details for the file lod_unit-1.5.2-py2.py3-none-any.whl.
File metadata
- Download URL: lod_unit-1.5.2-py2.py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f68675a63e1f812350767359603b5b1149a66f1f3f31e7208c415c88f7dc03d4
|
|
| MD5 |
f01ddee1855f1542a0cab36f554681dd
|
|
| BLAKE2b-256 |
6a909206f126182f3355c912cfcc45006841178382add594813c251fe9159749
|