flopy 3.0.1__zip → 3.0.2__zip
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- flopy-3.0.2/PKG-INFO +148 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/__init__.py +1 -1
- {flopy-3.0.1 → flopy-3.0.2}/flopy/mbase.py +3 -3
- {flopy-3.0.1 → flopy-3.0.2}/flopy/utils/binaryfile.py +39 -35
- flopy-3.0.2/flopy/version.py +4 -0
- flopy-3.0.2/setup.py +30 -0
- flopy-3.0.1/PKG-INFO +0 -82
- flopy-3.0.1/flopy/version.py +0 -4
- flopy-3.0.1/setup.py +0 -93
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/__init__.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mf.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfaddoutsidefile.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfbas.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfbcf.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfbct.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfchd.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfde4.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfdis.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfdrn.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfevt.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfghb.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfgmg.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfhfb.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mflmt.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mflpf.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfmlt.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfmnw1.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfmnw2.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfmnwi.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfnwt.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfoc.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfpar.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfparbc.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfpbc.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfpcg.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfpcgn.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfpks.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfpval.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfrch.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfriv.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfsip.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfsms.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfsor.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfswi.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfswi2.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfswr1.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfupw.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfuzf1.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfwel.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modflow/mfzon.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modpath/__init__.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modpath/mp.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modpath/mpbas.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/modpath/mpsim.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/mt3d/__init__.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/mt3d/mt.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/mt3d/mtadv.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/mt3d/mtbtn.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/mt3d/mtdsp.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/mt3d/mtgcg.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/mt3d/mtphc.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/mt3d/mtrct.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/mt3d/mtssm.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/mt3d/mttob.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/seawat/__init__.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/seawat/swt.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/seawat/swtvdf.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/utils/__init__.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/utils/binaryhydmodfile.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/utils/binaryswrfile.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/utils/mfreadnam.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/utils/util_array.py +0 -0
- {flopy-3.0.1 → flopy-3.0.2}/flopy/utils/util_list.py +0 -0
flopy-3.0.2/PKG-INFO
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
Metadata-Version: 1.0
|
|
2
|
+
Name: flopy
|
|
3
|
+
Version: 3.0.2
|
|
4
|
+
Summary: FloPy is a Python package to create, run, and post-process MODFLOW-based models.
|
|
5
|
+
Home-page: https://github.com/modflowpy/flopy/
|
|
6
|
+
Author: Mark Bakker, Vincent Post, Chris Langevin, Joe Hughes, Jeremy White, Jeff Starn, Mike Fienen, and Alain Frances
|
|
7
|
+
Author-email: mark.bakker@tudelft.nl, vincent.post@flinders.edu.au, langevin@usgs.gov, jdhughes@usgs.gov, jwhite@usgs.gov, jjstarn@usgs.gov, mnfienen@usgs.gov, frances.alain@gmail.com
|
|
8
|
+
License: New BSD
|
|
9
|
+
Description: Introduction
|
|
10
|
+
------------
|
|
11
|
+
|
|
12
|
+
*FloPy3* includes support for MODFLOW-2000, MODFLOW-2005, and
|
|
13
|
+
MODFLOW-NWT. Other supported MODFLOW-based models include MODPATH
|
|
14
|
+
(version 6), MT3D and SEAWAT.
|
|
15
|
+
|
|
16
|
+
FloPy3 Changes
|
|
17
|
+
--------------
|
|
18
|
+
|
|
19
|
+
*FloPy3* is significantly different from *FloPy2* (hosted on
|
|
20
|
+
`googlecode <https://code.google.com/p/flopy/>`__). The main changes
|
|
21
|
+
are:
|
|
22
|
+
|
|
23
|
+
- *FloPy3* is fully zero-based. This means that layers, rows and
|
|
24
|
+
columns start counting at *zero*. The reason for this is consistency.
|
|
25
|
+
Arrays are zero-based by default in Python, so it was confusing to
|
|
26
|
+
have a mix.
|
|
27
|
+
- Input for packages that take *layer, row, column, data* input (like
|
|
28
|
+
the wel or ghb package) has changed and is much more flexible now.
|
|
29
|
+
See the notebook
|
|
30
|
+
`flopy3boundaries <http://nbviewer.ipython.org/github/modflowpy/flopy/blob/master/examples/basic/flopy3boundaries.ipynb>`__
|
|
31
|
+
- Support for use of EXTERNAL and OPEN/CLOSE array specifiers has been
|
|
32
|
+
improved.
|
|
33
|
+
- *load()* methods have been developed for all of the standard MODFLOW
|
|
34
|
+
packages and a few less used packages (*e.g.* SWI2).
|
|
35
|
+
- MODFLOW parameter support has been added to the *load()* methods.
|
|
36
|
+
MULT, PVAL, and ZONE packages are now supported and parameter data
|
|
37
|
+
are converted to arrays in the *load()* methods. MODFLOW parameters
|
|
38
|
+
are not supported in *write()* methods. MULT package FUNCTION and
|
|
39
|
+
EXPRESSION functionality are not currently supported.
|
|
40
|
+
|
|
41
|
+
Installation
|
|
42
|
+
------------
|
|
43
|
+
|
|
44
|
+
To install *FloPy3* type:
|
|
45
|
+
|
|
46
|
+
::
|
|
47
|
+
|
|
48
|
+
pip install flopy
|
|
49
|
+
|
|
50
|
+
To update *FloPy3* type:
|
|
51
|
+
|
|
52
|
+
::
|
|
53
|
+
|
|
54
|
+
pip install flopy --upgrade
|
|
55
|
+
|
|
56
|
+
To uninstall *FloPy3* type:
|
|
57
|
+
|
|
58
|
+
::
|
|
59
|
+
|
|
60
|
+
pip uninstall flopy
|
|
61
|
+
|
|
62
|
+
To install the bleeding edge version of *FloPy3* from the git repository
|
|
63
|
+
type:
|
|
64
|
+
|
|
65
|
+
::
|
|
66
|
+
|
|
67
|
+
pip install git+https://github.com/modflowpy/flopy.git
|
|
68
|
+
|
|
69
|
+
To update your version of *FloPy3* with the bleeding edge code from the
|
|
70
|
+
git repository type:
|
|
71
|
+
|
|
72
|
+
::
|
|
73
|
+
|
|
74
|
+
pip install git+https://github.com/modflowpy/flopy.git --upgrade
|
|
75
|
+
|
|
76
|
+
Documentation
|
|
77
|
+
-------------
|
|
78
|
+
|
|
79
|
+
Documentation for *FloPy3* is a work in progress. *FloPy3* code
|
|
80
|
+
documentation is available at:
|
|
81
|
+
|
|
82
|
+
- http://modflowpy.github.io/flopydoc/
|
|
83
|
+
|
|
84
|
+
Examples
|
|
85
|
+
--------
|
|
86
|
+
|
|
87
|
+
IPython Notebook Examples
|
|
88
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
89
|
+
|
|
90
|
+
The following IPython Notebooks contain example FloPy scripts for a
|
|
91
|
+
variety of models and FloPy features
|
|
92
|
+
|
|
93
|
+
Basic examples
|
|
94
|
+
^^^^^^^^^^^^^^
|
|
95
|
+
|
|
96
|
+
- The `lake
|
|
97
|
+
example <http://nbviewer.ipython.org/github/modflowpy/flopy/blob/master/examples/basic/lake_example.ipynb>`__,
|
|
98
|
+
a very simple *FloPy3* example of steady flow in a square model with
|
|
99
|
+
a fixed head cell in the middle (representing a lake) in a 10-layer
|
|
100
|
+
model.
|
|
101
|
+
- An overview of the options to enter *layer,row,column,data* values
|
|
102
|
+
for packages such as the wel and ghb packages is given in the
|
|
103
|
+
`flopy3boundaries <http://nbviewer.ipython.org/github/modflowpy/flopy/blob/master/examples/basic/flopy3boundaries.ipynb>`__
|
|
104
|
+
Notebook
|
|
105
|
+
- The `Henry
|
|
106
|
+
Problem <http://nbviewer.ipython.org/github/modflowpy/flopy/blob/master/examples/henry/henry.ipynb>`__,
|
|
107
|
+
a simple saltwater intrusion model developed with Flopy and run using
|
|
108
|
+
SEAWAT.
|
|
109
|
+
|
|
110
|
+
SWI2 examples
|
|
111
|
+
^^^^^^^^^^^^^
|
|
112
|
+
|
|
113
|
+
- `Example
|
|
114
|
+
1 <http://nbviewer.ipython.org/github/modflowpy/flopy/blob/master/examples/swi_examples/swiex1.ipynb>`__
|
|
115
|
+
of the SWI2 manual, simulating a rotating interface.
|
|
116
|
+
|
|
117
|
+
SWI2 Test Problems for *FloPy3*
|
|
118
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
119
|
+
|
|
120
|
+
A zip file containing *FloPy3* scripts for running and post-processing
|
|
121
|
+
the SWI2 Examples (examples 1 to 5) that are described in `Bakker et al.
|
|
122
|
+
(2013) <http://pubs.usgs.gov/tm/6a46/>`__ is available at:
|
|
123
|
+
|
|
124
|
+
- http://flopy.googlecode.com/svn/examples/SWI2ExampleProblems_flopy.zip
|
|
125
|
+
|
|
126
|
+
Note that examples 2 and 5 also include *FloPy3* scripts for running and
|
|
127
|
+
post-processing SEAWAT models.
|
|
128
|
+
|
|
129
|
+
Tutorials
|
|
130
|
+
~~~~~~~~~
|
|
131
|
+
|
|
132
|
+
A few simple *FloPy3* tutorials are available at:
|
|
133
|
+
|
|
134
|
+
- http://modflowpy.github.io/flopydoc/tutorials.html
|
|
135
|
+
|
|
136
|
+
MODFLOW Resources
|
|
137
|
+
~~~~~~~~~~~~~~~~~
|
|
138
|
+
|
|
139
|
+
- `MODFLOW and Related Programs <http://water.usgs.gov/ogw/modflow/>`__
|
|
140
|
+
- `Online guide for
|
|
141
|
+
MODFLOW-2000 <http://water.usgs.gov/nrp/gwsoftware/modflow2000/Guide/index.html>`__
|
|
142
|
+
- `Online guide for
|
|
143
|
+
MODFLOW-2005 <http://water.usgs.gov/ogw/modflow/MODFLOW-2005-Guide/>`__
|
|
144
|
+
- `Online guide for
|
|
145
|
+
MODFLOW-NWT <http://water.usgs.gov/ogw/modflow-nwt/MODFLOW-NWT-Guide/>`__
|
|
146
|
+
|
|
147
|
+
Platform: Windows
|
|
148
|
+
Platform: Mac OS-X
|
|
@@ -21,7 +21,7 @@ contribute.
|
|
|
21
21
|
"""
|
|
22
22
|
|
|
23
23
|
__name__ = 'flopy'
|
|
24
|
-
__author__ = 'Mark Bakker, Vincent Post, Chris Langevin, Joe Hughes, Jeremy White,
|
|
24
|
+
__author__ = 'Mark Bakker, Vincent Post, Chris Langevin, Joe Hughes, Jeremy White, Jeff Starn, Mike Fienen, and Alain Frances'
|
|
25
25
|
from version import __version__, __build__
|
|
26
26
|
|
|
27
27
|
#imports
|
|
@@ -89,13 +89,13 @@ class BaseModel(object):
|
|
|
89
89
|
p : Package object
|
|
90
90
|
|
|
91
91
|
"""
|
|
92
|
-
for pp in (self.packagelist):
|
|
92
|
+
for i, pp in enumerate(self.packagelist):
|
|
93
93
|
if pp.allowDuplicates:
|
|
94
94
|
continue
|
|
95
95
|
elif (isinstance(p, type(pp))):
|
|
96
96
|
print '****Warning -- two packages of the same type: ',type(p),type(pp)
|
|
97
|
-
print 'replacing existing Package...'
|
|
98
|
-
|
|
97
|
+
print 'replacing existing Package...'
|
|
98
|
+
self.packagelist[i] = p
|
|
99
99
|
return
|
|
100
100
|
if self.verbose:
|
|
101
101
|
print 'adding Package: ', p.name[0]
|
|
@@ -216,10 +216,6 @@ class BinaryLayerFile(object):
|
|
|
216
216
|
|
|
217
217
|
#read through the file and build the pointer index
|
|
218
218
|
self._build_index()
|
|
219
|
-
|
|
220
|
-
#allocate the value array
|
|
221
|
-
self.value = np.empty((self.nlay, self.nrow, self.ncol),
|
|
222
|
-
dtype=self.realtype)
|
|
223
219
|
return
|
|
224
220
|
|
|
225
221
|
|
|
@@ -280,10 +276,10 @@ class BinaryLayerFile(object):
|
|
|
280
276
|
for header in self.recordarray:
|
|
281
277
|
print header
|
|
282
278
|
return
|
|
283
|
-
|
|
284
|
-
def
|
|
279
|
+
|
|
280
|
+
def _get_data_array(self, kstp=0, kper=0, totim=0):
|
|
285
281
|
"""
|
|
286
|
-
|
|
282
|
+
Get the three dimensional data array for the
|
|
287
283
|
specified kstp and kper value or totim value.
|
|
288
284
|
|
|
289
285
|
"""
|
|
@@ -298,17 +294,19 @@ class BinaryLayerFile(object):
|
|
|
298
294
|
raise Exception('Data not found...')
|
|
299
295
|
|
|
300
296
|
#initialize head with nan and then fill it
|
|
301
|
-
|
|
297
|
+
data = np.empty((self.nlay, self.nrow, self.ncol),
|
|
298
|
+
dtype=self.realtype)
|
|
299
|
+
data[:, :, :] = np.nan
|
|
302
300
|
for idx in keyindices:
|
|
303
301
|
ipos = self.iposarray[idx]
|
|
304
302
|
ilay = self.recordarray['ilay'][idx]
|
|
305
303
|
if self.verbose:
|
|
306
304
|
print 'Byte position in file: {0}'.format(ipos)
|
|
307
305
|
self.file.seek(ipos, 0)
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
return
|
|
311
|
-
|
|
306
|
+
data[ilay - 1, :, :] = binaryread(self.file, self.realtype,
|
|
307
|
+
shape=(self.nrow, self.ncol))
|
|
308
|
+
return data
|
|
309
|
+
|
|
312
310
|
def get_times(self):
|
|
313
311
|
"""
|
|
314
312
|
Get a list of unique times in the file
|
|
@@ -329,11 +327,13 @@ class BinaryLayerFile(object):
|
|
|
329
327
|
----------
|
|
330
328
|
out : list of (kstp, kper) tuples
|
|
331
329
|
List of unique kstp, kper combinations in binary file. kstp and
|
|
332
|
-
kper values are presently one-based.
|
|
333
|
-
future.
|
|
330
|
+
kper values are presently one-based.
|
|
334
331
|
|
|
335
332
|
"""
|
|
336
|
-
|
|
333
|
+
kstpkper = []
|
|
334
|
+
for kstp, kper in self.kstpkper:
|
|
335
|
+
kstpkper.append((kstp - 1, kper - 1))
|
|
336
|
+
return kstpkper
|
|
337
337
|
|
|
338
338
|
def get_data(self, kstpkper=(0, 0), idx=None, totim=0, mflay=None):
|
|
339
339
|
"""
|
|
@@ -344,7 +344,8 @@ class BinaryLayerFile(object):
|
|
|
344
344
|
idx : int
|
|
345
345
|
The zero-based record number. The first record is record 0.
|
|
346
346
|
kstpkper : tuple of ints
|
|
347
|
-
A tuple containing the time step and stress period (kstp, kper)
|
|
347
|
+
A tuple containing the time step and stress period (kstp, kper).
|
|
348
|
+
These are zero-based kstp and kper values.
|
|
348
349
|
totim : float
|
|
349
350
|
The simulation time.
|
|
350
351
|
mflay : integer
|
|
@@ -367,13 +368,16 @@ class BinaryLayerFile(object):
|
|
|
367
368
|
--------
|
|
368
369
|
|
|
369
370
|
"""
|
|
371
|
+
# One-based kstp and kper for pulling out of recarray
|
|
372
|
+
kstp1 = kstpkper[0] + 1
|
|
373
|
+
kper1 = kstpkper[1] + 1
|
|
370
374
|
if idx is not None:
|
|
371
375
|
totim = self.recordarray['totim'][idx]
|
|
372
|
-
self.
|
|
376
|
+
data = self._get_data_array(kstp1, kper1, totim)
|
|
373
377
|
if mflay is None:
|
|
374
|
-
return
|
|
378
|
+
return data
|
|
375
379
|
else:
|
|
376
|
-
return
|
|
380
|
+
return data[mflay, :, :]
|
|
377
381
|
return
|
|
378
382
|
|
|
379
383
|
def get_alldata(self, mflay=None, nodata=-9999):
|
|
@@ -406,16 +410,12 @@ class BinaryLayerFile(object):
|
|
|
406
410
|
--------
|
|
407
411
|
|
|
408
412
|
"""
|
|
409
|
-
if mflay is None:
|
|
410
|
-
h = np.zeros((self.nlay,self.nrow,self.ncol),dtype=np.float)
|
|
411
|
-
else:
|
|
412
|
-
h = np.zeros((self.nrow,self.ncol),dtype=np.float)
|
|
413
413
|
rv = []
|
|
414
414
|
for totim in self.times:
|
|
415
|
-
h
|
|
415
|
+
h = self.get_data(totim=totim, mflay=mflay)
|
|
416
416
|
rv.append(h)
|
|
417
417
|
rv = np.array(rv)
|
|
418
|
-
rv[
|
|
418
|
+
rv[rv == nodata] = np.nan
|
|
419
419
|
return rv
|
|
420
420
|
|
|
421
421
|
def get_ts(self, idx):
|
|
@@ -648,7 +648,7 @@ class CellBudgetFile(object):
|
|
|
648
648
|
>>> import flopy.utils.binaryfile as bf
|
|
649
649
|
>>> cbb = bf.CellBudgetFile('mymodel.cbb')
|
|
650
650
|
>>> cbb.list_records()
|
|
651
|
-
>>> rec = cbb.get_data(kstpkper=(
|
|
651
|
+
>>> rec = cbb.get_data(kstpkper=(0,0), text='RIVER LEAKAGE')
|
|
652
652
|
|
|
653
653
|
"""
|
|
654
654
|
|
|
@@ -822,11 +822,14 @@ class CellBudgetFile(object):
|
|
|
822
822
|
----------
|
|
823
823
|
out : list of (kstp, kper) tuples
|
|
824
824
|
List of unique kstp, kper combinations in binary file. kstp and
|
|
825
|
-
kper values are
|
|
825
|
+
kper values are zero-based. This may change in the
|
|
826
826
|
future.
|
|
827
827
|
|
|
828
828
|
"""
|
|
829
|
-
|
|
829
|
+
kstpkper = []
|
|
830
|
+
for kstp, kper in self.kstpkper:
|
|
831
|
+
kstpkper.append(kstp - 1, kper - 1)
|
|
832
|
+
return kstpkper
|
|
830
833
|
|
|
831
834
|
def get_data(self, idx=None, kstpkper=None, totim=None, text=None,
|
|
832
835
|
verbose=False, full3D=False):
|
|
@@ -838,7 +841,8 @@ class CellBudgetFile(object):
|
|
|
838
841
|
idx : int
|
|
839
842
|
The zero-based record number. The first record is record 0.
|
|
840
843
|
kstpkper : tuple of ints
|
|
841
|
-
A tuple containing the time step and stress period (kstp, kper)
|
|
844
|
+
A tuple containing the time step and stress period (kstp, kper).
|
|
845
|
+
The kstp and kper values are zero based.
|
|
842
846
|
totim : float
|
|
843
847
|
The simulation time.
|
|
844
848
|
text : str
|
|
@@ -894,16 +898,16 @@ class CellBudgetFile(object):
|
|
|
894
898
|
raise Exception(errmsg)
|
|
895
899
|
|
|
896
900
|
if kstpkper is not None:
|
|
897
|
-
|
|
898
|
-
|
|
901
|
+
kstp1 = kstpkper[0] + 1
|
|
902
|
+
kper1 = kstpkper[1] + 1
|
|
899
903
|
if text is None:
|
|
900
904
|
select_indices = np.where(
|
|
901
|
-
(self.recordarray['kstp'] ==
|
|
902
|
-
(self.recordarray['kper'] ==
|
|
905
|
+
(self.recordarray['kstp'] == kstp1) &
|
|
906
|
+
(self.recordarray['kper'] == kper1))
|
|
903
907
|
else:
|
|
904
908
|
select_indices = np.where(
|
|
905
|
-
(self.recordarray['kstp'] ==
|
|
906
|
-
(self.recordarray['kper'] ==
|
|
909
|
+
(self.recordarray['kstp'] == kstp1) &
|
|
910
|
+
(self.recordarray['kper'] == kper1) &
|
|
907
911
|
(self.recordarray['text'] == text16))
|
|
908
912
|
|
|
909
913
|
elif totim is not None:
|
flopy-3.0.2/setup.py
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import sys
|
|
3
|
+
from distutils.core import setup
|
|
4
|
+
|
|
5
|
+
# To use:
|
|
6
|
+
# python setup.py bdist --format=wininst
|
|
7
|
+
|
|
8
|
+
from flopy import __version__, __name__, __author__
|
|
9
|
+
|
|
10
|
+
long_description = ''
|
|
11
|
+
|
|
12
|
+
try:
|
|
13
|
+
import pypandoc
|
|
14
|
+
long_description = pypandoc.convert('README.md', 'rst')
|
|
15
|
+
except:
|
|
16
|
+
pass
|
|
17
|
+
|
|
18
|
+
setup(name=__name__,
|
|
19
|
+
description='FloPy is a Python package to create, run, and post-process MODFLOW-based models.',
|
|
20
|
+
long_description=long_description,
|
|
21
|
+
author=__author__,
|
|
22
|
+
author_email='mark.bakker@tudelft.nl, vincent.post@flinders.edu.au, langevin@usgs.gov, jdhughes@usgs.gov, jwhite@usgs.gov, jjstarn@usgs.gov, mnfienen@usgs.gov, frances.alain@gmail.com',
|
|
23
|
+
url='https://github.com/modflowpy/flopy/',
|
|
24
|
+
license='New BSD',
|
|
25
|
+
platforms='Windows, Mac OS-X',
|
|
26
|
+
setup_requires=['numpy>=1.9'],
|
|
27
|
+
install_requires=['numpy>=1.9'],
|
|
28
|
+
packages=['flopy','flopy.modflow','flopy.modpath','flopy.mt3d','flopy.seawat','flopy.utils'],
|
|
29
|
+
# use this version ID if .svn data cannot be found
|
|
30
|
+
version=__version__ )
|
flopy-3.0.1/PKG-INFO
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 1.0
|
|
2
|
-
Name: flopy
|
|
3
|
-
Version: 3.0.1
|
|
4
|
-
Summary: FloPy is a Python package to create, run, and post-process MODFLOW-based models.
|
|
5
|
-
Home-page: https://code.google.com/p/flopy/
|
|
6
|
-
Author: Mark Bakker, Vincent Post, Chris Langevin, Joe Hughes, Jeremy White, Alain Frances, and Jeffrey Starn
|
|
7
|
-
Author-email: mark.bakker@tudelft.nl, vincent.post@flinders.edu.au, langevin@usgs.gov, jdhughes@usgs.gov, jwhite@usgs.gov, frances.alain@gmail.com
|
|
8
|
-
License: New BSD
|
|
9
|
-
Description: Introduction
|
|
10
|
-
-----------------------------------------------
|
|
11
|
-
|
|
12
|
-
*FloPy* includes support for MODFLOW-2000, MODFLOW-2005, and MODFLOW-NWT. Other supported MODFLOW-based models include MODPATH (version 6), MT3D and SEAWAT.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
Installation
|
|
16
|
-
-----------------------------------------------
|
|
17
|
-
|
|
18
|
-
To install *FloPy* type:
|
|
19
|
-
|
|
20
|
-
``pip install flopy``
|
|
21
|
-
|
|
22
|
-
To update *FloPy* type:
|
|
23
|
-
|
|
24
|
-
``pip install flopy --update``
|
|
25
|
-
|
|
26
|
-
To uninstall *FloPy* type:
|
|
27
|
-
|
|
28
|
-
``pip uninstall flopy``
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
Documentation
|
|
32
|
-
-----------------------------------------------
|
|
33
|
-
|
|
34
|
-
Documentation for *FloPy* is a work in progress. *FloPy* code documentation is available at:
|
|
35
|
-
|
|
36
|
-
`<https://flopy.googlecode.com/svn/sphinx/_build/html/index.html>`_
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
Examples
|
|
40
|
-
-----------------------------------------------
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
MODFLOW Example
|
|
44
|
-
++++++++++++++++++++++++++++++++++
|
|
45
|
-
|
|
46
|
-
A *FloPy* script to create a simple MODFLOW example (**Lake Example**) with a square domain and constant heads in the center of the domain, which represent a lake, is available at:
|
|
47
|
-
|
|
48
|
-
`<https://code.google.com/p/flopy/source/browse/examples/lake_example.html>`_
|
|
49
|
-
|
|
50
|
-
A iPython Notebook for the **Lake Example** problem is also available at:
|
|
51
|
-
|
|
52
|
-
`<http://nbviewer.ipython.org/url/flopy.googlecode.com/svn/example_notebooks/lake_example.ipynb>`_
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
SWI2 Test Problems
|
|
56
|
-
++++++++++++++++++++++++++++++++++
|
|
57
|
-
|
|
58
|
-
A zip file containing *FloPy* scripts for running and post-processing the SWI2 Examples (examples 1 to 5) that are described in `Bakker et al. (2013) <http://pubs.usgs.gov/tm/6a46/>`_ is available at:
|
|
59
|
-
|
|
60
|
-
`<http://flopy.googlecode.com/svn/examples/SWI2ExampleProblems_flopy.zip>`_
|
|
61
|
-
|
|
62
|
-
Note that examples 2 and 5 also include *FloPy* scripts for running and post-processing SEAWAT models.
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
Tutorials
|
|
66
|
-
-----------------------------------------------
|
|
67
|
-
|
|
68
|
-
A few simple *FloPy* tutorials are available at:
|
|
69
|
-
|
|
70
|
-
`<https://flopy.googlecode.com/svn/sphinx/_build/html/tutorials.html>`_
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
MODFLOW Resources
|
|
74
|
-
-----------------------------------------------
|
|
75
|
-
|
|
76
|
-
+ `MODFLOW and Related Programs <http://water.usgs.gov/ogw/modflow/>`_
|
|
77
|
-
+ `Online guide for MODFLOW-2000 <http://water.usgs.gov/nrp/gwsoftware/modflow2000/Guide/index.html>`_
|
|
78
|
-
+ `Online guide for MODFLOW-2005 <http://water.usgs.gov/ogw/modflow/MODFLOW-2005-Guide/>`_
|
|
79
|
-
+ `Online guide for MODFLOW-NWT <http://water.usgs.gov/ogw/modflow-nwt/MODFLOW-NWT-Guide/>`_',
|
|
80
|
-
|
|
81
|
-
Platform: Windows
|
|
82
|
-
Platform: Mac OS-X
|
flopy-3.0.1/flopy/version.py
DELETED
flopy-3.0.1/setup.py
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import sys
|
|
2
|
-
from distutils.core import setup
|
|
3
|
-
|
|
4
|
-
# To use:
|
|
5
|
-
# python setup.py bdist --format=wininst
|
|
6
|
-
|
|
7
|
-
from flopy import __version__, __name__, __author__
|
|
8
|
-
|
|
9
|
-
long_description = \
|
|
10
|
-
"""Introduction
|
|
11
|
-
-----------------------------------------------
|
|
12
|
-
|
|
13
|
-
*FloPy* includes support for MODFLOW-2000, MODFLOW-2005, and MODFLOW-NWT. Other supported MODFLOW-based models include MODPATH (version 6), MT3D and SEAWAT.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
Installation
|
|
17
|
-
-----------------------------------------------
|
|
18
|
-
|
|
19
|
-
To install *FloPy* type:
|
|
20
|
-
|
|
21
|
-
``pip install flopy``
|
|
22
|
-
|
|
23
|
-
To update *FloPy* type:
|
|
24
|
-
|
|
25
|
-
``pip install flopy --update``
|
|
26
|
-
|
|
27
|
-
To uninstall *FloPy* type:
|
|
28
|
-
|
|
29
|
-
``pip uninstall flopy``
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
Documentation
|
|
33
|
-
-----------------------------------------------
|
|
34
|
-
|
|
35
|
-
Documentation for *FloPy* is a work in progress. *FloPy* code documentation is available at:
|
|
36
|
-
|
|
37
|
-
`<https://flopy.googlecode.com/svn/sphinx/_build/html/index.html>`_
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
Examples
|
|
41
|
-
-----------------------------------------------
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
MODFLOW Example
|
|
45
|
-
++++++++++++++++++++++++++++++++++
|
|
46
|
-
|
|
47
|
-
A *FloPy* script to create a simple MODFLOW example (**Lake Example**) with a square domain and constant heads in the center of the domain, which represent a lake, is available at:
|
|
48
|
-
|
|
49
|
-
`<https://code.google.com/p/flopy/source/browse/examples/lake_example.html>`_
|
|
50
|
-
|
|
51
|
-
A iPython Notebook for the **Lake Example** problem is also available at:
|
|
52
|
-
|
|
53
|
-
`<http://nbviewer.ipython.org/url/flopy.googlecode.com/svn/example_notebooks/lake_example.ipynb>`_
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
SWI2 Test Problems
|
|
57
|
-
++++++++++++++++++++++++++++++++++
|
|
58
|
-
|
|
59
|
-
A zip file containing *FloPy* scripts for running and post-processing the SWI2 Examples (examples 1 to 5) that are described in `Bakker et al. (2013) <http://pubs.usgs.gov/tm/6a46/>`_ is available at:
|
|
60
|
-
|
|
61
|
-
`<http://flopy.googlecode.com/svn/examples/SWI2ExampleProblems_flopy.zip>`_
|
|
62
|
-
|
|
63
|
-
Note that examples 2 and 5 also include *FloPy* scripts for running and post-processing SEAWAT models.
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
Tutorials
|
|
67
|
-
-----------------------------------------------
|
|
68
|
-
|
|
69
|
-
A few simple *FloPy* tutorials are available at:
|
|
70
|
-
|
|
71
|
-
`<https://flopy.googlecode.com/svn/sphinx/_build/html/tutorials.html>`_
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
MODFLOW Resources
|
|
75
|
-
-----------------------------------------------
|
|
76
|
-
|
|
77
|
-
+ `MODFLOW and Related Programs <http://water.usgs.gov/ogw/modflow/>`_
|
|
78
|
-
+ `Online guide for MODFLOW-2000 <http://water.usgs.gov/nrp/gwsoftware/modflow2000/Guide/index.html>`_
|
|
79
|
-
+ `Online guide for MODFLOW-2005 <http://water.usgs.gov/ogw/modflow/MODFLOW-2005-Guide/>`_
|
|
80
|
-
+ `Online guide for MODFLOW-NWT <http://water.usgs.gov/ogw/modflow-nwt/MODFLOW-NWT-Guide/>`_',
|
|
81
|
-
"""
|
|
82
|
-
|
|
83
|
-
setup(name=__name__,
|
|
84
|
-
description='FloPy is a Python package to create, run, and post-process MODFLOW-based models.',
|
|
85
|
-
long_description=long_description,
|
|
86
|
-
author=__author__,
|
|
87
|
-
author_email='mark.bakker@tudelft.nl, vincent.post@flinders.edu.au, langevin@usgs.gov, jdhughes@usgs.gov, jwhite@usgs.gov, frances.alain@gmail.com',
|
|
88
|
-
url='https://code.google.com/p/flopy/',
|
|
89
|
-
license='New BSD',
|
|
90
|
-
platforms='Windows, Mac OS-X',
|
|
91
|
-
packages=['flopy','flopy.modflow','flopy.modpath','flopy.mt3d','flopy.seawat','flopy.utils'],
|
|
92
|
-
# use this version ID if .svn data cannot be found
|
|
93
|
-
version=__version__ )
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|