Skip to main content

Compute and visualize observations phase coverage

Project description

portrait

Observation metrics for periodic events

github license documentation

A Python package to compute and visualize observation metrics for periodic events.

In Astronomy, portrait is useful to answer the following questions:

  • How much of an orbit with period $P$ has been observed given certain observation times? (tutorial)
  • What period $P$ matches with this list of events? (tutorial)
  • How a certain target must be observed to cover all orbits with periods lower than $P$ days?

Documentation at portrait.readthedocs.io

Example

Given the range of periods you want to cover, here is how to compute the amout of phase covered by your observation times

from portrait import coverage

time = ... # your observation times
periods = np.linspace(0.1, 10, 2000)

covered = coverage(times)(periods) 

And plotting it with matplotlib

import matplotlib.pyplot as plt

plt.subplot(111, xlabel="periods", ylabel="coverage")
plt.plot(periods, covered, c="0.5")

image

Installation

pip install portrait

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

portrait-0.0.5b0.tar.gz (168.8 kB view details)

Uploaded Source

Built Distribution

portrait-0.0.5b0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file portrait-0.0.5b0.tar.gz.

File metadata

  • Download URL: portrait-0.0.5b0.tar.gz
  • Upload date:
  • Size: 168.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for portrait-0.0.5b0.tar.gz
Algorithm Hash digest
SHA256 511372f93179ba013cb6eab20f2d71baa6e8a9191a78381d048b3c56fdcca47e
MD5 924925a7e71e5b928ccd6719c8800abf
BLAKE2b-256 f5b239d6db866fe022df38c304e7eb89ce3fe8cdfaa094400929ccd2aec0ec70

See more details on using hashes here.

File details

Details for the file portrait-0.0.5b0-py3-none-any.whl.

File metadata

  • Download URL: portrait-0.0.5b0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for portrait-0.0.5b0-py3-none-any.whl
Algorithm Hash digest
SHA256 7c75d15fe46efcdbf393baea01c0973be5d84423df73a74e6386c913d47c904d
MD5 c7bcf435fb71f9b05c0377daf7a8e522
BLAKE2b-256 a24225f7acb391cb1d81bd938bb5942d2940eb33d8b53e9505a09246b71adddb

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