Details
-
Type:
RFC
-
Status: Implemented
-
Resolution: Done
-
Component/s: DM
-
Labels:None
Description
The exposureId value in visitInfo is not a visit-exposure level identifier, but rather a ccd-exposure level identifier (see docstring for obs.base.CameraMapper._computeCcdExposureId() for the only place where this seems to be specified). Thus, it should not be included in visitInfo, which is only things that are common across the visit.
We do need a visit-exposure level identifier to be included in visitInfo, so that we can link exposures within visits without using the butler (e.g. without dataRef.dataId['visit']). This RFC likely requires that makeRawVisitInfo() adds the butler visitId to the new visitInfo.visitId, unless there is some other way to access the visitId value besides the above butler call.
Concrete proposal:
- Move exposureId from VisitInfo into ExposureInfo.
- Add visitId to VisitInfo, and include it as part of makeRawVisitInfo.
- Document the meaning of exposureId to be clear that it is per-ccd.
- Document whether visitId can be derived from exposureId, or whether those are decoupled.
- Document the meaning of visitId to be clear that it is per-visit.
See this discussion that generated this RFC:
https://lsstc.slack.com/archives/C3UCAEW3D/p1517724549000034
Attachments
Issue Links
- is triggering
-
DM-13738 Remove exposureId from visitInfo
- Invalid
-
DM-13942 Remove exposureId and from VisitInfo and add visitId
- Invalid
-
DM-29955 Add ExposureInfo id getter (replacement for VisitInfo.getExposureId())
- Done
-
DM-13943 Deprecate VisitInfo.getExposureId()
- Done
-
DM-13944 add id to VisitInfo
- Done
- relates to
-
RFC-785 Move data ID -> integer packing state and logic out of butler
- Implemented
-
DM-31773 Ensure visitInfo.id matches the butler visit key
- To Do
- mentioned in
-
Page Loading...
This sounds like a great idea to me. This fixes a long-standing issue in a very natural way.
I anticipate it will take some obs-package-specific work to set the exposureId field in ExposureInfo and the visitId field in VisitInfo (especially since we presently have no standard way to compute a visit ID from an exposure ID), but it is work that I feel is well worth doing.