Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: obs_base
-
Labels:
-
Story Points:1
-
Team:Architecture
-
Urgent?:No
Description
It seems that the define-visits command line is not respecting the collections parameter and so every single call to define-visits runs on every single "exposure" for that instrument.
This was noted on a community post and looking at the code the queryDataIds is not constrained by the collection at all. The collection is passed to the DefineVisitsTask but is only used to retrieve the relevant camera (which means it's ignored and the default camera is returned). If registry is not used to work out the WCS the collection is used again to get the WCS for the specific raw.
This implies that there are really two collections of interest.
- The collection constraining the queryDataIds and associated with the butler.get of raw.wcs (if needed).
- The calibration collection used to locate the camera geometry.
As currently implemented DefineVisitsTask is effectively ignoring the collections parameter because loadCamera falls back to the generic one and we use registry to calculate the WCS.
The quick fix here is to add collections to the queryDataIds method in the script layer.
Longer term we will need to consider adding a calibration collection parameter.
Attachments
Issue Links
- links to
Activity
Field | Original Value | New Value |
---|---|---|
Remote Link | This issue links to "Community Post (Web Link)" [ 29267 ] |
Description |
It seems that the define-visits command line is not respecting the collections parameter and so every single call to define-visits runs on every single "exposure" for that instrument.
This was noted on [a community post|https://community.lsst.org/t/define-visits-for-a-single-collection/5236/2] and looking at the code the {{queryDataIds}} is not constrained by the collection at all. The collection is passed to the DefineVisitsTask but is only used to retrieve the relevant camera (which means it's ignored and the default camera is returned). If registry is not used to work out the WCS the collection is used again to get the WCS for the specific raw. This implies that there are really two collections of interest. * The collection constraining the queryDataIds and associated with the butler.get of raw.wcs (if needed).. * The calibration collection used to locate the camera geometry. As currently implemented DefineVisitsTask is effectively ignoring the collections parameter because loadCamera falls back to the generic one and we use registry to calculate the WCS. The quick fix here is to add collections to the queryDataIds method in the script layer. Longer term we will need to consider adding a calibration collection parameter. |
It seems that the define-visits command line is not respecting the collections parameter and so every single call to define-visits runs on every single "exposure" for that instrument.
This was noted on [a community post|https://community.lsst.org/t/define-visits-for-a-single-collection/5236/2] and looking at the code the {{queryDataIds}} is not constrained by the collection at all. The collection is passed to the DefineVisitsTask but is only used to retrieve the relevant camera (which means it's ignored and the default camera is returned). If registry is not used to work out the WCS the collection is used again to get the WCS for the specific raw. This implies that there are really two collections of interest. * The collection constraining the queryDataIds and associated with the butler.get of raw.wcs (if needed). * The calibration collection used to locate the camera geometry. As currently implemented DefineVisitsTask is effectively ignoring the collections parameter because loadCamera falls back to the generic one and we use registry to calculate the WCS. The quick fix here is to add collections to the queryDataIds method in the script layer. Longer term we will need to consider adding a calibration collection parameter. |
Assignee | Tim Jenness [ tjenness ] |
Status | To Do [ 10001 ] | In Progress [ 3 ] |
Reviewers | Jim Bosch [ jbosch ] | |
Status | In Progress [ 3 ] | In Review [ 10004 ] |
Reviewers | Jim Bosch [ jbosch ] | Nate Pease [ npease ] |
Status | In Review [ 10004 ] | Reviewed [ 10101 ] |
Resolution | Done [ 10000 ] | |
Status | Reviewed [ 10101 ] | Done [ 10002 ] |
Jim Bosch Asking you to review for when you get back. I don't think it's a time critical ticket (although we have one user on community who needs it). It's only really a one line change. My main reason for asking you is that I'm a bit concerned about burning "raw" into the command as the dataset type that is associated with exposures that become visits. There is code in defineVisits that also assumes "raw" but we never use it (and I think we should remove the code for that completely because asking for raw.wcs is never going to be efficient option).