pelagos_py.utils.file_probe#

pelagos_py.utils.file_probe.probe_file(file_path, logger=None)[source]#

{variable: {"units", "numeric", "all_nan", "median"?}} for every variable in file_path, or None if it can’t be read. Cached on (path, mtime) so repeated validation of the same file is free.

pelagos_py.utils.file_probe.present(probe, name)[source]#

Whether name is in the file with real (not all-NaN) data.