watex.utils.coreutils.is_erp_series#
- watex.utils.coreutils.is_erp_series(data, dipolelength=None)[source]#
Validate the data series whether is ERP data.
The data should be the resistivity values with the one of the following property index names
resistivityorrho. Will raises error if not detected. If a`dipolelength` is given, a data should include each station positions values.- Parameters
data (pandas Series object) – Object of resistivity values
dipolelength (float) – Distance of dipole during the whole survey line. If it is is not given , the station location should be computed and filled using the default value of the dipole. The default value is set to
10 meters.
- Returns
A dataframe of the property indexes such as
['station', 'easting','northing', 'resistivity'].
- Raises
If name does not match the resistivity column name. –
Examples
>>> import numpy as np >>> import pandas as pd >>> from watex.utils.coreutils imprt is_erp_series >>> data = pd.Series (np.abs (np.random.rand (42)), name ='res') >>> data = is_erp_series (data) >>> data.columns ... Index(['station', 'easting', 'northing', 'resistivity'], dtype='object') >>> data = pd.Series (np.abs (np.random.rand (42)), name ='NAN') >>> data = _is_erp_series (data) ... ResistivityError: Unable to detect the resistivity column: 'NAN'.