Skip to content

Convert MODFLOW MULT package expressions and functions into arrays

Notifications You must be signed in to change notification settings

jlarsen-usgs/elucidateMULT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Convert MODFLOW MULT package expressions and functions into arrays

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages