watex.methods.em.Processing.interpolate_z#

static Processing.interpolate_z(z_or_edis_obj_list, /, **kws)[source]#

Interpolate z and return new interpolated z objects

Interpolated frequencies is useful to have all frequencies into the same scale.

New in version 0.2.0.

Parameters:
  • z_or_edis_obj_list (list of watex.edi.Edi or watex.externals.z.Z) – A collection of EDI- or Impedances tensors objects.

  • kws (dict,) – Additional keywords to export EDI or rotate EDI/Z. - "option": export EDI if set to write. - rotate : float, a rotate angle for Z if value is given.

Returns:

Z – List interpolated impedance tensor Objects or None if option is set to write.

Return type:

list of watex.externals.z.Z

Examples

>>> import watex as wx
>>> sedis = wx.fetch_data ('huayuan', samples = 12 ,
                                 return_data =True , key='raw')
>>> p = wx.EMProcessing ().fit(sedis)
>>> ff = [ len(ediobj.Z._freq)  for ediobj in p.ediObjs_]
[53, 52, 53, 55, 54, 55, 56, 51, 51, 53, 55, 53]
>>> Zcol = p.interpolate_z (sedis)
>>> ffi = [ len(z.freq) for z in Zcol ]
[56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56]
>>> # visualize seven Z values at the first site component xy
>>> p.ediObjs_[0].Z.z[:, 0, 1][:7]
array([ 4165.6 +2070.13j,  7072.81+6892.41j,  8725.84+5874.15j,
       14771.8 -2831.28j, 21243.7 -6802.36j,  6381.48+3411.65j,
        5927.85+5074.27j])
>>> Zcol [0].z[:, 0, 1 ][:7]
array([ 4165.6 +2070.13j,  4165.6 +2070.13j,  7072.81+6892.41j,
        8725.84+5874.15j, 14771.8 -2831.28j, 21243.7 -6802.36j,
        6381.48+3411.65j])