Skip to main content
https://github.com/LSSTDESC/Coord/actions/workflows/ci.yml/badge.svg https://codecov.io/gh/LSSTDESC/Coord/branch/main/graph/badge.svg

Coord is a Python module that provides basic functionality related to angles and celestial coordinates.

It is similar in functionality to the astropy.coordinates module, but with more of an emphasis on efficiency. Some functions are more than 100 times faster than the corresponding functionality in astropy. On the other hand, the API is somewhat more restrictive than the API used by astropy, so the appropriate module to use will depend on your needs.

Notable functionality:

  • Spherical geometric calculations of the distance between two points, angles in spherical triangles, and areas of spherical triangles.

  • Tangent-plane projection of a coordinate relative to a given center point of the projection.

  • Deprojection back into spherical coordinates.

  • Analytic calculation of the jacobian of the tangent projection.

  • Precession calculations between different epochs.

  • Conversion to galactic and ecliptic coordinate systems (and back).

The code was originally written by Mike Jarvis for TreeCorr and then also used in GalSim. It has been republished here as a stand-alone module to enable others (within the LSST DESC or not) to have easier access to these functions.

One missing feature (for which pull requests would be welcome) is conversion between FK5 and ICRS systems (or even FK4). If you care about the slight differences between these systems, then you should probably stick to astropy, which does handle these distinctions.

Aside: The module was used as a pedagogical tool at the LSST DESC DE School on July 9, 2017. A video of the lesson can be viewed here.

Licence

The code is licensed under the MIT License, which basically means you can use it in any way you want, so long as you keep the copyright notice at the top of each source file and/or include the accompanying LICENSE file with the distribution.

Installation

You can install Coord with pip:

$ pip install LSSTDESC.Coord --user

or if you have root access, you might prefer:

$ sudo pip install LSSTDESC.Coord

or possibly with neither sudo nor --user if your Python distro is in a writable directory.

If you use anaconda you can install from conda forge:

$ conda install -c conda-forge lsstdesc.coord

If you prefer to download or clone the repo and install manually, you can install with setup.py using one of the usual variants:

$ python setup.py install --prefix={prefix}

or:

$ sudo python setup.py install

Release files for LSSTDESC.Coord 1.3.1

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

Source distribution (sdist)

Source distribution for LSSTDESC.Coord 1.3.1
File Size Uploaded
lsstdesc_coord-1.3.1.tar.gz 41.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for LSSTDESC.Coord 1.3.1
File Interpreter ABI Platform
lsstdesc_coord-1.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 68.8 kB

Release files / lsstdesc_coord-1.3.1.tar.gz

Download URL lsstdesc_coord-1.3.1.tar.gz
Size 41.6 kB
Tags Source
SHA-256 checksum
How to use checksums
60f878c29e1f30a9b50bf60dca3c466dc9cfb2cbc71f0a27c575ced969de57ab
BLAKE2b-256 checksum
How to use checksums
b8e06806df4cfa54927a2d8e425407611b4fc031dd125bc952b4a31deb743305
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Feb 13, 2026.

Transparency log

Release files / lsstdesc_coord-1.3.1-py3-none-any.whl

Download URL lsstdesc_coord-1.3.1-py3-none-any.whl
Size 27.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
06afe1621ef5da89f51e1225b1016f9ab640f6eb955bbab1231d60342e536336
BLAKE2b-256 checksum
How to use checksums
a1f863121ece13d3dc7521e8989b4224389868f092ce13d3aae4c410b0f5de12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Feb 13, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.3.1 This release

2 release files

1.3.0

2 release files

1.2.3

44 release files

1.2.2

1 release file

1.2.1

1 release file

1.2.0

1 release file

1.1.2

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

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