A python package for model visualization.
Project description
ModVis
A python package for model visualization.
- Free software: MIT license
- Documentation: https://pinshuai.github.io/modvis
Features
- Visualize model outputs from hydrologic models including ATS, PFLOTRAN, and etc.
- Plot unstructured meshes with variables such as groundwater table, saturation, and evapotranspiration.
- Evaluate model performance using different metrics.
Installation
ModVis
is available on PyPI. To install, run the following command:
pip install modvis
If you want to run the latest version of the code, you can install from git:
pip install -U git+https://github.com/pinshuai/modvis.git
Alternatively, if you want to debug and test the code, you can clone the repository and install from source:
git clone https://github.com/pinshuai/modvis.git
cd modvis
pip install -e .
Quick start
To plot variables on the surface mesh:
import modvis.ats_xdmf as xdmf
import modvis.plot_vis_file as pv
# import visdump file
visfile = xdmf.VisFile(model_dir='.', domain='surface', load_mesh=True)
# plot surface ponded depth
pv.plot_surface_data(visfile, var_name="surface-ponded_depth", log=True,
time_slice="2019-05-01", vmin=0.01, vmax=4)
Examples
Jupyter notebook examples can be found under examples/notebooks
Credits
This work is supported by LDRD funding from PNNL.
This package was created with Cookiecutter and the giswqs/pypackage project template.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
modvis-0.0.8.tar.gz
(51.6 kB
view details)
File details
Details for the file modvis-0.0.8.tar.gz
.
File metadata
- Download URL: modvis-0.0.8.tar.gz
- Upload date:
- Size: 51.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc1b5fb5ffb340f94653ed6e13dbce263c26f98078b5379849a16a5e3ef268e4 |
|
MD5 | 511267e41bf7bb38a2eb3781b214476c |
|
BLAKE2b-256 | 996b5c6b938f13fb59801f0991a65e66a8867eea77b59612d5ed1796a3412a51 |