{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/openarchieven-nl/json-schema/openarchieven-nl-weather-measurement-schema.json",
  "title": "WeatherMeasurement",
  "description": "One set of historical weather measurements from a Dutch KNMI station. The available fields and units vary by dataset (1701–1905 vs 1901–2014).\n",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/openarchieven-nl-openapi.yaml#/components/schemas/WeatherMeasurement",
  "type": "object",
  "properties": {
    "YYYYMMDD": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string",
          "description": "Date in YYYYMMDD format."
        }
      }
    },
    "STN": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string",
          "description": "Weather station number."
        }
      }
    },
    "STN_PLACE": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string",
          "description": "Name of the weather station location."
        },
        "label": {
          "type": "string"
        }
      }
    },
    "STN_URL": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string",
          "format": "uri",
          "description": "URL with more information about the weather station."
        },
        "label": {
          "type": "string"
        }
      }
    },
    "STN_LOC": {
      "type": "object",
      "properties": {
        "longitude": {
          "type": "number"
        },
        "latitude": {
          "type": "number"
        }
      }
    },
    "M": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string",
          "description": "Measurement index within the day."
        }
      }
    },
    "WW": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string",
          "description": "Weather code."
        },
        "decoded": {
          "type": "string",
          "description": "Human-readable weather description."
        }
      }
    },
    "T": {
      "type": "object",
      "properties": {
        "value": {
          "type": "number",
          "description": "Temperature measurement."
        }
      }
    },
    "P": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string",
          "description": "Air pressure measurement."
        }
      }
    },
    "DD": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string",
          "description": "Wind direction code."
        }
      }
    },
    "FH": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string",
          "description": "Wind speed measurement."
        }
      }
    },
    "rijnland": {
      "type": "integer",
      "description": "Rijnland indicator flag."
    }
  }
}