save_data#

empymod.io.save_data(fname, data, **kwargs)[source]#

Save results from empymod.

Parameters:
fnamestr

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

  • .txt: Uses numpy to store data to a plain text file.

  • .json: Uses json to store inputs to a plain text file.

datandarray

The output from an empymod modelling routine. Note: You must set squeeze=False when calling the modelling routine, to obtain a 3D array (in case any of src, rec, or freqtime has only one entry).

infostr, default: “”

Information (one-line) to put into the header.

kwargsoptional

Passed through to the saving method.