Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 1.08 KB

README.md

File metadata and controls

42 lines (32 loc) · 1.08 KB

elucidateMULT

Convert MODFLOW MULT package expressions and functions into arrays

Requirements

  • Numpy
  • FloPy

Installation

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 .

Example usage

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()

example

Note

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