# Lake mask and name sources

> **Experimental and unreviewed.** This documentation and the associated software were AI-generated and have not undergone independent human scientific or technical review. Independently validate all results before research use; do not use for navigation or safety-critical decisions.


The reference mask is derived from an AWI AMSR2 map and the independently identified source snapshots below. Scientific interpretation is documented in [SCIENCE.md](SCIENCE.md); product use is described in [Data products](docs/DATA_PRODUCTS.md).

## Result and coverage

| Item | Result |
|---|---:|
| Original closed image components | 743 |
| Original candidate cells | 73,200 |
| Components contributing confirmed inland-lake cells | 241 |
| Stable HydroLAKES waterbody IDs | 905 |
| Retained cells | 60,085 |
| Named lakes / viewer labels | 245 |
| Unnamed or ambiguous lake identities | 660 |
| Fraction-weighted sampled water area | 473,423.769204 km² |
| Sampled water area associated with named lakes | 99.370% |
| Lakes represented by one selected cell | 601 |
| Lakes represented by fewer than four cells | 684 |

Counts refer to the selected reference sampling domain and HydroLAKES identities. They do not claim to enumerate every physical lake on the northern hemisphere. A connected image hole may contain several distinct source lakes; individual source IDs separate them. A lake with disconnected retained pieces has one ID and one time-series record. Michigan and Huron are separate.

The final name choices comprise 187 native HydroLAKES names, 57 individually verified GeoNames names, and one Natural Earth name. Every selected name has its provider and source identifier in `lake_catalog_nh.csv`; alternatives remain in `lake_name_decisions.json`. No names have been invented for unresolved lakes. Unnamed lakes remain in the mask and quantitative accounting, but do not get a fabricated viewer label.

## Image geometry and extraction

`lake_source.png` is the reference AWI palette image dated 24 November 2026; its full source caption is retained in the mask metadata. Its SHA-256 is `65046018e9f963c64eea4a497b2c636d986418d9374b20f35ef86cf46a8b96fb`. It contains no embedded geographic CRS. The inferred geometry is the documented NH grid, checked against widely separated lake/coast anchors including Baikal, Qinghai, Ladoga, Great Bear and Superior:

- EPSG:3411 / the AWI north polar stereographic projection.
- 2,432 columns × 3,584 rows, spacing 3,125 m.
- Outer extent: x −3,850,000 to +3,750,000 m; y −5,350,000 to +5,850,000 m.
- Row zero is north. Pixel centres are `x=-3850000+(column+0.5)*3125`, `y=5850000-(row+0.5)*3125`.
- Exact land RGB is (180, 200, 180). All other image colours are candidate water/ice; concentration values are never reconstructed from those colours.
- Eight-connected water components touching any image border are excluded. Enclosed components are only candidates, because the reference image also contains dry-basin, river, coastal and other nonlake holes.

Final selection intersects reference candidate cell centres with independently identified HydroLAKES polygons. A centre must belong to exactly one accepted source lake. Zero ambiguous centres remain. Twenty projected geometries required explicit `shapely.make_valid`; IDs and repairs are recorded in `lake_confirmation_metadata.json` and `lake_confirmation_audit.json`. No buffer, simplification, snapping, or sliver removal was used.

Each selected cell also carries its actual projected lake-water fraction, calculated from polygon/cell intersection with interior cells short-circuited to one. Island holes are excluded. There are 49,825 full-interior cells and 10,260 boundary intersections. Fractions multiply the projection-corrected cell area; no scaling expands the sampled domain to the complete physical lake. Full-cell counting would yield 491,324.446049 km²; water fractions remove the nonlake portions.

## Sources and attribution

