meteoswiss-mdr / pyrad

Python Radar Data Processing
https://github.com/MeteoSwiss/pyrad
Other
54 stars 21 forks source link

Flexible selection for ODIM file extensions #35

Closed meteoswiss-mdr closed 5 years ago

meteoswiss-mdr commented 5 years ago

Right now only file extension .h5 is accepted as valid.

However hdf files can have the following extension:

.hdf, .h4, .hdf4, .he2, .h5, .hdf5, .he5

A solution has to be found so that the file extension can be either selected by the user or transparent.

meteoswiss-mdr commented 5 years ago

Pyrad now looks for files with generic termination .h* when trying to read ODIM files. When writing them the termination is .h5. Close for now unless an issue is reported