Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions docs/biocells.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"1": "Schles.-Holst., Hamburg, Bremen, nörd. Niedersach.",
"2": "Mecklenburg-Vorpommern",
"3": "Südwestliches Niedersachsen, Nordrhein-Westfalen",
"4": "Östliches und südliches Niedersachsen",
"5": "Berlin, Brandenburg, nördliches Sachsen-Anhalt",
"6": "Südliches Sachsen-Anhalt, Thüringen, Sachsen",
"7": "Hessen, Rheinland-Pfalz, Saarland",
"8": "Baden",
"9": "Württemberg, Franken ohne östliches Oberfranken",
"10": "Niederbayern, Oberpfalz, östliches Oberfranken",
"11": "Schwaben, Oberbayern"
}
29 changes: 29 additions & 0 deletions docs/pollencells.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"11": "Inseln und Marschen",
"12": "Geest, Schleswig-Holstein und Hamburg",
"20": "Mecklenburg-Vorpommern",
"31": "Westl. Niedersachsen und Bremen",
"32": "Östl. Niedersachsen",
"41": "Rhein.-Westfäl. Tiefland",
"42": "Ostwestfalen",
"43": "Mittelgebirge NRW",
"50": "Brandenburg und Berlin",
"61": "Tiefland Sachsen-Anhalt",
"62": "Harz",
"71": "Tiefland Thüringen",
"72": "Mittelgebirge Thüringen",
"81": "Tiefland Sachsen",
"82": "Mittelgebirge Sachsen",
"91": "Nordhessen und hess. Mittelgebirge",
"92": "Rhein-Main",
"101": "Rhein, Pfalz, Nahe und Mosel",
"102": "Mittelgebirgsbereich Rheinland-Pfalz",
"103": "Saarland",
"111": "Oberrhein und unteres Neckartal",
"112": "Hohenlohe/mittlerer Neckar/Oberschwaben",
"113": "Mittelgebirge Baden-Württemberg",
"121": "Allgäu/Oberbayern/Bay. Wald",
"122": "Donauniederungen",
"123": "Bayern nördl. der Donau, ohne Bayr. Wald u. Mainfr",
"124": "Mainfranken"
}
10 changes: 10 additions & 0 deletions docs/update_biocell_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

from __future__ import annotations

import json

import requests


Expand Down Expand Up @@ -40,5 +42,13 @@ def parse_json(data: dict) -> tuple[str, str]:
for cell in all_stations:
output = "| " + str(cell[0]) + " | " + cell[1] + " |"
print(output, file=f)
f.close()

all_stations_dict = {}
for cell in all_stations:
all_stations_dict[cell[0]] = cell[1]

print("Updating biocells.json")
with open("biocells.json", "w", encoding="utf-8") as f:
json.dump(all_stations_dict, f, indent=4, ensure_ascii=False)
f.close()
10 changes: 10 additions & 0 deletions docs/update_pollencell_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

from __future__ import annotations

import json

import requests


Expand Down Expand Up @@ -42,5 +44,13 @@ def parse_json(data: dict) -> tuple[str, str]:
for cell in all_stations:
output = "| " + str(cell[0]) + " | " + cell[1] + " |"
print(output, file=f)
f.close()

all_stations_dict = {}
for cell in all_stations:
all_stations_dict[cell[0]] = cell[1]

print("Updating pollencells.json")
with open("pollencells.json", "w", encoding="utf-8") as f:
json.dump(all_stations_dict, f, indent=4, ensure_ascii=False)
f.close()
9 changes: 9 additions & 0 deletions docs/update_warncell_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from __future__ import annotations

import json
import urllib.parse

import requests
Expand Down Expand Up @@ -50,5 +51,13 @@ def parse_json(section: str, data: dict) -> tuple[str, str, str]:
for warncell in all_stations:
output = "| " + warncell[0] + " | " + warncell[1] + " | " + warncell[2] + " |"
print(output, file=f)
f.close()

all_stations_dict = {}
for warncell in all_stations:
all_stations_dict[warncell[0]] = warncell[2]

print("Updating warncells.json")
with open("warncells.json", "w", encoding="utf-8") as f:
json.dump(all_stations_dict, f, indent=4, ensure_ascii=False)
f.close()
Loading