**HydroLAKES v1.0** supplies lake geometry, stable `Hylak_id`, physical attributes and available native names. The product includes natural lakes and reservoirs and is distributed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). Reference: Messager, M. L., Lehner, B., Grill, G., Nedeva, I. and Schmitt, O. (2016), *Estimating the volume and age of water stored in global lakes using a geo-statistical approach*, Nature Communications 7, 13603, [doi:10.1038/ncomms13603](https://doi.org/10.1038/ncomms13603). [Product, documentation and downloads](https://www.hydrosheds.org/products/hydrolakes).

**Natural Earth v5.0.0**, lakes/reservoirs at scale 1:10,000,000 plus Europe and North America supplements, was used for initial geographic matching and additional name evidence. These generalized map data are not a metre-resolution shoreline product. Natural Earth data are public domain. [Lakes and supplements](https://www.naturalearthdata.com/downloads/10m-physical-vectors/10m-lakes/) · [Terms](https://www.naturalearthdata.com/about/terms-of-use/).

**GeoNames**, [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/), supplies verified extra names. The official global dump dated 25 November 2026 was filtered to northern hydrographic lake/reservoir feature codes. Names were tested inside individual confirmed lake polygons; nearby names were not assigned by distance. Ambiguous identities remain unresolved. Documented geometry repair supports the assignment of source 562 to Freeman Lake; source 1257 contains 11 distinct candidates and remains unnamed. [Dump documentation](https://download.geonames.org/export/dump/readme.txt) · [Feature codes](https://www.geonames.org/export/codes.html). Per-record direct links and modification dates are retained in `lake_geonames_verified.json` and the audit files.

**OpenStreetMap contributors**, [ODbL](https://www.openstreetmap.org/copyright), supply the viewer coastline and were used for an independent check of [Dall Lake, relation 11351846](https://www.openstreetmap.org/relation/11351846). Its polygon confirms exactly the 35 reference centres assigned to HydroLAKES 399. The shipped lake-label catalog does not claim OSM-derived names. No live geocoder or Overpass request is required during processing or viewing.

The supplied AWI image and existing satellite retrieval retain their original provenance. JAXA/AWI satellite data, AWI Polarstern positions, NIC iceberg data and OSM coastline acknowledgements remain in the viewer About section. The derived lake catalog, fractions and name attributes retain the applicable HydroLAKES/GeoNames CC BY attribution; Natural Earth remains public domain. Source URLs, byte sizes and SHA-256 values are in `lake_source_downloads.json` and `lake_source_manifest.json`.

## Explicit marine exclusions

`lake_exclusions.csv` records the reason, primary-source URL and document locator for each exclusion:

| HydroLAKES ID | Waterbody | Primary evidence |
|---|---|---|
| 19 | Selawik Lake | US Fish and Wildlife Service estuary habitat report |
| 50 | Lake Melville | Canadian government classification as a saltwater tidal fjord estuary |
| 63 | Bras d’Or Lake | UNESCO saltwater estuary / inland sea description |
| 213 | Southern Husky / Eskimo Lakes | DFO estuarine-system report; freshwater Sitidgi lies outside this polygon |
| 481 | Guillaume-Delisle / Tasiujaq | Canadian Hydrographic Service tidal estuary description |
| 572 | Double Mer | Canadian Hydrographic Service marine inlet description |

Only the specified source polygons are excluded. Neighboring inland lakes remain selected, including HydroLAKES 235 near Selawik. All original image candidates and their retained IDs/cell counts are recorded in `lake_candidate_review.csv`.

## Scientific limits

These are experimental freshwater/saline-lake uses of the existing SIC retrieval. Water-fraction weighting corrects accounting area; it does not remove land contamination from the measured microwave signal, improve footprint resolution, or validate single-cell lake concentrations. Lake names and geometries identify a sampling domain; they do not establish an independent lake-ice retrieval.

Reference shorelines are not contemporaneous water-level observations. The reference mask omits some shoreline cells, and no missing portion is extrapolated. `mask_area_km2` is the fraction-weighted selected lake-water area, not the complete physical lake area. Coverage in the CSV refers to that selected domain. Small-cell counts and sampled/source lake areas remain visible in the catalog.

## Rebuild the shipped assets without network access

The small confirmation raster, source attributes and naming evidence are included so the final assembly is reproducible without downloading the global archives:

```bash
python assemble_lake_assets.py --image lake_source.png \
  --candidates lake_candidates_nh.npz --candidate-catalog lake_candidates_nh.csv \
  --confirmation lake_confirmation_nh.npz --source-catalog lake_hydrolakes_sources.csv \
  --label-evidence lake_raw_name_evidence.geojson --geonames-evidence lake_geonames_verified.json \
  --exclusions lake_exclusions.csv --output .
python render_lake_mask_review.py
```

To independently recompute the source confirmation, use `extract_lake_mask.py`, `build_lake_names.py` and `enrich_lake_geonames.py` with the official snapshots identified by their manifest checksums. The large global source archives are not required by cron and are not included in the release.
