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’).

srcType{“primary”}

The type of simpeg.EM.NSEM.SrcNSEM to be used. It currently accepts only "primary".

Returns:
simpeg.electromagnetics.natural_source.sources.SrcNSEM

Natural source