Skip to content

TorchHydro: datasets, and pre-trained models for watershed hydrological modeling

License

Notifications You must be signed in to change notification settings

zaixiaxiaowu/torchhydro

 
 

Repository files navigation

torchhydro

image image

datasets, samplers, transforms, and pre-trained models for hydrology and water resources

NOTE: THIS REPOSITORY IS STILL UNDER DEVELOPMENT!!!

Features

  • TODO

For developers

To install the environment, run the following code in the terminal:

conda env create -f env-dev.yml
conda activate torchhydro

To use this repository of dev or other branches in your existing environment:

  1. you can fork it to your GitHub account. Don't choose "only fork the main branch" when forking in the Github page.
  2. run the following code in the terminal:
# xxxxxx is your github account; here we choose to use dev branch
pip install git+ssh://git@github.com/xxxxxx/torchhydro.git@dev

For the dataset we set a unified data path in settings.txt in the .hydrodataset directory which is located in the user directory (for example, C:\Users\username\.hydrodataset in Windows). You can change the data path in this file.

Then we have some conventions for the dataset:

  1. Public datasets such as CAMELS is put in the waterism/datasets-origin directory.
  2. The processed datasets are put in the waterism/datasets-interim directory.

You can specify by yourself, but some changes are needed. We will optimize this part in the future.

Credits

This package is inspired by TorchGeo.

It was created with Cookiecutter and the giswqs/pypackage project template.

About

TorchHydro: datasets, and pre-trained models for watershed hydrological modeling

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%