pyissm.tools.archive

This module contains functions to read and write ISSM archive files.

Functions

arch_read(filename, fieldname)

Read data from an ISSM archive file.

pyissm.tools.archive.arch_read(filename, fieldname)

Read data from an ISSM archive file.

Parameters:
  • filename (str) – Path to the ISSM archive file.

  • fieldname (str) – Name of the field to read from the archive.

Returns:

Data read from the specified field in the archive.

Return type:

np.ndarray

Raises:
  • FileNotFoundError – If the archive file does not exist.

  • KeyError – If the specified field is not found in the archive.

Examples

>>> data = arch_read('test101.arch', 'fieldname')