ec-jrc / lisflood-code

Lisflood OS - LISFLOOD
https://ec-jrc.github.io/lisflood
European Union Public License 1.2
122 stars 50 forks source link

Remove variable order prescription when reading NetCDF map-stacks #11

Closed emiliano-gelati closed 5 years ago

emiliano-gelati commented 5 years ago

I propose selecting the data variable to be read from time-changing NetCDF map-stacks based on the number of dimensions (3: time, y/lat, x/lon) instead of the variable order in the file (current situation, which may force the user to re-format large forcing files): see commit 3e8da6787c6227c2a45a6a880eb69c3fffb09c58

emiliano-gelati commented 5 years ago

@bissebe had an exception using forcing files for Europe written by LISVAP (commit: https://github.com/ec-jrc/lisflood-lisvap/commit/c768a4cad0398613138b119fab3b3be76acf158a), where the variable "laea" was last.

emiliano-gelati commented 5 years ago

Solved by 0e114c1ab149255bcbc03bf012573347156ca0cb