parse_science_filename¶
- hermes_core.util.util.parse_science_filename(filepath: str) dict [source]¶
Parses a science filename into its consitutient properties (instrument, mode, test, time, level, version, descriptor).
- Parameters:
filepath (
str
) – Fully specificied filepath of an input file- Returns:
result (
dict
) – A dictionary with each property.- Raises:
ValueError – If the file’s mission name is not “HERMES”:
ValueError – If the file’s instreument name is not one of the HERMES instruments:
ValueError – If the data level >0 for packet files:
ValueError – If not a CDF File: