read_starlink#
- lsst.images.ndf.read_starlink(cls: type[T], path: str | ParseResult | ResourcePath | Path) T#
Reconstruct an
ImageorMaskedImagefrom a schema-less Starlink NDF.Files written by this package carry a
/MORE/LSST/JSONtree and are read through the genericlsst.images.serialization.read/lsst.images.serialization.open. A Starlink-produced NDF has no such tree and therefore no schema, so it cannot go through that path; this function auto-detects a minimal recognised-component set (DATA_ARRAY,VARIANCE,QUALITY,MORE.FITS) instead.WCSis reconstructed when possible; other components are logged-and-dropped.Parameters#
- cls
Expected return type;
ImageandMaskedImageare the only types the auto-detect path can produce.- path
File path or
lsst.resources.ResourcePathExpression.
Returns#
- object
The deserialized
clsinstance.
Raises#
- ArchiveReadError
If the file has an LSST JSON tree (use the generic
readinstead) or no recognisedDATA_ARRAYcomponent.