Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix data acquisition for solar data from hourly and daily resolutions #67

Merged
merged 1 commit into from
Jun 16, 2020

Conversation

amotl
Copy link
Member

@amotl amotl commented Jun 16, 2020

Hi again,

Introduction

This is another thing we learned from maintaining dwdweather2 I would like to share in form of code with you.

Anomaly

The DWD directory structure has an anomaly: For solar data, there are no "recent" or "historical" folders within the "hourly" and "daily" time resolutions, see [1,2]. Sad but true.

Outlook

When applying this minor fix accounting for the deviation outlined above, this command starts working flawlessly:

dwd readings --station=183,662 --parameter=solar --resolution=daily --period=recent --date=2020-05-31

As soon as #63 gets merged, it should probably also start working for hourly data.

With kind regards,
Andreas.

[1] https://opendata.dwd.de/climate_environment/CDC/observations_germany/climate/hourly/solar/
[2] https://opendata.dwd.de/climate_environment/CDC/observations_germany/climate/daily/solar/

The DWD directory structure has an anomaly here: There are no "recent"
or "historical" folders for "solar" data within the "hourly" and "daily"
time resolutions.
@gutzbenj
Copy link
Member

Works for me.

Little reminder to work on: #68

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants