Add support for querying Butler spatially based on a point

Description

The new query system already supports arbitrary Region queries, but some tutorial notebooks search by an (ra, dec) point and it would be nice if that was supported directly instead of needing to convert to a `Region` manually.

Add support for this in three places:

  • POINT(ra, dec) syntax in where strings (the syntax is already in the parser, it’s just not hooked up to anything)

  • binding a variable in a where string

  • ExpressionFactory

For the ExpressionFactory and bind cases, it should be possible to use either an astropy.coordinates.SkyCoord or lsst.sphgeom.LonLat

Issue Matrix

hide

Activity

Jim Bosch August 14, 2024 at 5:32 PM

Looks good; just a couple of minor comments on the PR.

Done
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Labels

Reviewers

Jim Bosch

Story Points

RubinTeam

Ops Middleware

Components

Checklist

Created August 13, 2024 at 6:08 PM
Updated August 14, 2024 at 11:08 PM
Resolved August 14, 2024 at 11:08 PM