River network for Earth Science
Project description
Overview
This repository is a tutorial to demonstrate the capability and workflow of the PyFlowline model. In this demo, we will use the Model for Prediction Across Scales (MPAS) mesh (see below) as an example.
Pyflowline
The Pyflowline model is a Python package to generate conceptual river networks for hydrologic models. PyFlowline is mesh independent, meaning you can apply it to almost any mesh system including the tradition rectangle mesh, Triangulated Irregular Network (TIN) mesh and MPAS mesh.
Installation
The full deployment of PyFlowline is still under development. It can be installed through either Pythin PyPI or the Conda system, which is recommended because of the dependency packages.
As of right now, you can install PyFlowline using the following steps:
-
install the dependency packages through Conda
-
install PyFlowline through the PyPI: pip install pyflowline
-
(Optional) Install the visualization package through Conda: conda install -c conda-forge
-
(Optional) Install the Python JupterNote to run this tutorial.
Usage
We use the notebook.py example file under the the notebook directory to showcase the model workflow. An additional Python package is required for the visualization purpose.
The follow steps are recommended:
- Open the terminal or use your preferred Conda application to create a new Conda environment: conda create --name pyflowline python=3.8
- Activate the newly crated conda environment conda activate pyflowline
- Install dependency packages using conda conda install -c conda-forge numpy conda install -c conda-forge shapely conda install -c conda-forge netCDF4 conda install -c conda-forge gdal
- Install PyFlowline pip install pyflowline
- Install and setup the Python Jupyter Notebook
- Install the visualization Package
conda install -c conda-forge matplotlib
conda install -c conda-forge cartopy conda install -c conda-forge geopandas - Clone this repository and set this environment as the workspace environment
- Navigate to the notebook and run it in your preferred Python IDE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pyflowline-0.1.13-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a08863c3f343411571db4344b3c3b9a1345dca69dd92dbc5b8847ba36657c513 |
|
MD5 | 7df86d6e1180a21cda1241e040b562fc |
|
BLAKE2b-256 | dda3ee1b972198b4c4128297eb7daa3fc5ef5d50257c9832bac1b892bd950aa6 |