bsrn.dataset.BSRNDataset.from_file#
- classmethod BSRNDataset.from_file(path)[source]#
Parse a BSRN
.dat.gzstation-to-archive file and return a fully validatedBSRNDataset.解析 BSRN
.dat.gz台站存档文件并返回完整校验的BSRNDataset。- Parameters:
path (str or Path) – Path to the
.dat.gzfile (filename formatXXXMMYY.dat.gz)..dat.gz文件路径(文件名格式XXXMMYY.dat.gz)。- Return type:
- Raises:
FileNotFoundError – If path does not exist.
ValueError – If the filename cannot be parsed or no LR0100 block is found.