„sunshine“-Array hat fehlerhaften Beginn

Open
#21 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
python
Domain
api, backend

Research direction

Start with the stationOverviewExtended endpoint for station 10505 and trace how forecast1 and forecast2 sunshine arrays are assembled. Compare the hourly offsets and source data used for both forecasts; done means forecast1 begins at the stated midnight boundary and its values are consistent with the underlying hourly data.

Written by the indexing model from the issue text.

Description

In https://dwd.api.proxy.bund.dev/v30/stationOverviewExtended?stationIds=10505 enthält "sunshine" in "forecast1" folgendes Array:

[
    490, 540, 540, 530, 530, 530, 510, 470, 370, 190,   0,   0,   0,   0,
      0,   0,   0,   0,   0,   0,   0,   0,  80, 210, 320, 390, 410, 390,
    370, 340, 270, 230, 140,  50,   0,   0,   0,   0,   0,   0,   0,   0,
      0,   0,   0,   0,  30, 100, 170, 200, 220, 210, 180, 150, 120,  80,
     10,   0,   0,   0,   0,   0,   0
  ]

Das ergibt keinen Sinn wenn man bedenkt, daß das stündliche Werte sind, die bei Mitternacht beginnen. In "forecast2" sieht es sinnvoll aus:

[
      0,   0, 110, 400, 430, 200,  10,   0,   0,   0, 160, 560, 540, 390,
     40,   0,   0,   0, 220, 630, 650, 400,  30,   0,   0,   0, 280, 720,
    660, 450,  30,   0,   0,   0, 230, 560, 590, 400,  30,   0,   0,   0,
    240, 620, 610, 450,  50,   0,   0,   0, 290, 620, 620, 450,  60,   0
  ]

Hier liegen 3 Stunden zwischen zwei Einträgen, d.h. die Sonne fängt um 6 Uhr morgens an zu scheinen. Das ist plausibel.

Dominant language
Python
Stars
148
Forks
11
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bundesAPI/dwd-api

All issues in bundesAPI/dwd-api

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.