22
33[ ![ DOI] ( https://zenodo.org/badge/DOI/10.5281/zenodo.1229051.svg )] ( https://doi.org/10.5281/zenodo.1229051 )
44[ ![ PyPI version] ( https://badge.fury.io/py/welltestpy.svg )] ( https://badge.fury.io/py/welltestpy )
5- [ ![ Build Status] ( https://travis-ci.org/GeoStat-Framework/welltestpy.svg?branch=master )] ( https://travis-ci.org/GeoStat-Framework/welltestpy )
6- [ ![ Documentation Status] ( https://readthedocs.org/projects/welltestpy/badge/?version=latest )] ( https://geostat-framework.readthedocs.io/projects/welltestpy/en/latest/?badge=latest )
5+ [ ![ Build Status] ( https://travis-ci.com/GeoStat-Framework/welltestpy.svg?branch=master )] ( https://travis-ci.com/GeoStat-Framework/welltestpy )
6+ [ ![ Coverage Status] ( https://coveralls.io/repos/github/GeoStat-Framework/welltestpy/badge.svg?branch=master )] ( https://coveralls.io/github/GeoStat-Framework/welltestpy?branch=master )
7+ [ ![ Documentation Status] ( https://readthedocs.org/projects/welltestpy/badge/?version=stable )] ( https://geostat-framework.readthedocs.io/projects/welltestpy/en/stable/?badge=stable )
78[ ![ Code style: black] ( https://img.shields.io/badge/code%20style-black-000000.svg )] ( https://github.com/ambv/black )
89
910<p align =" center " >
@@ -27,71 +28,20 @@ You can install the latest version with the following command:
2728You can find the documentation under [ geostat-framework.readthedocs.io] [ doc_link ] .
2829
2930
30- ### Example 1: Create a Campaign containing a pumping test
31+ ### Example 1: A campaign containing a pumping test
3132
32- In the following a simple pumping test is created with artificial drawdown data
33- generated by the Theis-solution .
33+ In the following, we will take a look at an artificial pumping test campaign,
34+ that is stored in a file called ` Cmp_UFZ-campaign.cmp ` .
3435
3536``` python
36- # -*- coding: utf-8 -*-
37- import numpy as np
3837import welltestpy as wtp
39- import anaflow as ana
40-
41- # ## create the field-site and the campaign
42- field = wtp.data.FieldSite(name = " UFZ" , coordinates = [51.353839 , 12.431385 ])
43- campaign = wtp.data.Campaign(name = " UFZ-campaign" , fieldsite = field)
44-
45- # ## add 4 wells to the campaign
46- campaign.add_well(name = " well_0" , radius = 0.1 , coordinates = (0.0 , 0.0 ))
47- campaign.add_well(name = " well_1" , radius = 0.1 , coordinates = (1.0 , - 1.0 ))
48- campaign.add_well(name = " well_2" , radius = 0.1 , coordinates = (2.0 , 2.0 ))
49- campaign.add_well(name = " well_3" , radius = 0.1 , coordinates = (- 2.0 , - 1.0 ))
50-
51- # ## generate artificial drawdown data with the Theis solution
52- rate = - 1e-4
53- time = np.geomspace(10 , 7200 , 10 )
54- transmissivity = 1e-4
55- storage = 1e-4
56- rad = [
57- campaign.wells[" well_0" ].radius, # well radius of well_0
58- campaign.wells[" well_0" ] - campaign.wells[" well_1" ], # distance 0-1
59- campaign.wells[" well_0" ] - campaign.wells[" well_2" ], # distance 0-2
60- campaign.wells[" well_0" ] - campaign.wells[" well_3" ], # distance 0-3
61- ]
62- drawdown = ana.theis(
63- time = time,
64- rad = rad,
65- storage = storage,
66- transmissivity = transmissivity,
67- rate = rate,
68- )
69-
70- # ## create a pumping test at well_0
71- pumptest = wtp.data.PumpingTest(
72- name = " well_0" ,
73- pumpingwell = " well_0" ,
74- pumpingrate = rate,
75- description = " Artificial pump test with Theis" ,
76- )
77-
78- # ## add the drawdown observation at the 4 wells
79- pumptest.add_transient_obs(" well_0" , time, drawdown[:, 0 ])
80- pumptest.add_transient_obs(" well_1" , time, drawdown[:, 1 ])
81- pumptest.add_transient_obs(" well_2" , time, drawdown[:, 2 ])
82- pumptest.add_transient_obs(" well_3" , time, drawdown[:, 3 ])
83-
84- # ## add the pumping test to the campaign
85- campaign.addtests(pumptest)
86- # ## optionally make the test steady
87- # campaign.tests["well_0"].make_steady()
88-
89- # ## plot the well constellation and a test overview
38+
39+ # create the field-site and the campaign
40+ campaign = wtp.load_campaign(" Cmp_UFZ-campaign.cmp" )
41+
42+ # plot the well constellation and a test overview
9043campaign.plot_wells()
9144campaign.plot()
92-
93- # ## save the whole campaign
94- campaign.save()
9545```
9646
9747#### This will give the following plots:
@@ -104,8 +54,6 @@ campaign.save()
10454<img src =" https://raw.githubusercontent.com/GeoStat-Framework/welltestpy/master/docs/source/pics/01_pumptest.png " alt =" Pumptest " width =" 600px " />
10555</p >
10656
107- And the campaign is stored to a file called ` Cmp_UFZ-campaign.cmp `
108-
10957
11058### Example 2: Estimate transmissivity and storativity
11159
@@ -115,7 +63,7 @@ transmissivity and storativity.
11563``` python
11664import welltestpy as wtp
11765
118- campaign = wtp.data. load_campaign(" Cmp_UFZ-campaign.cmp" )
66+ campaign = wtp.load_campaign(" Cmp_UFZ-campaign.cmp" )
11967estimation = wtp.estimate.Theis(" Estimate_theis" , campaign, generate = True )
12068estimation.run()
12169```
@@ -158,12 +106,12 @@ welltestpy.tools # Subpackage with miscellaneous tools
158106
159107## Requirements
160108
161- - [ NumPy >= 1.13.0 ] ( https://www.numpy.org )
162- - [ SciPy >= 0.19.1 ] ( https://www.scipy.org )
163- - [ Pandas >= 0.20.3 ] ( https://pandas.pydata.org )
164- - [ Matplotlib >= 2 .0.2 ] ( https://matplotlib.org )
165- - [ AnaFlow ] ( https://github.com/GeoStat-Framework/AnaFlow )
166- - [ SpotPy ] ( https://github.com/thouska/spotpy )
109+ - [ NumPy >= 1.14.5 ] ( https://www.numpy.org )
110+ - [ SciPy >= 1.1.0 ] ( https://www.scipy.org )
111+ - [ Pandas >= 0.23.2 ] ( https://pandas.pydata.org )
112+ - [ AnaFlow >= 1 .0.0 ] ( https://github.com/GeoStat-Framework/AnaFlow )
113+ - [ SpotPy >= 1.5.0 ] ( https://github.com/thouska/spotpy )
114+ - [ Matplotlib >= 3.0.0 ] ( https://matplotlib.org )
167115
168116
169117## Contact
173121
174122## License
175123
176- [ MIT] [ license_link ] © 2018-2019
124+ [ MIT] [ license_link ] © 2018-2020
177125
178126[ license_link ] : https://github.com/GeoStat-Framework/welltestpy/blob/master/LICENSE
179- [ doc_link ] : https://geostat-framework .readthedocs.io/projects/welltestpy/en/latest/
127+ [ doc_link ] : https://welltestpy .readthedocs.io
0 commit comments