Skip to main content

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

Project description

lod_unit logo

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


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.6.0.tar.gz (21.7 kB view details)

Uploaded Source

Built Distribution

lod_unit-1.6.0-py2.py3-none-any.whl (5.1 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: lod_unit-1.6.0.tar.gz
  • Upload date:
  • Size: 21.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for lod_unit-1.6.0.tar.gz
Algorithm Hash digest
SHA256 272bbeeeb5b5f782b38127d617e758b67d0e1505f5e835bcf60bb83b8888f4b7
MD5 eaa90d01b7850c0b89140a253c556246
BLAKE2b-256 c9e755e149f2053ecf655a808506013ab4bb65211c6f0498811c351e3f02694f

See more details on using hashes here.

File details

Details for the file lod_unit-1.6.0-py2.py3-none-any.whl.

File metadata

  • Download URL: lod_unit-1.6.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for lod_unit-1.6.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b6979138578b9f57ce2a4cea0e811d9180bfd954d67a87bd9622d85f52a2e087
MD5 bd50a4fbd020405671f4e7587926f5b8
BLAKE2b-256 3f85dac99ab9bf8064223d6e370cbef9c6220e20d4e6b6a474d237361f84a9a4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page