-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Description
HydPy supports reading time-series from and writing time-series to NetCDF files agreeing with the NetCDF Climate
and Forecast (CF) Metadata Conventions convention. This NetCDF support results in efficient data access, but there are still ways to improve its comfort.
- As we work with files, we should support opening a NetCDF reader or writer object using the with statement.
- There are three options to configure the structure of the NetCDF file(s): flatten, isolate, and timeaxis. So far, if we want to follow the defaults, we need to specify these options both for reading and writing data. It would be more convenient to let HydPy detect the file structure itself when reading data.
- The default for option timeaxis does not agree with the CF conventions. We should change this.
- One cannot change the default file names, which depend on the applied model and sequence types. Here, we need more flexibility.
- The "progress bar" is misleading due to the actual file access happening later than usual.
- The NetCDF reader immediately raises an exception and stops working when a series is missing. A more convenient behaviour would be to read all available data and raise the exception (or, optionally, a warning) later.
- Variable names can consist of ASCII characters only. Supporting UTF-8 seems preferable.