katsdpimager.metadata module

Create partial metadata.json for katsdptransfer

katsdpimager.metadata.make_metadata(dataset: katdal.dataset.DataSet, targets: Sequence[katpoint.target.Target], channels: int, description: str)Dict[str, object]
katsdpimager.metadata.target_mask(dataset: katdal.dataset.DataSet, target: katpoint.target.Target)numpy.ndarray

Get boolean mask of dumps where the target is being tracked.

katsdpimager.metadata.time_on_target(dataset: katdal.dataset.DataSet, target: katpoint.target.Target)astropy.units.quantity.Quantity

Seconds spent tracking the target.

This might be a slight under-report, because dumps that span the boundaries are marked as not tracking by katdal, but may have partial data that was nevertheless usable.