hexwatershed_tutorial

A short course for the HexWatershed model

https://github.com/changliao1025/hexwatershed_tutorial

Science Score: 57.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 8 DOI reference(s) in README
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (16.7%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

A short course for the HexWatershed model

Basic Info
  • Host: GitHub
  • Owner: changliao1025
  • License: bsd-2-clause
  • Language: Jupyter Notebook
  • Default Branch: main
  • Size: 7.05 MB
Statistics
  • Stars: 3
  • Watchers: 1
  • Forks: 1
  • Open Issues: 5
  • Releases: 0
Created almost 4 years ago · Last pushed over 1 year ago
Metadata Files
Readme License Citation

README.md

Binder (right click to open in a new window)

Introduction

This is a short course for the HexWatershed model.

HexWatershed: a mesh independent flow direction model for hydrologic models.

For full details of the model, please refer to our papers and the HexWatershed documentation (https://hexwatershed.readthedocs.io/).

Requirements

You need internet connection to install the through the Python Pip or Conda (recommended) system.

You can use the Visual Studio Code to run the Python examples.

You can use QGIS to visualize some of the model results.

Step-by-step instruction

  1. Install the HexWatershed Python package through Conda
  • conda create --name hexwatershed_tutorial python numpy gdal cartopy libgdal-arrow-parquet pyearth pyflowline

  • conda activate hexwatershed_tutorial

  • conda install -c conda-forge hexwatershed

  1. Download this tutorial

git clone https://github.com/changliao1025/hexwatershed_tutorial.git

  1. Run the examples within the examples or notebooks folder
  • Edit the template configuration json file to match with your data set paths.
  1. View and visualize model output files.
  • View normal json file using any text editor such as VS Code.

  • Visualize geojson files using QGIS.

FAQ

  1. Why my conda cannot create environment?

Turn off the VPN or bypass it.

  1. Why import GDAL failed?

Consider using the conda-forge channel.

  1. proj related issue https://github.com/OSGeo/gdal/issues/1546,

Make sure you correctly set up the PROJ_LIB

Because the GDAL library is used by this project and the proj library is often not configured correctly automatically. On Linux or Mac, you can set it up using the .bash_profile such as:

Anaconda:

export PROJ_LIB=/people/user/.conda/envs/hexwatershed_tutorial/share/proj

Miniconda:

export PROJ_LIB=/opt/miniconda3/envs/hexwatershed_tutorial/share/proj

  1. What if my model doesn't produce the correct or expected answer?

Answer: There are several hidden assumptions within the workflow. For example, if you provide the DEM and river network for two different regions, the program won't be able to tell you that. A visual inspection of your data is important.

Optionally, you can turn on the iFlag_debug option in the configuration file to output the intermediate files.

Learn more

  1. JIGSAW is the mesh generator that is used to generator the variable resolution meshes.

  2. Other meshes such as DGGrid will be supported.

  3. The depression filling algorithm is modified based on the RichDEM priority-flood depression filling method.

  4. HexWatershed can be run at both regional and global scale, see this Youtube clip for example: Global scale HexWatershed simulation

References

  • Liao, Chang, Tian Zhou, Donghui Xu, Richard Barnes, Gautam Bisht, Hong-Yi Li, Zeli Tan, et al. (02/2022AD) 2022. “Advances In Hexagon Mesh-Based Flow Direction Modeling”. Advances In Water Resources 160. Elsevier BV: 104099. https://doi.org/10.1016/j.advwatres.2021.104099.

  • Liao, C., Tesfa, T., Duan, Z., & Leung, L. R. (2020). Watershed delineation on a hexagonal mesh grid. Environmental Modelling & Software, 128, 104702. https://doi.org/10.1016/j.envsoft.2020.104702

  • Liao. C. (2022). Pyflowline: a mesh independent river network generator for hydrologic models. Zenodo. https://doi.org/10.5281/zenodo.6407299

  • Liao. C. (2022). HexWatershed: a mesh independent flow direction model for hydrologic models (0.1.1). Zenodo. https://doi.org/10.5281/zenodo.6425881

Owner

  • Name: Chang Liao
  • Login: changliao1025
  • Kind: user
  • Location: Richland, WA
  • Company: Pacific Northwest National Laboratory

工欲善其事,必先利其器。

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
  - family-names: Liao
    given-names: Chang
    orcid: https://orcid.org/0000-0002-7348-8858  

title: "HexWatershed: a mesh-independent flow direction for hydrologic models"
version: 0.1.22
doi: 
date-released: 2022-03-31

GitHub Events

Total
Last Year