rubin-dp0 / tutorial-notebooks

Tutorial Jupyter Notebooks for Data Preview 0, created and maintained by the Rubin Observatory Community Science Team.
Apache License 2.0
33 stars 17 forks source link

Use region searches instead of HTM IDs for DP02_04b #208

Closed dhirving closed 2 days ago

dhirving commented 1 month ago

The latest version of client/server Butler now supports arbitrary region searches, instead of requiring users to manually figure out the HTM pixelization IDs. The examples of spatial searches in DP02_04b have been updated to use the POINT() syntax.

review-notebook-app[bot] commented 1 month ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

dhirving commented 1 month ago

This one uses new functionality not available until weekly 33, and the new functionality is client/server only. (DirectButler will get this in a couple months.)

So this should NOT be merged until both:

I imagine you'll want to workshop the text surrounding this quite a bit.

dhirving commented 1 month ago

You can also now write things like

region = lsst.sphgeom.Circle(...)
datasetRefs = registry.queryDatasets("calexp",
                                     where="visit.region OVERLAPS my_region",
                                     my_region: region})

using any of the region types in lsst.sphgeom..

dhirving commented 2 days ago

Jeff incorporated this change in #211