welltestpy.data.testslib¶
welltestpy subpackage providing flow datastructures for tests on a fieldsite.
The following classes and functions are provided
|
General class for a well based test. |
|
Class for a pumping test. |
-
class
PumpingTest
(name, pumpingwell, pumpingrate, observations=None, aquiferdepth=1.0, aquiferradius=inf, description='Pumpingtest', timeframe=None)[source]¶ Bases:
welltestpy.data.testslib.Test
Class for a pumping test.
This is a class for a pumping test on a field site. It has a name, a descrition, a timeframe and a pumpingwell string.
- Parameters
name (
str
) – Name of the test.pumpingwell (
str
) – Pumping well of the test.pumpingrate (
float
orVariable
) – Pumping rate of at the pumping well. If a float is given, it is assumed to be given inm^3/s
.observations (
dict
, optional) – Observations made within the pumping test. The dict-keys are the well names of the observation wells or the pumpingwell. Values need to be an instance ofObservation
Default:None
aquiferdepth (
float
orVariable
, optional) – Aquifer depth at the field site. Can also be used to store the saturated thickness of the aquifer. If a float is given, it is assumed to be given inm
. Default:1.0
aquiferradius (
float
orVariable
, optional) – Aquifer radius ot the field site. If a float is given, it is assumed to be given inm
. Default:inf
description (
str
, optional) – Description of the test. Default:"Pumpingtest"
timeframe (
str
, optional) – Timeframe of the test. Default:None
- Attributes
aquiferdepth
Variable
: aquifer depth or saturated thickness.aquiferradius
float
: aquifer radius at the field site.constant_rate
bool
: state if this is a constant rate test.depth
float
: aquifer depth or saturated thickness.observations
dict
: observations made at the field site.observationwells
pumpingrate
float
: pumping rate variable at the pumping well.radius
float
: aquifer radius at the field site.rate
float
: pumping rate at the pumping well.testtype
str
: String containing the test type.wells
Methods
add_observations
(obs)Add some specified observations.
add_steady_obs
(well, observation[, description])Add steady drawdown observations.
add_transient_obs
(well, time, observation[, …])Add transient drawdown observations.
correct_observations
([aquiferdepth, wells, …])Correct observations with the selected method.
del_observations
(obs)Delete some specified observations.
diagnostic_plot
(observation_well, **kwargs)Make a diagnostic plot.
make_steady
([time])Convert the pumping test to a steady state test.
plot
(wells[, exclude, fig, ax])Generate a plot of the pumping test.
save
([path, name])Save a pumping test to file.
state
([wells])Get the state of observation.
-
add_steady_obs
(well, observation, description='Steady State Drawdown observation')[source]¶ Add steady drawdown observations.
-
add_transient_obs
(well, time, observation, description='Transient Drawdown observation')[source]¶ Add transient drawdown observations.
-
correct_observations
(aquiferdepth=None, wells=None, method='cooper_jacob')[source]¶ Correct observations with the selected method.
- Parameters
Notes
This will be used by the Campaign class.
-
del_observations
(obs)[source]¶ Delete some specified observations.
This will delete observations from the pumping test. You can give a list of observations or a single observation by name.
-
diagnostic_plot
(observation_well, **kwargs)[source]¶ Make a diagnostic plot.
- Parameters
observation_well (
str
) – The observation well for the data to make the diagnostic plot.
Notes
This will be used by the Campaign class.
-
plot
(wells, exclude=None, fig=None, ax=None, **kwargs)[source]¶ Generate a plot of the pumping test.
This will plot the pumping test on the given figure axes.
- Parameters
Notes
This will be used by the Campaign class.
-
save
(path='', name=None)[source]¶ Save a pumping test to file.
This writes the variable to a csv file.
- Parameters
Notes
The file will get the suffix
".tst"
.
-
class
Test
(name, description='no description', timeframe=None)[source]¶ Bases:
object
General class for a well based test.
This is a class for a well based test on a field site. It has a name, a descrition and a timeframe string.
- Parameters
- Attributes
Methods
plot
(wells[, exclude, fig, ax])Generate a plot of the pumping test.