LSSTDESC / td-dia

Difference Image Analysis work for the Time Domain Working Group
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Make a tutorial notebook for making templates with Gen3 Run3 DDF #1

Open wmwv opened 2 years ago

wmwv commented 2 years ago

Make a template with the Gen3 Run3 DDF processing.

  1. [ ] Show how to make a template for one patch
  2. [ ] Discuss how to select images
  3. [ ] Discuss how to scale up.

Some reference places to start:

wmwv commented 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
jchiang87 commented 2 years ago

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?

wmwv commented 2 years ago

I posted on Community

https://community.lsst.org/t/how-do-get-tract-patch-from-querydatasets-of-calexp/6467