makeVisitRecordFromObsInfo

lsst.obs.base.makeVisitRecordFromObsInfo(obsInfo, universe, *, region=None)

Construct a visit DimensionRecord from astro_metadata_translator.ObservationInfo.

Parameters:
obsInfo : astro_metadata_translator.ObservationInfo

A ObservationInfo object corresponding to the exposure.

universe : DimensionUniverse

Set of all known dimensions.

region : lsst.sphgeom.Region, optional

Spatial region for the visit.

Returns:
record : DimensionRecord

A record containing visit metadata, suitable for insertion into a Registry.