astrocalc

https://zenodo.org/badge/56762426.svg

https://img.shields.io/pypi/pyversions/astrocalc https://img.shields.io/pypi/v/astrocalc https://img.shields.io/github/license/thespacedoctor/astrocalc https://img.shields.io/pypi/dm/astrocalc

http://157.245.42.153:8080/buildStatus/icon?job=astrocalc%2Fmaster&subject=build%20master http://157.245.42.153:8080/buildStatus/icon?job=astrocalc%2Fdevelop&subject=build%20dev https://cdn.jsdelivr.net/gh/thespacedoctor/astrocalc@master/coverage.svg https://readthedocs.org/projects/astrocalc/badge/?version=master https://img.shields.io/github/issues/thespacedoctor/astrocalc/type:%20bug?label=bug%20issues

perform common astronomy-related calculations, conversions and measurements within python scripts or from the command-line.

Documentation for astrocalc is hosted by Read the Docs ( development version and master version). The code lives on github. Please report any issues you find here.

Features

How to cite astrocalc

If you use astrocalc in your work, please cite using the following BibTeX entry:

@software{Young_astrocalc,
author = {Young, David R.},
doi = {10.5281/zenodo.8014736},
license = {GPL-3.0-only},
title = ,
url = {https://github.com/thespacedoctor/astrocalc}
}

API Reference

Modules

astrocalc.commonutils

common tools used throughout package

astrocalc.coords

Calculations and conversions based on sky-coordinates

astrocalc.distances

Tools to work with and manipulate astronomical distances

astrocalc.times

Calculations and conversions based on astronomical times

astrocalc.commonutils.getpackagepath

Get common file and folder paths for the host package

Classes

astrocalc.coords.separations

The worker class for the separations module

astrocalc.coords.translate

Translate a set of coordinates north and east by distances given in arcsecs

astrocalc.coords.unit_conversion

The worker class for the unit_conversion module

astrocalc.distances.converter

A converter to switch distance between various units of measurement

astrocalc.times.conversions

The worker class for the conversions module

astrocalc.times.now

Report the current time into various formats

Functions

astrocalc.commonutils.getpackagepath.getpackagepath

Get the root path for this python package

astrocalc.coords.coordinates_to_array

Convert a single value RA, DEC or list of RA and DEC to numpy arrays

astrocalc.luminosity_to_flux

Convert luminosity to a flux

Release Notes

v0.4.1 - May 2, 2020

  • Code now compliant with Python 3.7

Release Notes