read_single
- abstract SingleMeasurementPerFileDataset.read_single(p, fields='all')[source]
Read a single measurement from a single file.
Shall take one argument (a path object) and return a tuple with (header, measurement). The header shall contain information like latitude, longitude, time.
- Parameters:
p (pathlib.Path) – path to file
fields (Iterable[str] or str) – What fields to return. See
Dataset.read_period()
for details.