save_data#, data, **kwargs)[source]#

Save results from empymod.


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.


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.


Passed through to the saving method.