Skymap Convert
A dependency-light package for skymap operations--use the LSST skymap without the LSST stack.
Quick start
- Install the package.
git clone https://github.com/lincc-frameworks/skymap-convert.git
cd skymap-convert
pip install .
- Import a skymap reader.
import skymap_convert
reader = skymap_convert.ConvertedSkymapReader(preset="lsst_skymap")
- Optionally, call
summarizeto 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
# ...
- Use
get_tract_verticesandget_patch_verticesto 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]]
- To plot, call
plot_patches.
(See Skymap plotting methods.ipynb for more details.)
reader.plot_patches(
[
(60, 0),
(61, 8)
],
tract_outer_boundaries=60
)
- 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
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56664471060559613a3a825cbb4f5656eb06e75362de7a84d28cfe82b0066090
|
|
| MD5 |
5ce99456c835cd22bdc19af7997f0a19
|
|
| BLAKE2b-256 |
6ca5ce891c2f3b0aa47cf17bcc7a47f153379faeb17b22c4cc61c1408f00c0c8
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
689bd18ac924d1312299a28e16407f482bb3e59dc9e181ce2852f7f776eb09cc
|
|
| MD5 |
b8627cdb45861eb7553344d77cb956b8
|
|
| BLAKE2b-256 |
7d8957973f53eb00c492a5996d198b6178d6d8291d30dd1569f97dcc35f1e496
|