welltestpy.data.campaignlib¶
Welltestpy subpackage providing flow datastructures for field-campaigns.
The following classes and functions are provided
FieldSite (name[, description, coordinates]) |
Class for a field site. |
Campaign (name[, fieldsite, wells, tests, …]) |
Class for a well based campaign. |
-
class
FieldSite
(name, description='Field site', coordinates=None)[source]¶ Bases:
object
Class for a field site.
This is a class for a field site. It has a name and a descrition.
Parameters: Attributes: coordinates
numpy.ndarray
: Coordinates of the field site.info
str
: Info about the field site.pos
numpy.ndarray
: Position of the field site.
Methods
save
([path, name])Save a field site to file. -
save
(path='', name=None)[source]¶ Save a field site to file.
This writes the field site to a csv file.
Parameters: Notes
The file will get the suffix
".fds"
.
-
coordinates
¶ Coordinates of the field site.
Type: numpy.ndarray
-
pos
¶ Position of the field site.
Type: numpy.ndarray
-
class
Campaign
(name, fieldsite='Fieldsite', wells=None, tests=None, timeframe=None, description='Welltest campaign')[source]¶ Bases:
object
Class for a well based campaign.
This is a class for a well based test campaign on a field site. It has a name, a descrition and a timeframe.
Parameters: - name (
str
) – Name of the campaign. - fieldsite (
str
orVariable
, optional) – The field site. Default:"Fieldsite"
- wells (
dict
, optional) – The wells within the fild site. Keys are the well names and values are an instance ofWell
. Default:None
- wells – The tests within the campaign. Keys are the test names and values
are an instance of
Test
. Default:None
- timeframe (
str
, optional) – Timeframe of the campaign. Default:None
- description (
str
, optional) – Description of the field site. Default:"Welltest campaign"
Attributes: Methods
add_well
(name, radius, coordinates[, …])Add a single well to the campaign. addtests
(tests)Add some specified tests. addwells
(wells)Add some specified wells. deltests
(tests)Delete some specified tests. delwells
(wells)Delete some specified wells. plot
([select_tests])Generate a plot of the tests within the campaign. plot_wells
(**kwargs)Generate a plot of the wells within the campaign. save
([path, name])Save the campaign to file. -
add_well
(name, radius, coordinates, welldepth=1.0, aquiferdepth=None)[source]¶ Add a single well to the campaign.
Parameters: - name (
str
) – Name of the Variable. - radius (
Variable
orfloat
) – Value of the Variable. - coordinates (
Variable
ornumpy.ndarray
) – Value of the Variable. - welldepth (
Variable
orfloat
, optional) – Depth of the well. Default: 1.0 - aquiferdepth (
Variable
orfloat
, optional) – Depth of the aquifer at the well. Default:"None"
- name (
-
addtests
(tests)[source]¶ Add some specified tests.
This will add tests to the campaign.
Parameters: tests ( dict
) – Tests to be added.
-
addwells
(wells)[source]¶ Add some specified wells.
This will add wells to the campaign.
Parameters: wells ( dict
) – Wells to be added.
-
deltests
(tests)[source]¶ Delete some specified tests.
This will delete tests from the campaign. You can give a list of tests or a single test by name.
Parameters: tests ( list
ofstr
orstr
) – Tests to be deleted.
-
delwells
(wells)[source]¶ Delete some specified wells.
This will delete wells from the campaign. You can give a list of wells or a single well by name.
Parameters: wells ( list
ofstr
orstr
) – Wells to be deleted.
-
plot
(select_tests=None, **kwargs)[source]¶ Generate a plot of the tests within the campaign.
This will plot an overview of the tests within the campaign.
Parameters: - select_tests (
list
, optional) – Tests that should be plotted. If None, all will be displayed. Default:None
- **kwargs – Keyword-arguments forwarded to
campaign_plot
- select_tests (
-
plot_wells
(**kwargs)[source]¶ Generate a plot of the wells within the campaign.
This will plot an overview of the wells within the campaign.
Parameters: **kwargs – Keyword-arguments forwarded to campaign_well_plot
.
- name (