Microproduct Data GuideIntermediate

Latvia Hydrometeorological Warnings

Official Latvian weather and hydrological warning resources published by the Latvian Environment, Geology and Meteorology Centre for local alert review.

Report a Problem

At a Glance

Difficulty
Intermediate — some data preparation helps
Size
Tiny · ≤0.01 GB
Formats
JSON, CSV
Access
API
API Key
Not Required
Provider
Latvian Environment, Geology and Meteorology Centre
Updates
Near Real Time
Last Verified
Sep 28, 2026
Source Type
Government Source
  • Python Syntax Checked

From Source to Product Signal

Test a Product Idea in Four Steps

The Latvian open-data package lists maintained hydrometeorological warning resources. Start with one package metadata response and inspect five warning resource URLs; Riga warnings may be separate from wider regional warnings. A package listing alone is not a current warning.

1

Check the Setup

  • Python 3.10 or newer
  • An internet connection
  • The requests Python package
2

Access the Data

  1. 1.Read the official package description, resource list, and CC0 terms.
  2. 2.Query the bounded CKAN package metadata endpoint once.
  3. 3.Fetch five warning metadata records from the exact named resource.
  4. 4.Match issue time, hazard, and locality in any current record.
Open Official Source
3

Run the Python Example

Install the packages, then run the notebook cell.

python -m pip install requests

import requests

url = "https://data.gov.lv/dati/api/3/action/package_show"
response = requests.get(url, params={"id": "hidrometeorologiskie-bridinajumi"}, timeout=30)
response.raise_for_status()
package = response.json()["result"]
print(package["title"])
warnings = next(r for r in package["resources"]
                if r["id"] == "59c111fb-8c9a-4a63-8284-0a64a2920681")
records = requests.get(
    "https://data.gov.lv/dati/api/3/action/datastore_search",
    params={"resource_id": warnings["id"], "limit": 5}, timeout=30,
)
records.raise_for_status()
rows = [row for row in records.json()["result"]["records"]
        if row.get("WEATHER_WARNING_EV_ID")]
print(f"{len(rows)} warning metadata rows in this page")
for row in rows:
    print(row.get("WEATHER_WARNING_EV_ID"), row.get("PARADIBA_EN"),
          row.get("TIME_FROM"), row.get("TIME_TILL"))
4

Inspect Latvian Warning Resources

Identify the official resources and their geographic coverage.

  1. 01Keep resource IDs, warning issue times, and affected area names.
  2. 02Check Riga separately from regional notices when appropriate.
  3. 03Explain why metadata refresh is not itself a current warning event.

Dataset Details

Latvian Environment, Geology and Meteorology Centre is a government source. Last verified 2026-09-28. Temporal coverage: current and published warning resources.

Geography

Formats

Provider

Latvian Environment, Geology and Meteorology Centre

Data Terms

CC0 1.0 for the named portal dataset; retain the originating authority and issue context.

Send Feedback