pywr / pycatchmod

A Cython implementation of the rainfall runoff model CATCHMOD (Wilby, 1994)
GNU General Public License v3.0
6 stars 5 forks source link

Add support for h5 files with multiple keys #30

Closed snorfalorpagus closed 7 years ago

snorfalorpagus commented 7 years ago

The command line interface supports reading data from h5 files, but only if the file contains a single key. This wouldn't work, for instance, if rainfall and PET were in the same file, or if there were multiple rainfall scenarios in a single file.

I propose a CLI syntax like this:

pycatchmod run --parameters x.json --rainfall data.h5 --rainfall-key /rainfall/baseline --pet data.h5 --pet-key /pet/baseline