Skip to content

Commit

Permalink
fix basin path issue
Browse files Browse the repository at this point in the history
  • Loading branch information
changliao1025 committed Mar 10, 2022
1 parent 627c019 commit 009784b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,10 @@ As of right now, you can install PyFlowline using the following steps:

1. install the dependency packages through Conda


2. install PyFlowline through the PyPI:
pip install pyflowline

3. (Optional) Install the visualization package through Conda:

4. (Optional) Install the Python JupterNote to run this tutorial.
3. (Optional) Install the Python JupterNote to run this tutorial.


# Usage
Expand Down Expand Up @@ -55,6 +52,17 @@ The follow steps are recommended:

7. Navigate to the notebook and run it in your preferred Python IDE.

Because of the Python package dependency issue, the visulization should use a different environment or using the QGIS.

# Acknowledgement

This work was supported by the Earth System Model Development program areas of the U.S. Department of Energy, Office of Science, Office of Biological and Environmental Research as part of the multi-program, collaborative Integrated Coastal Modeling (ICoM) project. The data used for model simulations can be downloaded through the USGS website (\url{https://www.usgs.gov/national-hydrography}). The Pyflowline model can be accessed through the Python Package Index service (\url{https://pypi.org/project/pyflowline/}).

# Citation

* 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. doi: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



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def pyflowline_generate_basin_template_configuration_json_file(sFilename_basins_

def pyflowline_generate_template_configuration_json_file(sFilename_json, \
sWorkspace_input, sWorkspace_output, iFlag_standalone_in=None, \
iFlag_use_mesh_dem_in=None, iFlag_use_shapefile_extent_in=None, iCase_index_in=None, dResolution_degree_in = None, dResolution_meter_in = None, sDate_in = None, sMesh_type_in = None, sModel_in = None):
iFlag_use_mesh_dem_in=None, iFlag_use_shapefile_extent_in=None, iCase_index_in=None, dResolution_degree_in = None, dResolution_meter_in = None, sDate_in = None, sMesh_type_in = None, sModel_in = None):
"""generate pyflowline config template file
Args:
Expand Down Expand Up @@ -169,7 +169,7 @@ def pyflowline_generate_template_configuration_json_file(sFilename_json, \



aBasin = pyflowline_generate_basin_template_configuration_json_file(sFilename_basins_json, nBasin, sWorkspace_input, sWorkspace_output)
aBasin = pyflowline_generate_basin_template_configuration_json_file(sFilename_basins_json, nBasin, sWorkspace_input, oModel.sWorkspace_output)

oModel.aBasin = aBasin
oModel.sFilename_basins = sFilename_basins_json
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
AUTHOR = "Chang Liao"
AUTHOR_EMAIL = "[email protected]"
URL = "https://github.com/changliao1025/pyflowline"
VERSION = "0.1.15"
VERSION = "0.1.16"
REQUIRES_PYTHON = ">=3.8.0"
KEYWORDS = "Earth Science"

Expand Down

0 comments on commit 009784b

Please sign in to comment.