Skip to content

Commit

Permalink
add modules
Browse files Browse the repository at this point in the history
  • Loading branch information
earthai-tech committed Sep 15, 2022
1 parent 108c523 commit bab832a
Show file tree
Hide file tree
Showing 36 changed files with 9,176 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# .readthedocs.yml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

build:
image: latest

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/source/conf.py


python:
version: 3.8

requirements_file: requirements.txt
Binary file added data/erp/l10_gbalo.xlsx
Binary file not shown.
Binary file added data/erp/l11_gbalo.xlsx
Binary file not shown.
Binary file added data/erp/l2_gbalo.xlsx
Binary file not shown.
Binary file added data/erp/test_anomaly.xlsx
Binary file not shown.
46 changes: 46 additions & 0 deletions data/erp/testsafedata.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
pk,x,y,rho
0,790752,1092750,1101
10,790747,1092758,1147
20,790743,1092763,1345
30,790738,1092770,1369
40,790733,1092776.5,1406
50,790729,1092783,1543
60,790724,1092789.5,1480
70,790720,1092796,1517
80,790715,1092802.5,1754
90,790711,1092809,1591
100,790284,1093124,1260
110,790281,1093118,1200
120,790277,1093110,1160
130,790270,1093104,1280
140,790265,1093097,1100
150,790260,1093092,1410
160,790254,1093086,1680
170,790248,1093079,1580
180,790243,1093073,950
190,790237,1093067,1750
200,790231,1093061,1320
210,790224,1093054,1370
220,790218,1093049,1390
230,790211,1093043,1700
240,790206,1093037,1230
250,790200,1093031,1480
260,790194,1093027,1400
270,790187,1093022,800
280,790181,1093016,1660
290,790175,1093011,1930
300,790210,1093010,1680
310,790214,1093016,1300
320,790218,1093026,930
330,790221,1093033,1460
340,790224,1093040,1450
350,790228,1093049,950
360,790232,1093057,500
370,790234,1093063,1300
380,790237,1093071,1630
390,790240,1093078,1400
400,790244,1093085,1670
410,790246,1093094,1540
420,790250,1093101,930
430,790254,1093108,1130
440,790255,1093116,1380
Binary file added data/erp/testsafedata.xlsx
Binary file not shown.
46 changes: 46 additions & 0 deletions data/erp/testunsafedata.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
x,stations,resapprho,NORTH
790752,40,1101,1092750
790747,70,1147,1092758
790743,100,1345,1092763
790738,130,1369,1092770
790733,160,1406,1092776.5
790729,190,1543,1092783
790724,220,1480,1092789.5
790720,250,1517,1092796
790715,280,1754,1092802.5
790711,310,1591,1092809
790284,340,1260,1093124
790281,370,1200,1093118
790277,400,1160,1093110
790270,430,1280,1093104
790265,460,1100,1093097
790260,490,1410,1093092
790254,520,1680,1093086
790248,550,1580,1093079
790243,580,950,1093073
790237,610,1750,1093067
790231,640,1320,1093061
790224,670,1370,1093054
790218,700,1390,1093049
790211,730,1700,1093043
790206,760,1230,1093037
790200,790,1480,1093031
790194,820,1400,1093027
790187,850,800,1093022
790181,880,1660,1093016
790175,910,1930,1093011
790210,940,1680,1093010
790214,970,1300,1093016
790218,1000,930,1093026
790221,1030,1460,1093033
790224,1060,1450,1093040
790228,1090,950,1093049
790232,1120,500,1093057
790234,1150,1300,1093063
790237,1180,1630,1093071
790240,1210,1400,1093078
790244,1240,1670,1093085
790246,1270,1540,1093094
790250,1300,930,1093101
790254,1330,1130,1093108
790255,1360,1380,1093116
Binary file added data/erp/testunsafedata.xlsx
Binary file not shown.
46 changes: 46 additions & 0 deletions data/erp/testunsafedata_extra.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
x,stations,resapprho,NORTH,oppp ,add1
790752,40,1101,1092750,12,0.25
790747,70,1147,1092758,15,0.89
790743,100,1345,1092763,18,0.1
790738,130,1369,1092770,21,0.263333333
790733,160,1406,1092776.5,24,0.188333333
790729,190,1543,1092783,27,0.113333333
790724,220,1480,1092789.5,30,0.038333333
790720,250,1517,1092796,33,-0.036666667
790715,280,1754,1092802.5,36,-0.111666667
790711,310,1591,1092809,39,-0.186666667
790284,340,1260,1093124,42,-0.261666667
790281,370,1200,1093118,45,-0.336666667
790277,400,1160,1093110,48,-0.411666667
790270,430,1280,1093104,51,-0.486666667
790265,460,1100,1093097,54,-0.561666667
790260,490,1410,1093092,57,-0.636666667
790254,520,1680,1093086,60,-0.711666667
790248,550,1580,1093079,63,-0.786666667
790243,580,950,1093073,66,-0.861666667
790237,610,1750,1093067,69,-0.936666667
790231,640,1320,1093061,72,-1.011666667
790224,670,1370,1093054,75,-1.086666667
790218,700,1390,1093049,78,-1.161666667
790211,730,1700,1093043,81,-1.236666667
790206,760,1230,1093037,84,-1.311666667
790200,790,1480,1093031,87,-1.386666667
790194,820,1400,1093027,90,-1.461666667
790187,850,800,1093022,93,-1.536666667
790181,880,1660,1093016,96,-1.611666667
790175,910,1930,1093011,99,-1.686666667
790210,940,1680,1093010,102,-1.761666667
790214,970,1300,1093016,105,-1.836666667
790218,1000,930,1093026,108,-1.911666667
790221,1030,1460,1093033,111,-1.986666667
790224,1060,1450,1093040,114,-2.061666667
790228,1090,950,1093049,117,-2.136666667
790232,1120,500,1093057,120,-2.211666667
790234,1150,1300,1093063,123,-2.286666667
790237,1180,1630,1093071,126,-2.361666667
790240,1210,1400,1093078,129,-2.436666667
790244,1240,1670,1093085,132,-2.511666667
790246,1270,1540,1093094,135,-2.586666667
790250,1300,930,1093101,138,-2.661666667
790254,1330,1130,1093108,141,-2.736666667
790255,1360,1380,1093116,144,-2.811666667
33 changes: 33 additions & 0 deletions data/ves/ves_gbalo.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
AB/2,MN/2,SE1,SE2,SE3,SE4
1,0.4,943,294,1125,457
2,0.4,1179,502,1345,582
3,0.4,1103,572,1213,558
4,0.4,1062,641,1007,421
3,1,1121,453,1130,407
4,1,1102,517,1077,387
5,1,1380,485,927,351
6,1,706,454,902,223
8,1,484,327,878,213
10,1,420,259,731,203
12,1,357,170,540,181
14,1,300,123,451,175
16,1,258,89,407,162
18,1,211,61,331,152
20,1,159,45,321,122
24,1,100,31,230,86
20,5,168,97,206,72
24,5,103,63,188,70
28,5,75,46,102,63
32,5,63,45,98,51
36,5,60,43,87,46
40,5,68,44,81,35
45,5,77,44,78,48
50,5,82,48,65,59
55,5,94,46,54,66
60,5,100,62,67,72
55,10,71,56,79,83
60,10,80,70,88,85
70,10,95,74,101,92
80,10,108,82,112,96
90,10,119,103,120,101
100,10,142,95,156,110
Binary file added data/ves/ves_gbalo.xlsx
Binary file not shown.
Binary file added data/ves/ves_gbalo_unique.xlsx
Binary file not shown.
47 changes: 47 additions & 0 deletions kalfeat/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# -*- coding: utf-8 -*-
# author-email: <[email protected]>
# Licence: GPL-3.0
"""
A package for fast detecting the geo-electrical features
==========================================================
`kalfeat`_ (stands for `Kouadio et al.`_ features detection) is designed for
predicting the groundwater flow rate from the geology and DC resistivity data
is designed to bring a piece solution in the detection of the geo-electrical
features which are known as the foremost criteria to select the right location
before any drilling locations. The aim of kalfeat is twofold::
1. to minimize the rate of unsuccessful drillings after the geological
survey during CDWS and save money from geophysical and drilling companies.
2. to maximize the number of boreholes intended for the populations and
encourage the partners to indirectly solve the problem of water scarcity.
.. _Kouadio et al. : https://doi.org/10.1029/2021wr031623
.. _kalfeat: https://github.com/WEgeophysics/kalfeat/
"""
import os
import sys

__version__='0.1.0'
__author__='Kouadio Laurent'

from . import (
_kalfeatlog,
methods,
tools,
decorators,
documentation,
exceptions,
property,
sklearn,
typing,
__main__,

)

if __name__ =='__main__' or __package__ is None:
sys.path.append( os.path.dirname(os.path.dirname(__file__)))
sys.path.insert(0, os.path.dirname(__file__))
__package__ ='kalfeat'


12 changes: 12 additions & 0 deletions kalfeat/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import os
import sys

if __name__ =='__main__' or __package__ is None:
sys.path.append( os.path.dirname(os.path.dirname(__file__)))
sys.path.insert(0, os.path.dirname(__file__))
__package__ ='watex'
# another way to say the sys.path so to force use the relative import:
# sys.path(os.path.dirname(os.path.dirname(__file__)))
# root_folder = r'{}'.format(pathlib.Path(
# pathlib.Path(__file__).parent.absolute().parent))

Loading

0 comments on commit bab832a

Please sign in to comment.