An analysis produces three things: a depression table (one row per depression), a cell
table (one row per H3 cell that holds depressed ground) and meta (every setting and version
used). In Python they are Result.depressions, Result.cells and Result.meta; on disk they are
three files in a folder. This page describes every file, column and field.
| File | Written by | Content |
|---|---|---|
depressions.csv or depressions.parquet |
every saved result | the depression table |
cells.csv or cells.parquet |
every saved result | the cell table |
catchments.csv or catchments.parquet |
results computed with catchments=True (--catchments) |
the catchment table |
depression_cells.csv or depression_cells.parquet |
results computed with details=True (--details) |
the depression × cell table |
susceptibility.csv or susceptibility.parquet |
h3lowpoints index or write_susceptibility (results with catchments) |
the susceptibility table |
storm_<name>.csv or .parquet |
h3lowpoints storm or write_storm (results with catchments) |
one storm followed in time (storm tables) |
water_history.csv or .parquet |
analyze_tiled(hooks=[WaterHook(...)]), or any result whose tables hold it |
the water history table |
flood_events.csv, flood_seen.csv (or .parquet) |
analyze_tiled(hooks=[FloodHook(...)]), or any result whose tables hold them |
the flood event tables |
meta.json |
every saved result | settings, versions, counts |
dem.vrt |
h3lowpoints build |
the virtual raster the region was analyzed from (a small text file pointing at the elevation tiles) |
verify.json |
h3lowpoints build |
{"problems": [...]}, empty when every check passed |
_work/ |
a disk-backed run, until it finishes | every finished tile’s result (including a compressed record of its invalid pixels, for coverage) and the run’s settings (manifest.json), so an interrupted run can continue; removed once the tables are written |
_spill/, _spill_catchments/ |
a disk-backed run, while it writes the tables | temporary per-cell sums; removed when the run ends, even if it fails |
Format. CSV is the default and opens anywhere. Parquet (format="parquet", needs
pip install h3-lowpoints[parquet]) is typically several times smaller, keeps exact column types
and reads much faster; it is the better choice for large regions. A folder holds one format: saving
in the other format replaces the old files.
CSV details. Comma-separated with a header row, no index column, booleans as True/False,
numbers written with enough digits to read back exactly.
Parquet details. Compressed with zstd. Column types: text for H3 ids, 64-bit floats for
measurements, 64-bit integers for id, n_lowpoints and spill_to, booleans for flags.
Row order. Depressions are ordered by the position of their first pixel in reading order (top row first, left to right). Cells are ordered by ascending H3 id (as a 64-bit integer), which groups neighbouring cells under the same coarse parent together.
Reading the CSV files yourself: read the H3 columns as text. Some H3 ids look like numbers in scientific notation: tools that guess column types, pandas among them, read the resolution-14 id
8e4516503458447as8 × 10^4516503458447, i.e. infinity, and the id is lost. About one resolution-14 id in ten thousand is affected. In pandas usepd.read_csv(path, dtype={"h3": str})(and the same forh3_lowpoint,h3_lowpoint_15), or useh3lowpoints.read_result, which does this for you. Parquet has no such problem.
One row per depression. The first ten columns are always present; the others appear only when the data behind them was supplied.
| Column | Type | Unit | Meaning |
|---|---|---|---|
id |
integer | Identifier of the depression within this result. | |
max_depth_m |
float | m | Depth at the deepest point: filled level minus ground height. Always at least min_depth. |
area_m2 |
float | m² | Ground area of the depression: the sum of its pixels’ ground areas. |
volume_m3 |
float | m³ | Water it holds when full: the sum over its pixels of depth × pixel area. |
lat, lon |
float | degrees (WGS 84) | Centre of the deepest pixel. |
h3_lowpoint |
text | H3 cell, at the table’s resolution, containing (lat, lon). Matches a row of the cell table. |
|
h3_lowpoint_15 |
text | Resolution-15 H3 cell containing (lat, lon): the lowest point to the finest precision H3 has. |
|
edge |
boolean | True when the depression comes within one pixel of the raster’s edge: it may continue beyond the data, so its area and volume are lower bounds. | |
deeper_than_wide |
boolean | True when the depression is deeper than the side of a square of its own area: almost always an error in the elevation data (see below). | |
dist_to_drain_m |
float | m | Only with drains: distance from the lowest point to the nearest drain. |
drain_at_core |
boolean | Only with drains: a drain lies within drain_radius_m of the depression’s deep core. |
|
building_overlap |
float | 0 to 1 | Only with buildings: share of the depression’s pixels under building footprints. |
likely_building_artifact |
boolean | Only with buildings: building_overlap is at least 0.5. |
|
breached_depth_m |
float | m | Only with breach_crossings: the depression’s greatest depth once road and railway embankments are cut where a stream crosses them (0 when it is gone). Never more than max_depth_m: a cut can leave a lowered stream pixel inside a depression that still holds water, and that pit is not counted as extra depth. |
road_dam |
boolean | Only with breach_crossings: breached_depth_m is below min_depth, so the depression is most likely water held back by an embankment the elevation model shows without its culvert or bridge opening. |
|
bridge_crossing |
boolean | Only with breach_crossings: a road or railway line tagged as a bridge passes over one of the depression’s pixels. |
|
catchment_area_m2 |
float | m² | Only with catchments=True: ground area whose rain ends up in this depression, including the depression itself and the land draining to shallow sinks that spill into it. |
spill_to |
integer | Only with catchments=True: id of the depression that receives this one’s overflow when it is full, or 0 when the overflow leaves the map. |
|
spill_lat, spill_lon |
float | degrees (WGS 84) | Only with catchments=True: centre of the pixel where the full depression overflows. |
ground_m |
float | m | Only with details=True: ground height at the lowest point. |
water_level_m |
float | m | Only with details=True: water level when full; water_level_m - ground_m = max_depth_m. |
length_m, width_m |
float | m | Only with details=True: axes of the depression’s equivalent ellipse; width_m <= length_m. |
orientation_deg |
float | degrees | Only with details=True: direction of the long axis, clockwise from north, 0 to 180. |
area_10cm_down_m2, area_25cm_down_m2, area_50cm_down_m2, area_1m_down_m2, area_2m_down_m2, area_5m_down_m2 |
float | m² | Only with details=True: area under water when the water stands 0.1, 0.25, 0.5, 1, 2 or 5 m below full. |
volume_10cm_down_m3, volume_25cm_down_m3, volume_50cm_down_m3, volume_1m_down_m3, volume_2m_down_m3, volume_5m_down_m3 |
float | m³ | Only with details=True: water held at the same six levels. |
How each value is computed, and the edge cases:
id. From analyze, the label the depression had when the raster was labelled; labels of
depressions dropped by min_depth are not reused, so ids can have gaps. From analyze_tiled
(and build), 1 to n in order. In both cases the order is the reading order of each
depression’s first pixel. An id identifies a row within one result only; use h3_lowpoint_15
or lat/lon to match depressions across runs.h3_lowpoint vs the parent of h3_lowpoint_15. H3 cells do not nest exactly, so near a
cell edge the coarse parent of h3_lowpoint_15 can differ from h3_lowpoint. h3_lowpoint is
the one consistent with the cell table (both use the point’s exact position).h3_lowpoint_15 is about 1 m across, but the position is
only as precise as the elevation pixel it came from: on 30 m data it marks a 1 m cell inside a
30 m pixel.edge. Measured on the depression’s bounding box against the raster border. Nodata inside
the raster is not an edge: water can leave there.deeper_than_wide. max_depth_m > sqrt(area_m2). Natural hollows, and even open-pit
mines, are far wider than they are deep; a depression this narrow is almost always a spike of
bad pixels or a strip stored as 0 m in the elevation data. In the 3DEP 30 m national run, 43 of
10.6 million depressions were flagged, up to 620 m deep, and they dominate any “deepest”
figure: filter them out for depth statistics. Nothing is removed; the flag only marks them.dist_to_drain_m is geodesic (on the WGS 84 ellipsoid) for degree grids and
straight-line for projected grids, to the nearest of all drains supplied. The core of a
depression is its pixels at least drain_core_frac (default 0.8) of its maximum depth deep.
“Within drain_radius_m” (default 5 m) uses whole pixels, rounded up, in a square
neighbourhood.catchment_area_m2 is at least area_m2.
Following spill_to from any depression always reaches 0, through depressions with ever lower
water levels. The catchment areas of all depressions plus the area draining straight off the
map equal the area of valid data.area_m2 >= area_10cm_down_m2 >= ... >= area_5m_down_m2, the same for
volumes), are 0 once the drop reaches max_depth_m, and each volume is at most the depth left
times the flooded area.One row per H3 cell that contains at least one pixel of a depression that was kept. Cells with no depressed pixel are not listed.
| Column | Type | Unit | Meaning |
|---|---|---|---|
h3 |
text | The cell’s H3 id. All rows have the same resolution, Result.res. |
|
max_depth_m |
float | m | Greatest depth over the depressed pixels in the cell. |
depress_area_m2 |
float | m² | Ground area of the depressed pixels in the cell. |
depress_volume_m3 |
float | m³ | Water held by the depressed pixels in the cell. |
n_lowpoints |
integer | Number of depressions whose lowest point (h3_lowpoint) is this cell. |
|
covered_area_m2 |
float | m² | coverage × the cell’s exact area. |
coverage |
float | 0 to 1 | Share of the cell the elevation data covers. |
depressed_share |
float | 0 to 1 | depress_area_m2 / covered_area_m2, capped at 1. |
Details:
Result.at_resolution(r) gives the table at any coarser resolution r:
max_depth_m is the maximum of the children, area, volume and n_lowpoints add up, and
coverage is measured afresh from the data footprint (it cannot be added up, because the finer
table lists only cells with depressions).depressed_share. The two areas come from different counts (the exact H3 area against a
sum of whole pixels), so for a cell that is almost entirely depressed the ratio could exceed 1
by a fraction of a percent; it is capped at 1.n_lowpoints adds up to the number of depressions. h3lowpoints verify checks
this for any saved result.Only with catchments=True: one row per depression and H3 cell of its catchment, for the
depressions in the depression table (land draining off the map is not listed).
| Column | Type | Unit | Meaning |
|---|---|---|---|
id |
integer | The depression (id in the depression table). |
|
h3 |
text | An H3 cell at the table’s resolution, Result.res. |
|
area_m2 |
float | m² | Ground area of the cell’s pixels whose rain ends up in this depression. |
A pixel belongs to the cell containing its centre. The rows of one depression add up to its
catchment_area_m2. A cell on a divide appears once for each depression it drains to. Rows are
ordered by H3 cell (as a 64-bit integer) and then by id.
Clipped results. h3lowpoints clip keeps, for every depression it keeps, its whole
catchment, including cells beyond the boundary: rain falling across a border still ends up in the
depression. A kept depression’s spill_to may name a depression outside the boundary, which is
not in the clipped table. Land
cover, imperviousness, soils or rainfall can be attached to a catchment through these cells
without analysing the terrain again.
Only with details=True: one row per depression and H3 cell it covers, ordered by cell and
then id. It splits the cell table by depression, and adds the fill curve per cell, so the
flooded part of each cell can be found for any water level of its depression.
| Column | Type | Unit | Meaning |
|---|---|---|---|
id |
integer | The depression. | |
h3 |
text | An H3 cell at the table’s resolution. | |
area_m2, volume_m3 |
float | m², m³ | The depression’s area and volume in this cell. |
max_depth_m |
float | m | The depression’s greatest depth in this cell. |
area_10cm_down_m2, area_25cm_down_m2, area_50cm_down_m2, area_1m_down_m2, area_2m_down_m2, area_5m_down_m2 |
float | m² | Its area in this cell under water when the water stands 0.1, 0.25, 0.5, 1, 2 or 5 m below full. |
The rows of one depression add up to its area_m2, volume_m3 and fill-curve areas, and their
deepest max_depth_m is the depression’s. Summed over the depressions in a cell, area and
volume give the cell table’s depress_area_m2 and depress_volume_m3. A clipped result keeps
every row of the depressions it keeps.
Written by h3lowpoints index and h3lowpoints drainage (or write_susceptibility): one row
per depression, saying how easily it fills and whether it is drained. Each command fills its own
columns and keeps the other’s. The method is in Susceptibility.
| Column | Type | Unit | Meaning |
|---|---|---|---|
id |
integer | The depression. | |
impervious_pct |
float | % | Mean percent paved of its catchment (area-weighted over its H3 cells); NaN unless imperviousness was given, or where it covers less than min_coverage of the catchment. |
curve_number |
float | 0 to 100 | SCS curve number of its catchment: the area-weighted mean over the catchment’s H3 cells, or the one curve number given; NaN where the curve numbers cover less than min_coverage of the catchment. |
rain_to_fill_mm |
float | mm | Uniform rain that fills it from its own catchment alone: the storm whose SCS runoff, spread over catchment_area_m2, equals volume_m3. |
rain_to_fill_upstream_mm |
float | mm | The same, counting the overflow of the depressions upstream that fill first; never larger than rain_to_fill_mm. Exact to within 1%. |
fill_ratio_2yr, fill_ratio_10yr, fill_ratio_100yr |
float | Only with storms by return period (--rain atlas14): water reaching it in the 24-hour storm expected once in 2, 10 or 100 years (own runoff plus overflow from upstream), over its volume. 1 or more: it fills. Other return periods give fill_ratio_<N>yr (ratio_years). |
|
fills_in_years |
float | years | Only with storms by return period: the smallest return period whose storm fills it; inf when none does. |
fill_ratio |
float | Only with one uniform storm (--rain MM): water reaching it over its volume. |
|
land_cover |
integer | class | Only with drainage flags: land cover class at the lowest point (NLCD class in the US); 0 for no data or no land cover raster. |
stream_m |
float | m | Only with drainage flags: distance from the lowest point to the nearest stream or river line; NaN beyond max_distance_m or without stream lines. |
canal_m |
float | m | The same for canal, ditch, conduit and pipeline lines. |
channel_share |
float | 0 to 1 | Share of the depression’s area in H3 cells a stream or canal line crosses; NaN without details=True or without channel lines. |
spill_road_m |
float | m | Distance from the spill point to the nearest road given (with --tiger, highways and ramps only); NaN beyond max_distance_m or without roads. |
drained |
boolean | stream_m or canal_m at most near_m, or spill_road_m at most near_m (and channel_share at least min_share, when a minimum share was given). |
|
landlocked |
boolean | Not drained: no sign of drainage in the lines given. |
NaN means unknown: an input does not cover enough of the catchment, or the depression receives water from one whose runoff is unknown (see Susceptibility). Rows are in the order of the depression table. A clipped result keeps the rows of the depressions it keeps.
Written by h3lowpoints storm (or storms.write_storm) as storm_<name>.csv or .parquet, one
per storm: one row per depression, following one storm in time steps. The method is in
Storms in time. The settings of each storm are in meta.json under storms.
| Column | Type | Unit | Meaning |
|---|---|---|---|
id |
integer | The depression. | |
storm_mm |
float | mm | Rain of the storm on its catchment (area-weighted mean over the catchment’s H3 cells). |
storm_hours |
float | h | How long it rains. |
storm_years |
float | years | Return period of storm_mm in storm_hours at the lowest point, from NOAA Atlas 14 (average recurrence interval, partial-duration series); 0 when smaller than the 1-year storm, inf when larger than the 1000-year storm, NaN outside Atlas 14 or when not asked for. |
runoff_mm |
float | mm | Runoff of its own catchment over the whole storm, as a depth over the catchment. |
inflow_m3 |
float | m³ | All water reaching it: its own runoff plus overflow from upstream. |
peak_volume_m3 |
float | m³ | The most water it held at any time. |
peak_depth_m |
float | m | Water depth at its lowest point at that time (from its measured levels when the result has them, see Storms in time). |
peak_fill |
float | 0 to 1 | peak_volume_m3 over its volume; 1: it filled. |
time_to_fill_h |
float | h | Hours from the start of the rain until it was full; NaN if it never filled. |
overflow_m3 |
float | m³ | Water it passed on over its rim (to spill_to, or off the map). |
seepage_m3 |
float | m³ | Water that seeped through its floor. |
drained_m3 |
float | m³ | Water carried away by the assumed storm drains (0 without drains). |
water_left_m3 |
float | m³ | Water still in it at the end of the run. |
ponding_hours |
float | h | Hours with water at least ponding_depth_m deep at the lowest point; inf when still that deep at the end of the run. |
curve_number |
float | 0 to 100 | Method curve-number only: the curve number used (the catchment’s, adjusted for dry or wet ground). |
impervious_pct, ksat_mm_h, suction_mm, water_deficit |
float | %, mm/h, mm, share | Method green-ampt only: the catchment’s mean percent paved, saturated conductivity, wetting-front suction and water the soil can still take in (share of its volume). |
soil_fallback_share |
float | 0 to 1 | Method green-ampt with the soil rasters: share of the catchment where the soil survey had no usable data and the fallback values were used. |
seepage_mm_h |
float | mm/h | With seepage: the rate water seeps through the floor (conductivity at the lowest point times the unpaved share there). |
drain_mm_h |
float | mm/h | With drains: the rain rate the assumed drains carry from the catchment (0 where it is not paved enough). |
NaN in every water column means unknown: an input the method needs does not cover enough of the
catchment (min_coverage), the soil or the rain pattern is unknown at the lowest point, or the
depression receives water from one that is unknown. For every depression, inflow_m3 equals
overflow_m3 + seepage_m3 + drained_m3 + water_left_m3 (tested to 1e-9).
Made by water.water_history, water.water_history_by_cells or WaterHook in a tiled run: one
row per depression, its 1984-2021 Landsat water record (JRC Global Surface Water). The rules are
in Seen wet and seen flooded.
| Column | Type | Unit | Meaning |
|---|---|---|---|
id |
integer | The depression. | |
jrc_pixels |
float | pixels | JRC pixels (0.00025°, about 30 m) whose centres lie in the depression; with the cells method, the area-weighted count (can be fractional). |
extent_pixels |
float | pixels | Of those, the pixels inside JRC’s maximum water extent (water seen there at least once). |
clear_years |
float | years | Years the satellite saw the depression’s area (see clear years); NaN when the views are unknown. |
views_res |
integer | H3 resolution of the area the clear years were judged on (5, 4 or 3); 0 when no area held extent pixels (views unknown). | |
wet_years |
integer | years | Clear years with water on at least 10% of its pixels, or on at least 1 ha, and on at least 2 pixels. |
first_wet_year, last_wet_year |
integer | year | First and last wet year; -1 when never wet. |
permanent_years |
integer | years | Wet years with permanent water on at least half of its pixels. |
max_wet_share |
float | 0 to 1 | Largest share of its pixels with water in any clear year; NaN with no clear year. |
occurrence_mean |
float | % | Mean JRC occurrence over its pixels: per cent of all clear views with water, 1984-2021. |
ever_wet_share |
float | 0 to 1 | Share of its pixels inside the maximum water extent. |
wettest_month |
integer | 1 to 12 | Calendar month in which water came back most often (JRC monthly recurrence, averaged over its extent pixels); 0 when it has none. |
trend_per_decade |
float | share per decade | Theil-Sen slope of its yearly wet share over the clear years; NaN unless wet at least once with at least 10 clear years. |
trend_p |
float | 0 to 1 | Two-sided Mann-Kendall p-value of that trend (with the tie correction). |
water_class |
text | too_small, too_few_views, permanent, seasonal, some_years or never_seen_wet (meanings). |
Made by floods.flood_events or FloodHook in a tiled run, from radar flood maps (Copernicus GFM)
or flood maps of your own. Rules in
Seen wet and seen flooded.
flood_events, one row per depression:
| Column | Type | Unit | Meaning |
|---|---|---|---|
id |
integer | The depression. | |
scenes_covered |
integer | Maps reaching any of its pixels. | |
scenes_observed |
integer | Maps whose observed pixels cover at least 50% of its area. | |
scenes_flooded |
integer | Of those, maps with flooded pixels on at least 10% of its observed pixels and at least 2 pixels. | |
first_flooded, last_flooded |
text | Date and time of the first and last of those maps (or their names, for your own maps); empty when never flooded. | |
max_flooded_share |
float | 0 to 1 | Largest flooded share of its observed pixels in any map that observed it. |
flooded_scenes |
text | The flooded maps’ names (GFM item ids), joined by ;. |
flood_seen, one row per depression and map that observed it (for scoring maps one by one):
| Column | Type | Unit | Meaning |
|---|---|---|---|
scene |
text | The map (GFM item id, or your name for it). | |
datetime |
text | Its acquisition time (GFM); empty for your own maps. | |
id |
integer | The depression. | |
observed_share |
float | 0 to 1 | Share of its area the map observed. |
flooded_share |
float | 0 to 1 | Share of its observed pixels flooded. |
observed |
boolean | Always True (only observed pairs are kept). | |
flooded |
boolean | Flooded in this map by the rule above. |
Made by confidence.confidence (not saved by the analysis itself; save it like any table). One
row per depression; the rule is in Confidence grade. A check that was
not run leaves its column empty (missing, not False).
| Column | Type | Unit | Meaning |
|---|---|---|---|
id |
integer | The depression. | |
max_depth_m |
float | m | Its depth, as in the depression table. |
error_m |
float | m | The vertical error e used. |
base_grade |
text | A, B or C from depth against e. |
|
road_dam |
boolean | From the depression table (road-crossing fix). | |
building_artifact |
boolean | likely_building_artifact from the depression table (buildings given). |
|
bridge_crossing |
boolean | From the depression table. | |
artifact |
boolean | building_artifact or bridge_crossing. |
|
seen_wet |
boolean | Water history class permanent, seasonal or some_years. |
|
seen_flooded |
boolean | Flooded in at least one map (scenes_flooded ≥ 1). |
|
support |
boolean | seen_wet or seen_flooded. |
|
grade |
text | A to D: base grade, D for any flag, then one level up with support. | |
reason |
text | The grade in words. | |
terrain_agreement |
float | 0 to 1 | With agreement=: covered_share from compare against a second terrain; not part of the grade. |
| Field | Meaning |
|---|---|
package_version, h3_version |
Versions of h3-lowpoints and of the H3 library used. |
dem |
Path (or name) of the elevation data analyzed. |
crs |
Its coordinate reference system. |
shape |
[rows, columns] of the raster. |
cell_size_m |
Typical pixel size in metres (the side of a square with the area of a pixel in the middle row). |
geographic |
True for a longitude/latitude grid. |
resolution_tier |
fine (pixels up to 2 m), medium (up to 12 m) or coarse. |
res_requested |
The resolution asked for, such as "auto" or 12. |
params.res |
The resolution used (Result.res). |
params.min_depth |
Shallowest depression kept, metres. |
params.drain_radius_m, params.drain_core_frac |
Drain settings (used only with drains). |
n_drains |
Number of drains supplied (0 for none). |
n_buildings |
Number of building footprints supplied, or null when none were. |
breach |
Only with breach_crossings: radius_m; the numbers of barrier, stream and bridge lines used (n_barriers, n_streams, n_bridges); crossings found and crossings where the ground was lowered (n_crossings, n_crossings_cut); n_pixels_lowered; the depressions flagged (n_road_dam, n_bridge_crossing); and lines, the OSM extract’s file name (which carries its date) when the lines came from sources.osm.fetch_lines. |
n_depressions |
Rows in the depression table. |
n_edge |
Depressions with edge = True. |
tiling |
Tiled runs only: tile (tile size in pixels), n_tiles, n_border_cells and n_crossings (the size of the graph joining the tiles; see Large regions). |
output |
Saved results: format (csv or parquet) and n_cells (rows in the cell table). |
clip |
Clipped results only: boundary, the membership rule, and depressions_before and cells_before (the counts before clipping). |
susceptibility |
Results with a susceptibility table only: runoff (the runoff rule), curve_numbers and impervious (their sources, or null), rain (the storms’ source, or null), years (the storms’ return periods), ratio_years, min_coverage, upstream_rel (the precision of rain_to_fill_upstream_mm), package_version, and clipped_after (true when the result was clipped after the table was made); with drainage flags, drainage: the sources of streams, canals, roads and land_cover, near_m, min_share, max_distance_m, the crs distances were measured in, whether channel_share was measured, and package_version. |
storms |
Results with storm tables only: one entry per storm name, with method, condition, hours, storm (its source), pattern, step_minutes (the step used), after_hours, seepage, drains (the drain rule, or null), ponding_depth_m, min_coverage, water_left_table_m3 (water that flowed off the map), inputs (the per-cell inputs and their sources), package_version, and clipped_after when the result was clipped after the storm was run. |
tables |
Results with water history or flood event tables only: one entry per table with its settings. water_history: method (outline, outline (tiled) or cells), years, n_years, source, rules (every threshold), credit. flood_events and flood_seen: observed_share, flooded_share, min_flooded_pixels, n_maps (maps used), skipped_missing_layer (catalogue items that could not be judged), advisory_flags_not_observed, credit. |
build |
h3lowpoints build only: dataset (3dep or 3dep10), bbox, and seconds for downloading tiles and for the analysis (of the last part, for a run made in parts); with --water-mask, also water_mask, the rule that made the mask. |
Example (from examples/quickstart.py):
{
"res_requested": 12,
"package_version": "0.0.1",
"h3_version": "4.5.0",
"dem": "my_first_run/dem.tif",
"crs": "EPSG:32614",
"shape": [300, 300],
"cell_size_m": 1.0,
"geographic": false,
"resolution_tier": "fine",
"params": {"res": 12, "min_depth": 0.15, "drain_radius_m": 5.0, "drain_core_frac": 0.8},
"n_drains": 1,
"n_buildings": 1,
"n_depressions": 3,
"n_edge": 0,
"output": {"format": "csv", "n_cells": 13}
}
Keep meta.json with the tables: it is what makes a result reproducible and checkable.
pandas
from h3lowpoints import read_result
res = read_result("results") # CSV or Parquet; H3 ids kept as text
res.cells.sort_values("depressed_share", ascending=False).head()
DuckDB
SELECT * FROM read_parquet('results/cells.parquet') ORDER BY depress_volume_m3 DESC LIMIT 10;
SELECT * FROM read_csv('results/cells.csv', types={'h3': 'VARCHAR'});
QGIS, kepler.gl, deck.gl (cell outlines)
from h3lowpoints.viz.deck import cells_to_geojson
cells_to_geojson(res.cells, "cells.geojson") # one polygon per cell, columns as properties
Open cells.geojson in QGIS, or drag it into kepler.gl. kepler.gl can also draw the cell table
directly: add an H3 layer and choose the h3 column. The depression table can be loaded as
points from its lon and lat columns.
GeoPandas
import geopandas as gpd
import h3
from shapely.geometry import Polygon
outline = [Polygon([(lng, lat) for lat, lng in h3.cell_to_boundary(c)]) for c in res.cells["h3"]]
cells = gpd.GeoDataFrame(res.cells, geometry=outline, crs=4326)