Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Add iotools reader for DWD 10-minute station data (Germany)

未關閉
#2,877 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
55/100
Issue 類型
功能
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
python
領域
data

研究方向

Start by reviewing existing readers in pvlib.iotools and the DWD dataset descriptions linked in the issue. Implement the reader for the SOLAR and TU products, handling timestamps, units, missing values, quality levels, and station metadata as specified; add synthetic test files for both formats. Done when the requested data and metadata are returned correctly and the tests cover these behaviors.

由索引模型根據 Issue 內容生成。

描述

io

Is your feature request related to a problem? Please describe.

The German Weather Service (DWD) publishes 10-minute measurements from about 200 stations through its Climate Data Center as open data (CC BY 4.0): global, diffuse and long-wave irradiance, sunshine duration, air temperature, humidity, pressure and dew point, with records back to 1989. Reading them correctly takes a few non-obvious steps: irradiance is given in J/cm² summed over the preceding 10 minutes, time stamps are MEZ (UTC+1) before 2000 and UTC afterwards, missing values are −999, and data and station metadata come in per-station zip files. pvlib has readers for several US networks and BSRN, but none for a European national network.

Describe the solution you'd like

A pvlib.iotools.read_dwd_10min(filename, map_variables=True) that reads a CDC zip (or the extracted produkt_zehn_min_*.txt) for the solar (SOLAR) and air temperature (TU) products and returns (data, metadata):

  • a UTC DatetimeIndex, labelled at the end of each 10-minute interval as in the source, documented in the docstring;
  • irradiance converted to W/m² and mapped to ghi, dhi, lwd; temp_air, relative_humidity, pressure (Pa), temp_dew; −999 as NaN; the quality level QN kept;
  • station id, name, latitude, longitude and elevation in metadata.

Optionally a get_dwd_10min(station_id, product, period) that downloads from opendata.dwd.de (historical, recent or now). I would be glad to implement this with small synthetic test files if it fits the scope of iotools.

Describe alternatives you've considered

Users write their own parsers; existing third-party packages that wrap the DWD open data are general-purpose download clients and do not return pvlib variable names, units or interval conventions.

Additional context

Format and units are described in DWD's dataset descriptions, e.g. opendata.dwd.de/climate_environment/CDC/observations_germany/climate/10_minutes/solar/DESCRIPTION_obsgermany_climate_10min_solar_en.pdf (and the same for air_temperature).

Prepared with AI assistance (Claude); I reviewed it.

主要語言
Python
星號
1.7k
分支
1.2k
平均合併
3 天 18 小時
30 天內合併 PR
13

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

pvlib/pvlib-python 的其他 Issue

查看 pvlib/pvlib-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。