load#

emg3d.io.load(fname, **kwargs)[source]#

Load simulations, surveys, meshes, models, fields, and more from disk.

Load data and de-serialize known instances.

Parameters
fnamestr

File name with absolute or relative path including suffix, which defines the used data format. Implemented are currently:

  • '.npz': NumPy-binary;

  • '.h5': HDF5-binary (requires h5py);

  • '.json': JSON plain text file.

verbint, default: 1

Verbose if 1, if 0 silent; if -1 it returns the info as string instead of printing it.

Returns
outdict

A dictionary containing the data stored in fname;

infostr, returned if verb<0

Info-string.