wetterdienst icon indicating copy to clipboard operation
wetterdienst copied to clipboard

deprecated dataset in Geosphere, update needed in endpoint

Open bluearrow98 opened this issue 9 months ago • 5 comments

Describe the bug Geosphere recently seemed to have updated their dataset resource. I was trying to retrieve the snow depth data in a certain region, however it is shown missing when I access through wetterdienst. On comparing the data directly accessing from Geopshere API, I discovered that the resource used in wetterdienst is deprecated.

To Reproduce Steps to reproduce the behavior:

Request the data:

reqData = GeosphereObservationRequest(
    parameter=GeosphereObservationParameter.SNOW_DEPTH,
    resolution=GeosphereObservationResolution.DAILY,
    start_date='2023-11-22',
    end_date= '2024-04-19'
)

reqData.filter_by_station_id(station_id='87').values.all()

The output I get: Bildschirmfoto 2024-04-30 um 10 42 43

Expected behavior The data is available. But Geosphere seem to have updated their dataset resource. You can find all the list of deprecated resources here: https://dataset.api.hub.geosphere.at/v1/docs/user-guide/resource.html. There is also alternative endpoint name suggested for all those resources.

bluearrow98 avatar Apr 30 '24 08:04 bluearrow98