A Python library for preprocessing hydrometric and soil data, performing spatial analysis, and generating NetCDF files for use in hydrological modeling. The package includes utilities for streamflow file preparation, soil data processing, spatial analysis, and NetCDF file generation.
- Documentation: [https://mesh-scripts-pylib.readthedocs.io/en/latest/index.html]
You can install the package using pip directly from GitHub:
pip install git+https://github.com/MESH-Model/MESH-Scripts-PyLib.gitThis library provides several utilities that streamline data preprocessing for hydrological models like MESH. The key functionalities include:
- Extraction and processing of streamflow data from Canadian and US hydrometric sources.
- Soil data loading, merging, and cleaning from CSV files.
- Flagging non-contributing areas in spatial analysis using GeoDataFrames.
- Aggregation of basin and river networks with custom thresholds.
- Writing processed soil data to NetCDF format.
- Generating MESH parameters netcdf files that contians geophysical parameters
- Plotting vector based drainage database and outputs
- Generating MESH Class and MESH Hydrologi ini files from database for selected land units
- Visualization of MESH model outputs, pariculalry the netcdf outpus for vector based model runs