Convert MODFLOW MULT package expressions and functions into arrays
- Numpy
- FloPy
Download the package and open a command prompt or anaconda prompt
cd to the elucidateMult directory (where setup.py is located) and run
pip install -e .
import emult
import os
import matplotlib.pyplot as plt
ws = "./MULT/"
mult = "SVIHM_v3.MUL"
mlt = emult.ModflowMlt.load(os.path.join(ws, mult),
nrow=976, ncol=272, ext_unit_dict={})
# attributes are set dynamically based on mult array names!
hk2 = mlt.hk_lay2
plt.imshow(hk2, interpolation="None")
plt.show()
All external arrays defined in the MULT package file must have their path defined relative to the user's python script location.
See the SVHIM.py and the example mult package file in the examples directory
https://github.com/jlarsen-usgs/elucidateMULT/tree/master/examples