项目作者: jlarsen-usgs

项目描述 :
Convert MODFLOW MULT package expressions and functions into arrays
高级语言: Python
项目地址: git://github.com/jlarsen-usgs/elucidateMULT.git
创建时间: 2019-06-24T17:48:21Z
项目社区:https://github.com/jlarsen-usgs/elucidateMULT

开源协议:

下载


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

  1. pip install -e .

Example usage

  1. import emult
  2. import os
  3. import matplotlib.pyplot as plt
  4. ws = "./MULT/"
  5. mult = "SVIHM_v3.MUL"
  6. mlt = emult.ModflowMlt.load(os.path.join(ws, mult),
  7. nrow=976, ncol=272, ext_unit_dict={})
  8. # attributes are set dynamically based on mult array names!
  9. hk2 = mlt.hk_lay2
  10. plt.imshow(hk2, interpolation="None")
  11. 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