SimPEG.electromagnetics.natural_source.survey.Data.fromRecArray#

classmethod Data.fromRecArray(recArray, srcType='primary')[source]#

Class method that reads in a numpy record array to NSEMdata object.

Parameters:
recArraynumpy.ndarray

Record array with the data. Has to have (‘freq’,’x’,’y’,’z’) columns and some (‘zxx’,’zxy’,’zyx’,’zyy’,’tzx’,’tzy’)

srcTypestr, default: “primary”

The type of SimPEG.EM.NSEM.SrcNSEM to be used. Either “primary” or “total”

Returns:
SimPEG.electromagnetics.natural_source.sources.SrcNSEM

Natural source