Details
-
Type:
Improvement
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: jointcal, meas_base, pipe_drivers, pipe_tasks, skymap
-
Labels:
-
Story Points:3
-
Epic Link:
-
Sprint:AP S18-4, AP S18-6
-
Team:Alert Production
Description
Our stack has a very few bits of code that still use the geom package. In particular they use the convexHull function. geom has been superseded by sphgeom (which is written in C++ instead of python) and contains ConvexPolygon.convexHull. Update the code, paying careful attention to API differences, if any.
This is driven by a desire to repurpose the geom package for afw geometry primitives (RFC-460) and to retire obsolete and unmaintained code.
Attachments
Issue Links
- is blocked by
-
DM-14255 Add ConvexPolygon.intersects and related methods
- Done
-
DM-13905 Change SpherePoint.getVector to return a sphgeom UnitVector3d
- Done
- is triggered by
-
RFC-460 Replace the lsst.geom package with components from lsst.afw.geom
- Implemented
- is triggering
-
DM-14528 w_2018_19 & w_2018_20 coaddDriver is broken
- Done
- relates to
-
DM-13727 Remove skypix from stack dependencies
- Done
Paul Price I took your excellent advice to centralize the code. This consisted of two changes:
1) Made imageOverlapsTract a public function in meas_base. This should be rendered obsolete by the gen3 butler, but until then it's useful to have just one copy, as you said.
2) Added the ability to get a sky polygon from lsst.skymap.TractInfo and PatchInfo (for both inner and outer regions of each). Jim Bosch recently added something like this to skymap and I negotiated a change to add flexibility and clarity. I also added a unit test for that.
I also further refined imageOverlapsTract a bit, e.g. converting all image corners from pixels to sky in a single call to SkyWcs.pixelToSky.
Please have another look. skymap changed significantly, meas_base and jointcal both changed a bit.