Skip to main content

obsplanning -- a set of python utilities to aid in planning astronomical observations

version 1.1.0

API documentation at https://obsplanning.readthedocs.io

PyPI version Downloads

Sharing/Customization: Please, play around! (MIT License)

If you find this useful for your work, giving me (Phil Cigan) a nod in your acknowledgements would be greatly appreciated.


Elevator Pitch

Tools to plan your astronomical observations, from simple conversions of coordinates, to handlnig date/time objects, to tracking targets across the sky, to plotting functions and visualizations, to radio sensitivity calculations. There's a little bit of everything. I hope you find it useful, o intrepid observer.


Dependencies

  • numpy
  • matplotlib
  • datetime
  • pytz
  • timezonefinder
  • astropy
  • ephem
  • astroquery
  • scipy
  • tqdm
  • multicolorfits
  • Tested in python 3.7, 3.10

Installation

Install with pip

pip install obsplanning

Alternatively, you can simply save a copy of obsplanning.py in a local working directory. This is suitable for situations when a regular pip install is not feasible, or for simply testing it out as a standalone file of functions (running/loading the file within a script to access its functionality).

Usage

Basic usage:

import obsplanning as obs

#e.g., computing target altitude & azimuth from an observer station:
obs.compute_target_altaz(target, observer, t1, t2, nsteps=1000)

#etc...

See the examples in the following section, and the documentation at https://obsplanning.readthedocs.io for much more detail.


Tutorials / Examples

See the documentation at readthedocs.
Or, see examples on github here.

Features

Determine observability of objects in the sky from your observatory, and produce plots to help you prepare for your observations over the course of a session.

  • pyephem-based time conversions, observers (telescope), and target source (sky) objects
  • Plotting/visualization tools for target elevation tracks and finder plots
  • Transit time and target visibility calculations for single telescopes or multiple stations (VLBI/VLBA)
  • Simple selection of observable targets from source lists, based on their coordinates.
  • Miscellaneous coordinate handling, radio astronomy info, and other helpful functions
  • Many pre-defined observing sites and celestial sources for convenience

Motivation / Backstory

This collection of functions assembled somewhat organically over the years from a variety of different clusters of code I've written for different purposes. (Early versions of some go back to around 2011!) As I started getting more and more hands-on with calculations and plots for my own observations, I started writing more and more tools to make those processes more convenient. There are certainly some very nice tools out in the world (like the venerable staralt), but I wanted some python tools to fit better with my own workflow. Circa 2017 or so when I started getting serious about planning some observations at the WHT within my own ecosystem of code, I started a simple text file where I dumped all my general functions related to this. None of the other packages I saw at that time really offered everything I was looking for in one place, so here we are. As time went by, I added more bits and pieces as they came up, and now there are even some radio interferometry tools as well. The current form here is not really object-oriented at all, but rather a collection of functions -- in the future I hope to have enough time and bandwidth to refactor these into classes and transform it to a more proper package. Astropy and other resources definitely do have good tools for planning your observations now, but hopefully the functionality here will at least be complementary.

Oh, and by the way - once you take your fancy observations with the help of obsplanning, how about making some fancy images using multicolorfits? Flag me down at a conference or wherever, I'd love to see what works of art you will make. (Astronomy does have the best pictures in science, after all...)

Clear skies

Metadata

Release files for obsplanning 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for obsplanning 1.1.0
File Size Uploaded Provenance Actions
obsplanning-1.1.0.tar.gz 417.5 kB Without provenance Details for obsplanning-1.1.0.tar.gz

Release files / obsplanning-1.1.0.tar.gz

Download URL obsplanning-1.1.0.tar.gz
Size 417.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5d66874f4b319a4f65e9913a3e500bfab8bfe7727c7abdfaf5521c5f8429d2bf
BLAKE2b-256 checksum
How to use checksums
ad97fa617a82ec088d0528df8a25e4b2525b49b14b6212ed8d9bdadb58cfde41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Security for obsplanning 1.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page