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.
Metadata
Release files for lod-unit 1.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lod_unit-1.8.0.tar.gz | 22.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lod_unit-1.8.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.2 kB
Release files / lod_unit-1.8.0.tar.gz
| Download URL | lod_unit-1.8.0.tar.gz |
|---|---|
| Size | 22.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3af50e667b94635898bf2e66e9873865556f090fcf9f2e78840e3d2de006f27f
|
|
BLAKE2b-256 checksum How to use checksums |
b405d690f94961a86e663892b318c99dedbc23702b6e3f049d9cbc9a23c4b356
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2025.
Transparency logRelease files / lod_unit-1.8.0-py3-none-any.whl
| Download URL | lod_unit-1.8.0-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dd0e9d2d77aa87911dc1bfe3b29a549cfa01162814479833a6f8093bfc523215
|
|
BLAKE2b-256 checksum How to use checksums |
42099039e54285c4d5696391913bf6965c31de9b41cf59143f194e2d9b2eaf7f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2025.
Transparency log