Skip to content

Add hyras_de data (daily / monthly / multi_annual) #45

@mrustl

Description

@mrustl

Actually hyras_de offers these now:
https://opendata.dwd.de/climate_environment/CDC/grids_germany/daily/hyras_de/air_temperature_min/
https://opendata.dwd.de/climate_environment/CDC/grids_germany/daily/hyras_de/air_temperature_mean/
https://opendata.dwd.de/climate_environment/CDC/grids_germany/daily/hyras_de/air_temperature_max/
https://opendata.dwd.de/climate_environment/CDC/grids_germany/daily/hyras_de/humidity/
https://opendata.dwd.de/climate_environment/CDC/grids_germany/daily/hyras_de/precipitation/
https://opendata.dwd.de/climate_environment/CDC/grids_germany/daily/hyras_de/radiation_global/
https://opendata.dwd.de/climate_environment/CDC/grids_germany/monthly/hyras_de/precipitation/
https://opendata.dwd.de/climate_environment/CDC/grids_germany/multi_annual/hyras_de/precipitation/

These were for example used here:

grafik

https://github.com/AndreasWunsch/Long-Term-GWL-Simulations

I extended read_daily_data_over_shape() to support all possible variables. The function list_daily_grids_germany_tgz() tells you which variables are available:

> kwb.dwd:::list_daily_grids_germany_tgz("x")
 Error in match.arg(variable, c("evapo_p", "evapo_r", "frost_depth", "soil_moist", : 
'arg' should be one of “evapo_p”, “evapo_r”, “frost_depth”, “soil_moist”, “soil_temperature_5cm”

Unfortunately, precipitation data are not available on a daily basis.

I added a function read_monthly_data_over_shape() that can provide precipitation data as well as further variables. The function list_monthly_grids_germany_asc_gz() informs about possible variables:

> kwb.dwd:::list_monthly_grids_germany_asc_gz(variable = "x")
 Error in match.arg(variable, c("air_temperature_max", "air_temperature_mean", : 
'arg' should be one of “air_temperature_max”, “air_temperature_mean”, “air_temperature_min”, “drought_index”, “evapo_p”, “evapo_r”, “frost_depth”, “precipitation”, “soil_moist”, “soil_temperature_5cm”, “sunshine_duration”

Finally, our package fhpredict has a function to read (and cut) current precipitation data (RADOLAN), see: https://kwb-r.github.io/fhpredict/articles/tutorial.html#spacially-select-and-aggregate-rain-data

Altogether: Too many different functions that do too many different things...

Originally posted by @hsonne in #37 (comment)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions