addVisitInfoToCatTable#

lsst.ts.wep.task.addVisitInfoToCatTable(exposure, donutCat)#

Add visit info from the exposure object to the catalog QTable metadata. This should include all information we will need downstream in the WEP / donut_viz tasks that would otherwise require loading VisitInfo from the butler.

Parameters:
  • exposure (lsst.afw.image.Exposure) – Image with donut sources that go in to the accompanying catalog.

  • donutCat (astropy.table.QTable) – Donut catalog for given exposure.

Returns:

Catalog with relevant exposure metadata added to catalog metadata.

Return type:

astropy.table.QTable