Timestamps of HYRAS data not recognized
The German Weather Service (DWD) provides a hydrometeorological raster dataset called HYRAS as open data. HYRAS data is in NetCDF format and is available as daily and monthly datasets. Unfortunately, the RasterTimeSeriesManager plugin does not recognize the timestamps in these datasets (reverts to _deriveFromFallback
for the timestamps).
Looking at the metadata of these files, it seems like all the required information is there, (see attached output of gdalinfo for a daily dataset), but is just not recognized by the plugin.
I cannot attach sample files here because they are too large, but below are some links for obtaining them:
Description: https://www.dwd.de/DE/leistungen/hyras/hyras.html / https://opendata.dwd.de/climate_environment/CDC/grids_germany/daily/hyras_de/precipitation/DESCRIPTION_GRD_DEU_P1D_RR_HYRAS-DE.pdf
Daily datasets: https://opendata.dwd.de/climate_environment/CDC/grids_germany/daily/hyras_de/precipitation/
Monthly datasets: https://opendata.dwd.de/climate_environment/CDC/grids_germany/monthly/hyras_de/precipitation/
I would like to be able to use RasterTimeseriesManager for HYRAS data. I would be happy to attempt to implement it myself (are you open to accepting pull requests?). If you have any ideas or suggestions on how to best implement this please let me know.
Comments (11)
-
repo owner -
reporter I made a pull request for this issue here: https://bitbucket.org/janzandr/rastertimeseriesmanager/pull-requests/1. I am not sure how to properly link the pull request to this issue.
-
repo owner Good job!
-
repo owner - changed status to resolved
-
repo owner BTW - are you familiar with the QGIS Temporal Controller (TC)?
You can prepare your dataset with that button and use it in the QGIS TC:
-
reporter Yes, I saw that and tried it. Very cool! It has to create an individual layer for each timestamp though, which can become a bit much. I wish the TC was able to treat bands as timesteps.
Are you going to publish a new plugin version soon? Then my non-developer colleagues can use it to view HYRAS data as well :-)
-
repo owner Yes, I saw that and tried it. Very cool! It has to create an individual layer for each timestamp though, which can become a bit much. I wish the TC was able to treat bands as timesteps.
Maybe it is already possible in QGIS 3.22:
Unfortunately, I haven’t got the time to look into it. But the API doc sounds promissing:
https://www.qgis.org/api/classQgsRasterLayerTemporalProperties.html#a0b2afbf5433185d11d6277e8d3f296f1 -
repo owner Are you going to publish a new plugin version soon? Then my non-developer colleagues can use it to view HYRAS data as well :-)
Yes, I will publish it soon
-
repo owner Just uploaded it.
-
reporter Great, thanks! But you got the wrong name in the release notes My name is jamaa, and the profile page is https://bitbucket.org/jamaa_mzibo/
-
repo owner Oh no
I’ll fix this.
- Log in to comment
A pull request is fine for me. This way DWD files con be used as is.
As a second solution, you could simple prepare your NC files by setting the correct metadata:
https://raster-timeseries-manager.readthedocs.io/en/latest/content.html#data-format
Those information will be stored in the GDAL PAM sidecar file: