datasets, samplers, transforms, and pre-trained models for hydrology and water resources
- Free software: BSD license
- Documentation: https://OuyangWenyu.github.io/torchhydro
NOTE: THIS REPOSITORY IS STILL UNDER DEVELOPMENT!!!
- TODO
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:
- you can fork it to your GitHub account. Don't choose "only fork the main branch" when forking in the Github page.
- 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:
- Public datasets such as CAMELS is put in the
waterism/datasets-origin
directory. - 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.
This package is inspired by TorchGeo.
It was created with Cookiecutter and the giswqs/pypackage project template.