Open wmwv opened 2 years ago
@jchiang87 I'm using queryDatasets
instead of queryDataIds
, but now I don't get the tract anymore in the returned data_ref.dataId
. How can I recover the tract
information? The registry clearly knows.
for data_ref in butler.registry.queryDatasets(
datasetType="calexp",
collections=collection,
instrument="LSSTCam-imSim",
where=f"tract={tract} and skymap='DC2'",
):
I tried expanding it but neither of the following work:
data_ref.expanded(data_ref.dataId).full
butler.registry.expandDataId(data_ref.dataId).full
This is something I occasionally try to figure out, then give up after doing the obvious things. I haven't yet run into a case where I absolutely need the info that I think should be available in the expanded dataref, so I haven't tried to follow up. I guess this is a case to ask on slack in the appropriate #dm
channel. #dm-newbies
?
I posted on Community
https://community.lsst.org/t/how-do-get-tract-patch-from-querydatasets-of-calexp/6467
Make a template with the Gen3 Run3 DDF processing.
Some reference places to start: