Skip to main content

No project description provided

Project description

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.

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

skymap_convert-0.1.1.tar.gz (21.6 MB view details)

Uploaded Source

Built Distribution

skymap_convert-0.1.1-py3-none-any.whl (20.8 MB view details)

Uploaded Python 3

File details

Details for the file skymap_convert-0.1.1.tar.gz.

File metadata

  • Download URL: skymap_convert-0.1.1.tar.gz
  • Upload date:
  • Size: 21.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for skymap_convert-0.1.1.tar.gz
Algorithm Hash digest
SHA256 56664471060559613a3a825cbb4f5656eb06e75362de7a84d28cfe82b0066090
MD5 5ce99456c835cd22bdc19af7997f0a19
BLAKE2b-256 6ca5ce891c2f3b0aa47cf17bcc7a47f153379faeb17b22c4cc61c1408f00c0c8

See more details on using hashes here.

File details

Details for the file skymap_convert-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: skymap_convert-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 20.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for skymap_convert-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 689bd18ac924d1312299a28e16407f482bb3e59dc9e181ce2852f7f776eb09cc
MD5 b8627cdb45861eb7553344d77cb956b8
BLAKE2b-256 7d8957973f53eb00c492a5996d198b6178d6d8291d30dd1569f97dcc35f1e496

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page