CUAHSI / cuahsi-stacks

This is a compilation of docker images that follow the SPEC pattern.
GNU General Public License v3.0
2 stars 10 forks source link

Create environment for the HydroLearn Physical Hydrology course #35

Open Castronova opened 1 year ago

Castronova commented 1 year ago

Belize Lane uses this course each year and recent TauDEM and GDAL conflicts make this not possible in the scientific environment.

Create a new environment with an older version of Python and GDAL so that TauDEM works.

https://edx.hydrolearn.org/courses/course-v1:Utah_State_University+CEE6400+2019_Fall/about

Castronova commented 1 year ago

Things we need:

Requests of Belize/Dave:

Castronova commented 1 year ago

tagging @igarousi

igarousi commented 1 year ago

List of Python libraries that need to be installed: pandas, geopandas, osgeo, rasterio, rasterstats, matplotlib, fiona, numpy, descartes, shapely

The version of gdal that works with TauDEM: version 2.3.0 from https://github.com/dtarb/TauDEM/blob/Develop/GDAL.sh. However, more recent versions 3.1.2 - 3.4.3 seem to be working based on https://github.com/dtarb/TauDEM/issues/254

Text that describes the environment for the JH launch page: This computing environment is built on Python version 3.8, specially designed for the execution of computational jupyter notebooks related to the Physical Hydrology course offered through HydroLearn. HydroLearn, an education project funded by the National Science Foundation, aims to promote the collaborative development and adoption of active learning resources in hydrology and water resources engineering. Within this environment, you'll find TauDEM version 5.3.7, and a variety of pre-installed Python libraries including geopandas, rasterio, rasterstats, osgeo, shapely, descartes, and fiona. These resources collectively empower students to effectively engage in terrain analysis exercises as part of the course curriculum.

igarousi commented 1 year ago

The computing environment with a Conda environment called physical-hydrology is created. Everything works fine except when running the TauDEM Pitremovel function, which gives the following error. This error does not impact the results, but it would be good to be resolved and not shown.

Pitremoval PitRemove version 5.3.9 ERROR 1: PROJ: proj_as_wkt: SQLite error on SELECT name, ellipsoid_auth_name, ellipsoid_code, prime_meridian_auth_name, prime_meridian_code, area_of_use_auth_name, area_of_use_code, publication_date, deprecated FROM geodetic_datum WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name