{"id":38508098,"url":"https://github.com/lincc-frameworks/skymap-convert","last_synced_at":"2026-01-17T06:17:57.659Z","repository":{"id":296264106,"uuid":"992703787","full_name":"lincc-frameworks/skymap-convert","owner":"lincc-frameworks","description":"A dependency-light package for skymap operations—use the LSST skymap without the LSST stack.","archived":false,"fork":false,"pushed_at":"2025-08-13T20:03:12.000Z","size":65047,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-13T20:49:27.582Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lincc-frameworks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-29T15:23:15.000Z","updated_at":"2025-08-13T20:03:16.000Z","dependencies_parsed_at":"2025-05-29T19:55:23.157Z","dependency_job_id":"e5225e12-0b29-4dfe-9cba-f8010d8ac451","html_url":"https://github.com/lincc-frameworks/skymap-convert","commit_stats":null,"previous_names":["lincc-frameworks/skymap-to-poly-coords","lincc-frameworks/skymap-convert"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/lincc-frameworks/skymap-convert","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lincc-frameworks%2Fskymap-convert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lincc-frameworks%2Fskymap-convert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lincc-frameworks%2Fskymap-convert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lincc-frameworks%2Fskymap-convert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lincc-frameworks","download_url":"https://codeload.github.com/lincc-frameworks/skymap-convert/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lincc-frameworks%2Fskymap-convert/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28502142,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T04:31:57.058Z","status":"ssl_error","status_checked_at":"2026-01-17T04:31:45.816Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-17T06:17:53.786Z","updated_at":"2026-01-17T06:17:57.644Z","avatar_url":"https://github.com/lincc-frameworks.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\n[![PyPI](https://img.shields.io/pypi/v/skymap-convert?color=blue\u0026logo=pypi\u0026logoColor=white)](https://pypi.org/project/skymap_convert/)\n[![Codecov](https://codecov.io/gh/lincc-frameworks/skymap-convert/branch/main/graph/badge.svg)](https://codecov.io/gh/lincc-frameworks/skymap-convert)\n--\u003e\n[![Template](https://img.shields.io/badge/Template-LINCC%20Frameworks%20Python%20Project%20Template-brightgreen)](https://lincc-ppt.readthedocs.io/en/latest/)\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/lincc-frameworks/skymap-convert/smoke-test.yml)](https://github.com/lincc-frameworks/skymap-convert/actions/workflows/smoke-test.yml)\n[![PyPI](https://img.shields.io/pypi/v/skymap_convert?color=blue\u0026logo=pypi\u0026logoColor=white)](https://pypi.org/project/skymap_convert/)\n\n# Skymap Convert\nA dependency-light package for skymap operations--use the LSST skymap without the LSST stack.\n\nMade for use within [lsdb-rubin](https://github.com/astronomy-commons/lsdb-rubin); can also be used on its own.\n\n## Quick start\n\n1. Install the package.\n```bash\npip install skymap-convert\n```\n\n2. Import a skymap reader.\n```python\nimport skymap_convert\n\nreader = skymap_convert.ConvertedSkymapReader(preset=\"lsst_skymap\")\n```\n\n3. Optionally, call `summarize` to take a peek at the convents of the converted skymap.\n```python\nreader.summarize()\n\n# Prints:\n# \n# Skymap Summary\n# ----------------------------------------\n# Path:               /path/to/skymap-convert/converted_skymaps/lsst_skymap\n# Name:               lsst_skymap\n# Generated:          2025-07-01T18:11:20.873149Z\n# ...\n```\n4. Use `get_tract_vertices` and `get_patch_vertices` to access the data.  \n*(See [Reading and using a converted skymap.ipynb](https://github.com/lincc-frameworks/skymap-convert/blob/main/docs/notebooks/02%20-%20Reading%20and%20using%20a%20converted%20skymap.ipynb) for more details.)*\n```python\nreader.get_tract_vertices(42)\n\n# Returns:\n#\n# [[86.16241626810654, -88.63764259611838],\n# [92.73276185933494, -88.5876043887882],\n# [90.57872844947276, -88.43062126829582],\n# [84.63000467541433, -88.47549635501055]]\n```\n```python\nreader.get_patch_vertices(1234, 56)\n\n# Returns:\n#\n# [[353.19436746094334, -61.733705740129906],\n# [353.5462936615678, -61.73505840062234],\n# [353.54818789227375, -61.568395336612376],\n# [353.19815518019567, -61.567052069980534]]\n```\n\n5. To plot, call `plot_patches`.  \n*(See [Skymap plotting methods.ipynb](https://github.com/lincc-frameworks/skymap-convert/blob/main/docs/notebooks/Skymap%20plotting%20methods.ipynb) for more details.)*\n```python\nreader.plot_patches(\n    [\n        (60, 0),\n        (61, 8)\n    ],\n    tract_outer_boundaries=60\n)\n```\n\n6. Finally, clean up the reader's temp files:\n```python\nreader.cleanup()\n```\n\n## A note on dependencies\nIn its simplest form, Skymap Convert requires no LSST-stack dependences.\n\nThis means that users may **read and use the built-in LSST skymap** (or any other pre-converted skymaps) with **just the core version of this package** (which can be obtained via `pip install skymap-convert`, or cloning the repo and running `pip install .`).\n\nUsers who wish to convert their *own* skymap from the lsst.skymap [RingsSkyMap](https://github.com/lsst/skymap/blob/main/python/lsst/skymap/ringsSkyMap.py) type will need to install additional dependencies. These may be installed by:\n```bash\ngit clone https://github.com/lincc-frameworks/skymap-convert.git\ncd skymap-convert\npip install '.[dev]'\n```\n\n\n## For more information\n### A general overview on skymaps and how they are structured\nSee [Skymaps overview](https://github.com/lincc-frameworks/skymap-convert/blob/main/docs/notebooks/00%20-%20Skymaps%20overview.ipynb).\n\n### Converting your own skymaps\n See [Converting from LSST skymaps.ipynb](https://github.com/lincc-frameworks/skymap-convert/blob/main/docs/notebooks/01%20-%20Converting%20from%20LSST%20skymaps.ipynb).\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flincc-frameworks%2Fskymap-convert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flincc-frameworks%2Fskymap-convert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flincc-frameworks%2Fskymap-convert/lists"}