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.Ediorwatex.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 towrite. -rotate: float, a rotate angle for Z if value is given.
- Returns:
Z β List interpolated impedance tensor Objects or
Noneif option is set towrite.- 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])