So if I just ask for visit
and detector
, I don’t get tract
:
(this is true for either “calexp” or “visitSummary”)
for data_id in butler.registry.queryDataIds(
["visit", "detector"],
instrument="LSSTCam-imSim",
datasets="calexp",
collections=collection,
).limit(10):
print(data_id.full)
produces
{band: 'g', instrument: 'LSSTCam-imSim', detector: 139, physical_filter: 'g_sim_1.4', visit_system: 1, visit: 242014}
{band: 'g', instrument: 'LSSTCam-imSim', detector: 95, physical_filter: 'g_sim_1.4', visit_system: 1, visit: 242014}
{band: 'g', instrument: 'LSSTCam-imSim', detector: 107, physical_filter: 'g_sim_1.4', visit_system: 1, visit: 242014}
{band: 'g', instrument: 'LSSTCam-imSim', detector: 103, physical_filter: 'g_sim_1.4', visit_system: 1, visit: 242014}
{band: 'g', instrument: 'LSSTCam-imSim', detector: 96, physical_filter: 'g_sim_1.4', visit_system: 1, visit: 242014}
{band: 'g', instrument: 'LSSTCam-imSim', detector: 92, physical_filter: 'g_sim_1.4', visit_system: 1, visit: 242014}
{band: 'g', instrument: 'LSSTCam-imSim', detector: 148, physical_filter: 'g_sim_1.4', visit_system: 1, visit: 242014}
{band: 'g', instrument: 'LSSTCam-imSim', detector: 181, physical_filter: 'g_sim_1.4', visit_system: 1, visit: 242014}
{band: 'g', instrument: 'LSSTCam-imSim', detector: 147, physical_filter: 'g_sim_1.4', visit_system: 1, visit: 242014}
{band: 'g', instrument: 'LSSTCam-imSim', detector: 114, physical_filter: 'g_sim_1.4', visit_system: 1, visit: 242014}
but if I asked for tract
as well, queryDataIds
will go get it for me:
for data_id in butler.registry.queryDataIds(
["tract", "visit", "detector"],
instrument="LSSTCam-imSim",
datasets="calexp",
collections=collection,
).limit(10):
print(data_id.full)
produces
{band: 'g', instrument: 'LSSTCam-imSim', skymap: 'DC2', detector: 139, physical_filter: 'g_sim_1.4', tract: 5062, visit_system: 1, visit: 242014}
{band: 'g', instrument: 'LSSTCam-imSim', skymap: 'DC2', detector: 139, physical_filter: 'g_sim_1.4', tract: 5063, visit_system: 1, visit: 242014}
{band: 'g', instrument: 'LSSTCam-imSim', skymap: 'DC2', detector: 139, physical_filter: 'g_sim_1.4', tract: 5062, visit_system: 1, visit: 242014}
{band: 'g', instrument: 'LSSTCam-imSim', skymap: 'DC2', detector: 139, physical_filter: 'g_sim_1.4', tract: 5063, visit_system: 1, visit: 242014}
{band: 'g', instrument: 'LSSTCam-imSim', skymap: 'DC2', detector: 95, physical_filter: 'g_sim_1.4', tract: 5063, visit_system: 1, visit: 242014}
{band: 'g', instrument: 'LSSTCam-imSim', skymap: 'DC2', detector: 95, physical_filter: 'g_sim_1.4', tract: 5063, visit_system: 1, visit: 242014}