Skip to main content

Template GitHub Workflow Status

Skymap Convert

A dependency-light package for skymap operations--use the LSST skymap without the LSST stack.

Quick start

  1. Install the package.
git clone https://github.com/lincc-frameworks/skymap-convert.git
cd skymap-convert
pip install .
  1. Import a skymap reader.
import skymap_convert

reader = skymap_convert.ConvertedSkymapReader(preset="lsst_skymap")
  1. Optionally, call summarize to take a peek at the convents of the converted skymap.
reader.summarize()

# Prints:
# 
# Skymap Summary
# ----------------------------------------
# Path:               /path/to/skymap-convert/converted_skymaps/lsst_skymap
# Name:               lsst_skymap
# Generated:          2025-07-01T18:11:20.873149Z
# ...
  1. Use get_tract_vertices and get_patch_vertices to access the data.
    (See Reading and using a converted skymap.ipynb for more details.)
reader.get_tract_vertices(42)

# Returns:
#
# [[86.16241626810654, -88.63764259611838],
# [92.73276185933494, -88.5876043887882],
# [90.57872844947276, -88.43062126829582],
# [84.63000467541433, -88.47549635501055]]
reader.get_patch_vertices(1234, 56)

# Returns:
#
# [[353.19436746094334, -61.733705740129906],
# [353.5462936615678, -61.73505840062234],
# [353.54818789227375, -61.568395336612376],
# [353.19815518019567, -61.567052069980534]]
  1. To plot, call plot_patches.
    (See Skymap plotting methods.ipynb for more details.)
reader.plot_patches(
    [
        (60, 0),
        (61, 8)
    ],
    tract_outer_boundaries=60
)
  1. Finally, clean up the reader's temp files:
reader.cleanup()

For more information

A general overview on skymaps and how they are structured

See Skymaps overview.

Converting your own skymaps

See Converting from LSST skymaps.ipynb.

Metadata

Release files for skymap-convert 0.1.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 skymap-convert 0.1.1
File Size Uploaded
skymap_convert-0.1.1.tar.gz 21.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for skymap-convert 0.1.1
File Interpreter ABI Platform
skymap_convert-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 42.4 MB

Release files / skymap_convert-0.1.1.tar.gz

Download URL skymap_convert-0.1.1.tar.gz
Size 21.6 MB
Tags Source
SHA-256 checksum
How to use checksums
56664471060559613a3a825cbb4f5656eb06e75362de7a84d28cfe82b0066090
BLAKE2b-256 checksum
How to use checksums
6ca5ce891c2f3b0aa47cf17bcc7a47f153379faeb17b22c4cc61c1408f00c0c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / skymap_convert-0.1.1-py3-none-any.whl

Download URL skymap_convert-0.1.1-py3-none-any.whl
Size 20.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
689bd18ac924d1312299a28e16407f482bb3e59dc9e181ce2852f7f776eb09cc
BLAKE2b-256 checksum
How to use checksums
7d8957973f53eb00c492a5996d198b6178d6d8291d30dd1569f97dcc35f1e496
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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