DWD-Regenvorhersage: Pipeline + /radar-Route + Timeline-Integration + Settings-Toggle
PoC BESTANDEN (tools/dwd-radar/poc): Anker (9E,51N) = Pixel-Mitte (470/600),
Ecken decken sich mit der DWD-DE1200-Spec — Georeferenzierung bewiesen.
- tools/dwd-radar: RV-Komposit (25 Frames, 0-120min) -> kolorierte RGBA-
PMTiles z4-7 je Frame (MapLibre overzoomt darueber) + manifest.json,
atomarer Swap, KEEP_RUNS-Aufraeumen; 25 Frames in ~14s lokal
- docker-compose.dwd.yml (DSM-Cron alle 5 min, NIE --remove-orphans)
- main.py: /radar/manifest.json (no-store) + /radar/{run}/{file} (Range/206,
immutable — Run-Id im Pfad); sw.js: /radar/ pass-through
- map.js: Radar-Frames heterogen ({url,time,dwd}) — DWD ersetzt RainViewer-
Nowcast (0-120min, 5-min-Schritte) wenn Toggle an + GL + Karte in DE +
Manifest frisch (<30min); sonst RainViewer-Fallback; Label '+X Min - DWD'
- settings.js: Toggle 'DWD-Regenvorhersage' (by_dwd_radar, Default AN)
- pytest 39 passed
Bump v1240
This commit is contained in:
parent
6a06c9be7e
commit
5330681059
17 changed files with 4685 additions and 23 deletions
15
tools/dwd-radar/Dockerfile
Normal file
15
tools/dwd-radar/Dockerfile
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# DWD-Regenradar-Pipeline: GDAL (decode/warp/tile) + go-pmtiles (MBTiles → PMTiles)
|
||||
FROM ghcr.io/osgeo/gdal:alpine-normal-latest
|
||||
|
||||
# go-pmtiles-CLI (statisches Binary)
|
||||
ARG PMTILES_VERSION=1.22.1
|
||||
ARG TARGETARCH
|
||||
RUN ARCH=$([ "$TARGETARCH" = "arm64" ] && echo arm64 || echo x86_64) && \
|
||||
wget -qO /tmp/pmtiles.tar.gz \
|
||||
"https://github.com/protomaps/go-pmtiles/releases/download/v${PMTILES_VERSION}/go-pmtiles_${PMTILES_VERSION}_Linux_${ARCH}.tar.gz" && \
|
||||
tar xzf /tmp/pmtiles.tar.gz -C /usr/local/bin pmtiles && \
|
||||
rm /tmp/pmtiles.tar.gz && pmtiles version || true
|
||||
|
||||
COPY make_radar_tiles.py /app/make_radar_tiles.py
|
||||
WORKDIR /app
|
||||
CMD ["python3", "/app/make_radar_tiles.py"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue