{
  "id": "ca_wsc_station_number",
  "kind": "datatype",
  "status": "draft",
  "name": "Water Survey of Canada hydrometric station number",
  "doc": "The seven-character number the Water Survey of Canada gives a hydrometric station (a gauge of water level or streamflow): two digits of the major drainage area (01 to 11), a letter of the sub-drainage area, a letter of the sub-sub-drainage area and three digits of the station in it, so 05BH004 is a station of sub-sub-drainage area 05BH (ca_wsc_drainage_area_code). HYDAT, the national archive of hydrometric data, the real-time water office and provincial water files use it as the station key, in fields named STATION_NUMBER, Station Number, STATION_NU or STATION_ID. Provincial networks write their own numbers (MB05LDS002 of Manitoba), which are not this type.",
  "parent": "id",
  "is_pii": false,
  "categories": [
    "environment",
    "geo"
  ],
  "country": [
    "CA"
  ],
  "langs": [
    "en",
    "fr"
  ],
  "classification": "identifier",
  "regexp": "^(?:0[1-9]|1[01])[A-Z]{2}\\d{3}$",
  "examples": [
    {
      "value": "05BH004",
      "description": "Bow River at Calgary",
      "valid": true
    },
    {
      "value": "08MF005",
      "description": "Fraser River at Hope",
      "valid": true
    },
    {
      "value": "05LJ021",
      "description": "Station Number of a Manitoba station list (CanWIN, 2024)",
      "valid": true
    },
    {
      "value": "12AB001",
      "description": "there are eleven major drainage areas",
      "valid": false
    },
    {
      "value": "MB05LDS002",
      "description": "a station number of the Manitoba provincial network",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://wateroffice.ec.gc.ca/station_metadata/station_list_help_e.html"
    },
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Water_Survey_of_Canada"
    }
  ],
  "translations": {
    "fr": {
      "name": "Numéro de station hydrométrique (Relevés hydrologiques du Canada)"
    },
    "ru": {
      "name": "Номер гидрометрического поста Водной службы Канады (WSC)"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "cawscstationnumberbyname",
        "type": "field",
        "match": "regex",
        "file": "ca/ca_codes.yaml"
      },
      {
        "rule": "cawscstationnumbervalue",
        "type": "data",
        "match": "func",
        "file": "ca/ca_codes.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/CA/environment/ca_wsc_station_number.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/CA/environment/ca_wsc_station_number.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/CA/environment/ca_wsc_station_number.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/ca_wsc_station_number",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/ca_wsc_station_number.json"
  }
}