harphub / harpIO

IO functions for HARP
https://harphub.github.io/harpIO/
Other
6 stars 16 forks source link

Make netcdf reading more agnostic of singleton dimensions #59

Closed andrew-MET closed 3 years ago

andrew-MET commented 3 years ago

When reading netcdf data, it is necessary to pass the names of all dimensions for a variable via netcdf_opts(). For singleton dimensions this can cause unwanted hassle. Now for singleton dimensions, the dimension name can be anything, as long as it exists as a dimensions in the netcdf file.

Further improvements are needed so that the user doesn't have to specify the names of singleton dimensions at all.