Real-data build checks (Plan v3 PR 48 and Plan v2 flow-grid size)
Measured on 2026-11-30 against live public USGS 3DEP and Hobu Entwine Point Tile (EPT) data using TileMapper's own GIS worker build functions (services/gis-worker/scripts/real_build_checks.py), with no database, plus host-side Node decoding with the web app's own geotiff reader (apps/web/scripts/benchmark-flow-dir-decode.mts).
This document records live-data evidence for three open build claims that previously held only on synthetic fixtures:
- Two builds of the same dataset (Plan v3 PR 48): Does elevation change between two fresh builds of the same public dataset come to zero within tolerance, on real builds and not only on synthetic grids?
- First returns over open ground (Plan v3 PR 48): Does a first-return surface built by the worker's own item 383 path match the ground terrain over open ground within the terrain's stated vertical accuracy, on one of the three real test fields?
- Flow-direction grid storage and browser read (Plan v2 "What to verify before building"): On a real 160-acre (156.96 ac field, 243.45 ac buffered AOI) 1 m terrain, how large are the stored
flow_dirgrid and its companion hydrology COGs (fill_depth,outside_entry, anddem_conditioned) compared withdem_originaland Supabase storage limits, and how fast and memory-heavy is decoding them with the web app's owngeotiffreader?
Field and public datasets
- Test field:
fargo-nd(Fargo, ND;T138N R49W Sec 9 NW 1/4, Cass County, ND;156.96 acfield boundary,243.45 acAOI with the worker's 100 m buffer;EPSG:6343, centroid46.78601, -96.876782). Fargo was run first as the first of the three real test fields inpackages/layout/fixtures/real-test-fields/(fargo-nd,mankato-mn,brookings-sd); it has 100% coverage from both a QL 2 USGS 1 m DEM and a QL 2 streaming USGS EPT point cloud from the same USGS 3DEP project, and 97.2% cropland in USDA NASS CDL 2025. - Primary ground DEM (recommended by
discover_all):- Dataset ID:
usgs_1m_dem:ND_3DEPProcessing_D22 - Dataset name:
USGS 1 m DEM, ND_3DEPProcessing_D22 - Tile URL:
https://prd-tnm.s3.amazonaws.com/StagedProducts/Elevation/1m/Projects/ND_3DEPProcessing_D22/TIFF/USGS_1M_14_x66y519_ND_3DEPProcessing_D22.tif - Flight / collection dates (from USGS 3DEP Elevation Index):
2019-05-26to2021-04-01 - Quality and datum:
QL 2,meets_specification = true,NAVD88(EPSG:5703),GEOID18, 1.0 m native grid (resampling = "none")
- Dataset ID:
- Streaming point cloud (discovered by
discover_allvia Hobu USGS EPTresources.geojson):- Dataset ID:
usgs_ept:ND_3DEPProcessing_6_D22 - Dataset name:
USGS point cloud (streaming), ND_3DEPProcessing_6_D22 - EPT URL:
https://s3-us-west-2.amazonaws.com/usgs-lidar-public/ND_3DEPProcessing_6_D22/ept.json - Flight / collection dates (from USGS 3DEP Elevation Index):
2019-05-26to2021-04-01 - Quality and datum:
QL 2,meets_specification = true,USGS Lidar Base Specification 2022 Revision A(lpc_category = "Meets",onemeter_category = "Meets"),NAVD88(EPSG:5703),GEOID18,2.31points/m^2 sampled during discovery (2.34first-return points/m^2 inside the grid)
- Dataset ID:
- Flight relationship between the 1 m DEM and the EPT point cloud:
- The USGS 3DEP Elevation Index (
MapServer/24) reports that workunitND_3DEPProcessing_6_D22belongs to projectND_3DEPProcessing_D22with the exact same collection dates (2019-05-26to2021-04-01), so both products come from the same lidar flight. - In TileMapper's worker (
services/gis-worker/gis_worker/terrain/build.py),same_dataset_as_primarycomparesdataset_idstrings verbatim (usgs_1m_dem:ND_3DEPProcessing_D22 != usgs_ept:ND_3DEPProcessing_6_D22). When a user builds the recommended 1 m DEM and then builds the EPT first-return surface, the app itself recordssame_dataset_as_primary = false, labels the pair as a difference between two dataset records, and quotes the combined two-dataset 95% confidence band (1.96 * sqrt(0.10^2 + 0.10^2) = 0.2772 m). - To cover both cases without ambiguity, the script compares the first-return surface against both (a) the primary recommended 1 m DEM (
usgs_1m_dem:ND_3DEPProcessing_D22) and (b) bare-earth ground gridded from the exact same EPT point cloud (usgs_ept:ND_3DEPProcessing_6_D22, wheresame_dataset_as_primary = true).
- The USGS 3DEP Elevation Index (
Stated accuracy and tolerance basis
- Stated vertical accuracy (
RMSE_z):0.10 m(10.0 cm) for QL 2 lidar meeting specification, read fromquality_levelandmeets_specificationbyverticalRmseFromProvenanceinapps/web/src/lib/terrain/provenance.ts. That lookup cites USGS Lidar Base Specification v2024 rev. A, Table 1 (non-vegetated vertical accuracy NVARMSE_z: QL 0 = 0.05 m, QL 1 = 0.10 m, QL 2 = 0.10 m, QL 3 = 0.20 m). The 3DEP index record forND_3DEPProcessing_6_D22cites USGS Lidar Base Specification 2022 Revision A, which specifies the same 10.0 cm NVARMSE_zfor QL 2. - Single-dataset 95% confidence NVA:
1.96 * RMSE_z = 0.196 m(19.6 cm), per ASPRS Positional Accuracy Standards andapps/web/src/lib/ui/lidar-analyses.ts(heightAccuracyInfo). - Two-flight elevation-change blank band (app change layer tolerance):
tau_95 = 1.96 * sqrt(RMSE_z,1^2 + RMSE_z,2^2) = 0.2772 m(27.7 cm) for two QL 2 surfaces, fromcomputeElevationChangeinpackages/surface/src/lidar.ts(ASPRS Positional Accuracy Standards). Because the two-build check runs on the exact same dataset, we also check strict zero tolerance (RMSE_z = 0.0 m,tau_95 = 0.0 m), count of cells differing at all (diff != 0), and GeoTIFF byte-for-byte identity.
Exact command
Run in the repo's worker image tilemapper-gis-worker:test as the host user, with the worker source mounted read-only and all downloads/builds written outside the repo under /tmp:
WORK=$(mktemp -d /tmp/tilemapper-real-checks.XXXXXX)
docker run --rm --user "$(id -u):$(id -g)" -e HOME=/tmp \
-v "$PWD/services/gis-worker":/gis-worker:ro \
-v "$WORK":/work -w /gis-worker -e PYTHONPATH=/gis-worker \
tilemapper-gis-worker:test \
python scripts/real_build_checks.py --field fargo-nd --work-dir /work --out /work/summary.json
Total wall-clock runtime for the run below: 221.829 s (3 min 41.8 s), of which live source discovery (discover_all, zero failed sources) took 105.242 s, the four terrain builds took 81.971 s, the first-return surface build took 11.159 s, the same-point-cloud ground build took 9.680 s, streaming 2,463,486 points for open-ground classification took 11.991 s, and the Check 3 hydrology analysis and four COG writes took 1.237 s (with the 1/3 arc-second context tile already in GDAL's VSI cache from Checks 1 and 2). During every build, reference_urls resolved the 1/3 arc-second tile and check_against_reference ran and passed on 2,466 sample points.
Because tilemapper-gis-worker:test has Python and no Node runtime, scripts/real_build_checks.py implements an exact Python port of computeElevationChange (packages/surface/src/lidar.ts) and isValidHeight (packages/surface/src/types.ts). On an earlier run producing byte-identical GeoTIFF pairs (sha256: 9775cbb6808e0b13... and bbd24682e3082a72...), both saved GeoTIFF pairs were also fed directly into the TypeScript computeElevationChange function in packages/surface/src/lidar.ts under Node on the host and produced identical counts (changedCells = 0, blankCells = 985,201, blankBandM = 0.2771858582251267, changedCellsZeroTol = 0, nonzero = 0, maxAbs = 0).
Check 1: Two builds of the same dataset
Question: When the worker builds the same public dataset twice from scratch into two separate fresh folders (clearing GDAL's in-process VSI HTTP cache between builds so build 2 fetches fresh bytes), does the app's elevation-change comparison come to zero within tolerance, and are the stored GeoTIFFs byte-identical?
Both the primary recommended 1 m DEM (resampling = "none") and the streaming EPT point-cloud ground surface (resampling = "idw", gridded from live streamed PDAL points) were built twice into fresh folders:
| Metric | Primary 1 m DEM (usgs_1m_dem:ND_3DEPProcessing_D22) |
EPT point-cloud ground (usgs_ept:ND_3DEPProcessing_6_D22) |
|---|---|---|
| Grid dimensions | 1,008 x 1,014 (1,022,112 cells) |
1,008 x 1,014 (1,022,112 cells) |
| Valid cells compared | 985,201 |
985,201 |
| NoData mismatch cells | 0 |
0 |
Cells differing at all (diff != 0) |
0 |
0 |
| Largest absolute difference | 0.0 m |
0.0 m |
Changed cells at QL 2 tolerance (tau_95 = 0.2772 m) |
0 (985,201 blanked) |
0 (985,201 blanked) |
Changed cells at zero tolerance (tau_95 = 0.0 m) |
0 (985,201 blanked) |
0 (985,201 blanked) |
| Build 1 / Build 2 wall time | 21.884 s / 9.822 s |
25.301 s / 24.964 s |
| GeoTIFF size (each) | 2,075,502 bytes |
2,005,122 bytes |
| GeoTIFFs byte-identical | Yes (sha256: 9775cbb6808e0b13...) |
Yes (sha256: bbd24682e3082a72...) |
Verdict for Check 1: Holds. Two fresh real builds of the same dataset produce 0 differing cells (max |diff| = 0.0 m), 0 changed cells under both the app's QL 2 tolerance (0.2772 m) and strict zero tolerance (0.0 m), and byte-identical GeoTIFFs, for both the ready-made 1 m DEM and the PDAL-gridded streaming EPT ground surface.
Check 2: First returns over open ground
Question: When the worker builds a first-return surface for Fargo from the public USGS EPT point cloud (usgs_ept:ND_3DEPProcessing_6_D22) onto the primary terrain's exact TargetGrid via _read_flight_surface(..., surface="first_return") (read_point_cloud_first_return), how closely does first_return - ground match over open ground compared with the terrain's stated vertical accuracy (0.10 m RMSEz, 0.196 m 95% NVA)?
How open ground is chosen (from the data, not by eye)
- Stream the EPT point cloud over
target_gridthrough the worker's own_first_return_noise_stages()(Withheld[0:0],Classification![7:7],Classification![18:18]) and reproject fromEPSG:3857toEPSG:6343. At Fargo this yields2,463,486usable points (2,435,275class 2 ground,28,211class 1 unclassified;2,455,269single-return points,8,217multi-return points acrossNumberOfReturns2 to 4), of which2,397,436fall inside the1,008 x 1,014grid. - Bin every point into
(row, col)using the exact same cell indexing as PDALwriters.gdalwithbinmode = true(col = floor((x - grid_left) / cell_m),row = (height - 1) - floor((y - grid_bottom) / cell_m)). - Keep a cell as open ground if and only if:
- both the ground DEM and the first-return DSM are valid (non-NoData) at that cell (
985,201cells), - at least one usable point landed inside the cell (excluding
34,126empty/gap-filled cells where PDAL's 3-cell fallback window filled the cell from neighbors), and - every usable point inside the cell has
Classification == 2(ASPRS Ground),ReturnNumber == 1, andNumberOfReturns == 1(excluding22,858occupied cells with any unclassified/non-ground or multi-return point).
- both the ground DEM and the first-return DSM are valid (non-NoData) at that cell (
This selects 928,217 open-ground cells (94.22% of the 985,201 valid terrain cells) without inspecting first_return - ground or hand-drawing polygons.
Results (first_return - ground over open ground)
| Metric | First returns vs. primary 1 m DEM (usgs_1m_dem:ND_3DEPProcessing_D22) |
First returns vs. same-EPT ground (usgs_ept:ND_3DEPProcessing_6_D22) |
Stated QL 2 accuracy basis |
|---|---|---|---|
| Open-ground cells compared | 928,217 |
928,217 |
- |
Median (first_return - ground) |
+0.0070 m (+0.70 cm) |
+0.0095 m (+0.95 cm) |
<= 0.10 m RMSEz |
Mean (first_return - ground) |
+0.0100 m (+1.00 cm) |
+0.0100 m (+1.00 cm) |
<= 0.10 m RMSEz |
| RMSE | 0.0184 m (1.84 cm) |
0.0184 m (1.84 cm) |
<= 0.10 m RMSEz (5.4x tighter) |
| Standard deviation | 0.0154 m (1.54 cm) |
0.0154 m (1.54 cm) |
- |
| 5th percentile | -0.0070 m (-0.70 cm) |
-0.0124 m (-1.24 cm) |
- |
| 95th percentile (signed) | +0.0370 m (+3.70 cm) |
+0.0331 m (+3.31 cm) |
<= 0.10 m RMSEz / 0.196 m NVA95 |
95th percentile of abs(diff) |
0.0370 m (3.70 cm) |
0.0338 m (3.38 cm) |
<= 0.196 m NVA95 (5.3x tighter) |
| Min / Max over all 928,217 cells | -0.2550 m / +0.3350 m |
-0.2506 m / +0.3051 m |
- |
The small positive bias (+0.7 to +1.0 cm) is expected from read_point_cloud_first_return's first_return_max gridding rule (highest first return in each 1 m cell) compared against an interpolated bare-earth surface, as documented in lidar-analysis.md. Both the primary 1 m DEM comparison and the same-EPT-ground comparison agree to the sub-millimeter in mean and RMSE (0.0184 m), confirming there is no flight-to-flight vertical offset between the USGS 1 m DEM and the EPT point cloud at Fargo.
Verdict for Check 2: Holds. Over 928,217 open-ground cells selected strictly from point-cloud class and return attributes on the Fargo test field, first_return - ground has median +0.0070 m, mean +0.0100 m, RMSE 0.0184 m, and 95th percentile +0.0370 m (and 0.0184 m RMSE / 0.0338 m 95th percentile absolute difference against same-point-cloud ground), well inside the terrain's stated QL 2 vertical accuracy (0.10 m RMSEz, 0.196 m 95% NVA, USGS Lidar Base Specification v2024 rev. A, Table 1).
Check 3: Flow-direction and hydrology grid sizes and browser decode
Question: Is the flow-direction grid small enough to store with every terrain and read in the browser on a real 160-acre terrain (fargo-nd: 156.96 ac field, 243.45 ac buffered AOI, 1,008 x 1,014 at 1.0 m)?
How the worker builds and stores these grids
In services/gis-worker/gis_worker/terrain/build.py (lines 482 to 511), every terrain build writes five single-band Cloud-Optimized GeoTIFFs (256 x 256 tiles, DEFLATE compression, GDAL COG default [2, 4] internal overviews at 1,008 x 1,014, stored under content-addressed paths <kind>/<sha256>.tif in the private artifacts bucket):
dem_original(dem/<sha256>.tif):write_cog(dem),float32,predictor=3,nodata=-999999.0.dem_conditioned(dem/<sha256>.tif):write_cog(hydrology.conditioned),float32,predictor=3,nodata=-999999.0, produced bynudge_flats+ WhiteboxToolsBreachDepressionsLeastCost(dist=100,fill=True,max_procs=1).flow_dir(flow_dir/<sha256>.tif):write_flow_dir_cog(hydrology.flow_dir, dem.transform, dem.crs_epsg),uint8,nodata=0, no predictor (GDAL defaultpredictor=1), containing WhiteboxToolsD8Pointervalues (0, 1, 2, 4, 8, 16, 32, 64, 128).fill_depth(fill_depth/<sha256>.tif):write_fill_depth_cog(hydrology.fill_depth_m, dem.transform, dem.crs_epsg),uint16millimeters (scale = 0.001 m, cap65.535 m),predictor=1, fromFillDepressionsWangAndLiuminus original DEM.outside_entry(outside_entry/<sha256>.tif):write_outside_entry_cog(hydrology.outside_entry_m2, dem.transform, dem.crs_epsg),float32square meters,predictor=3, holding per-cell external run-on entering from the surrounding2 km,10 mUSGS 1/3 arc-second context DEM (_ground_around->trace_run_on).
Check 3 runs those exact worker functions (_ground_around, analyze_hydrology, write_cog, write_flow_dir_cog, write_fill_depth_cog, write_outside_entry_cog) directly inside real_build_checks.py with no database. On Fargo, _ground_around succeeded (traced_around = true), yielding 984,435 non-zero D8 pointer cells (37,677 zero cells, including 36,911 NoData cells outside the buffered AOI), 288,522 wet fill-depth cells (max depth 0.591 m), and 55 non-zero outside-entry cells carrying 12,384,000.0 m^2 of run-on from the surrounding 2 km.
Exact commands
- Build and measure all stored grids in Docker (same command as above):
WORK=$(mktemp -d /tmp/tilemapper-real-checks.XXXXXX)
docker run --rm --user "$(id -u):$(id -g)" -e HOME=/tmp \
-v "$PWD/services/gis-worker":/gis-worker:ro \
-v "$WORK":/work -w /gis-worker -e PYTHONPATH=/gis-worker \
tilemapper-gis-worker:test \
python scripts/real_build_checks.py --field fargo-nd --work-dir /work --out /work/summary.json
- Decode the produced Fargo hydrology COGs on the host with the web app's own
geotiffreaders (openFlowDirGrid,openFillDepthGrid,openOutsideEntryGridinapps/web/src/lib/terrain/surface-water.ts):
node apps/web/scripts/benchmark-flow-dir-decode.mts \
--flow-dir "$WORK/hydrology_grids/flow_dir.tif" \
--fill-depth "$WORK/hydrology_grids/fill_depth.tif" \
--outside-entry "$WORK/hydrology_grids/outside_entry.tif" \
--crs-epsg 6343
Stored grid sizes on Fargo (1,008 x 1,014 = 1,022,112 cells at 1.0 m)
Stored grid (artifact_key) |
Data type | Write options (all 256 x 256, DEFLATE, overviews [2, 4]) |
Stored size (bytes) | Uncompressed (bytes) | Ratio (uncomp / stored) |
Share of dem_original |
SHA-256 |
|---|---|---|---|---|---|---|---|
dem_original |
float32 |
predictor=3, nodata=-999999.0 |
2,075,502 |
4,088,448 |
1.97x |
100.0% |
9775cbb6808e0b13f7762797d03f2a10c5a0dcd8a079cbfe415586aac0ab458c |
dem_conditioned |
float32 |
predictor=3, nodata=-999999.0 |
2,108,457 |
4,088,448 |
1.94x |
101.6% |
a7b72957c9b667fae7f8256f1d116325e1faaefe3068f2529f237c0da44c59de |
flow_dir |
uint8 |
nodata=0 (default predictor=1) |
585,403 |
1,022,112 |
1.75x |
28.2% |
7b64d9bb74dbd15fb6ed0a444a2805c5fbc994c6204d787e4a96e23e6c4bba6f |
fill_depth |
uint16 |
predictor=1, scale=0.001 m (mm) |
629,082 |
2,044,224 |
3.25x |
30.3% |
d5e20f513a4d108b5b5ad98f8af303451dba88e0687b95024cb9cc4e79cd576b |
outside_entry |
float32 |
predictor=3, units m^2 |
18,619 |
4,088,448 |
219.58x |
0.9% |
d0981fc463996574270419ac8b8a9195ab6209f4b0c159d0dfc9bc8a09f86e42 |
Companion hydrology sum (flow_dir + fill_depth + outside_entry) |
- | 3 COGs | 1,233,104 |
7,154,784 |
5.80x |
59.4% |
- |
| All five terrain COGs combined | - | 5 COGs | 5,417,063 |
15,331,680 |
2.83x |
261.0% |
- |
Real Fargo ground packs far less tightly than the made-up smooth 160-acre speed fixture (585,403 bytes vs. 7 KB on the smooth synthetic fixture, ~84x larger), because real lidar micro-relief varies D8 directions from cell to cell. Even so, flow_dir is 585,403 bytes (571.7 KiB), less than a third (28.2%) of dem_original (2,075,502 bytes).
Comparison against cited storage limits
Storage limits in the codebase:
- Local Supabase single-file storage limit:
50 MiB(52,428,800bytes;supabase/config.tomlfile_size_limit = "50MiB", also cited insupabase/migrations/20261110103000_storage_limits.sqlanddocs/adr/0002-artifact-store.md). - Production Supabase
artifactsbucket and project single-file limit:500 MiB(524,288,000bytes;supabase/migrations/20261110103000_storage_limits.sqlfile_size_limit = 524288000onartifacts, enforced bysupabase/tests/database/060_storage_limits.test.sql,[remotes.production.storage] file_size_limit = "500MiB"insupabase/config.toml, and documented indocs/engineering/operations.md).
Against those limits on Fargo:
flow_dir(585,403bytes) is1.12%of the50 MiBlocal single-file limit and0.11%of the500 MiBproductionartifactsbucket limit.- The largest single file (
dem_conditioned,2,108,457bytes) is4.02%of the local limit and0.40%of the production limit. - Even all five stored COGs summed (
5,417,063bytes,5.17 MiB) are10.33%of one file's local50 MiBlimit and1.03%of the production500 MiBlimit.
Decode time and in-memory arrays (geotiff, Node on a laptop)
Measured with apps/web/scripts/benchmark-flow-dir-decode.mts in Node v26.5.0 on a laptop (Apple M5, arm64, darwin) using an in-memory HTTP byte-range fetch shim so network transfer latency and disk I/O are excluded. This is Node on a laptop, not a browser and not a phone. Each reader is the web app's exact function in apps/web/src/lib/terrain/surface-water.ts (fromCustomClient -> file.getImage(0) -> image.readRasters()), run once as a warm-up and then timed over five runs:
| Grid | Web app reader call | Stored file (bytes) | Range requests / bytes read per decode | Warm-up (ms) | Median (ms) | Min (ms) | Max (ms) | Typed arrays held in memory | Total array memory (bytes) |
|---|---|---|---|---|---|---|---|---|---|
flow_dir |
openFlowDirGrid |
585,403 |
18 reqs, 331,486 B |
33.520 |
15.682 |
14.052 |
16.715 |
pointers (Uint8Array, 1,022,112 B) + validMask (Uint8Array, 1,022,112 B) |
2,044,224 (1.95 MiB) |
fill_depth |
openFillDepthGrid |
629,082 |
50 reqs, 439,590 B |
22.120 |
16.755 |
15.809 |
21.232 |
depthM (Float32Array, 4,088,448 B) |
4,088,448 (3.90 MiB) |
outside_entry |
openOutsideEntryGrid |
18,619 |
18 reqs, 7,026 B |
32.856 |
30.967 |
30.567 |
33.692 |
entryM2 (Float32Array, 4,088,448 B) |
4,088,448 (3.90 MiB) |
Two concrete observations from the decode measurement:
- COG overviews are stored on disk but skipped on read:
write_flow_dir_cog,write_fill_depth_cog, andwrite_outside_entry_cogusedriver="COG"with GDAL's default overview generation ([2, 4]), whilereadStoredRasteronly ever readsfile.getImage(0). Becausegeotifffetches HTTP byte ranges,openFlowDirGridtransfers only331,486bytes (56.6%of the585,403-byte file) to read full-resolutionflow_dir. - Memory footprint in the app:
openFlowDirGridholds twoUint8Arrays (pointers+validMask,2 bytes/cell=2,044,224bytes on Fargo).openFillDepthGridwidens theuint16millimeter raster into aFloat32Arrayof meters (4,088,448bytes), andopenOutsideEntryGridholds aFloat32Array(4,088,448bytes). All three are lazy-loaded only when a user opens a water or culvert tool (apps/web/src/app/projects/[projectId]/workspace-context.tsx), totaling10,221,120bytes (9.75 MiB) on the main thread when all three are loaded (plus a structured-cloned copy inside theTerrainCalcClientweb worker when water calculations run there).
Plain answer for a 160-acre field
Yes, for a 160-acre field at 1.0 m, the flow-direction grid is small enough to store with every terrain and read in the browser. On real Fargo 1 m lidar (1,008 x 1,014 = 1,022,112 cells covering 243.45 ac with the 100 m buffer):
- Storage:
flow_diris585,403bytes (28.2%ofdem_original's2,075,502bytes,1.12%of the50 MiBlocal storage limit, and0.11%of the500 MiBproductionartifactsbucket limit). Together withfill_depth(629,082B) andoutside_entry(18,619B), the three hydrology companion COGs add1,233,104bytes (59.4%ofdem_original). - Browser read (measured in Node on a laptop, not a phone):
openFlowDirGridreads331,486bytes via byte ranges, decodes in15.682 msmedian (14.052to16.715 msacross five runs on an Apple M5 laptop), and holds2,044,224bytes (1.95 MiB) of typed arrays inConditionedFlowGrid. Phone decode time and cellular transfer latency have not been measured.
Township scope (cells only, not bytes)
A township-sized terrain was not built or measured here; it waits on Plan v3 item 379 (deferred by the owner). No stored byte size or decode time is estimated or extrapolated for a township. As pure arithmetic for a square 1-township project (23,040 ac = 6 mi x 6 mi = 9,656.064 m per side, becoming 9,856.064 m per side with DEFAULT_BUFFER_M = 100 m in gis_worker/terrain/aoi.py), the grid cell counts at each cell size offered in CELL_CHOICES_M (pointcloud.py) and GRID_SUGGESTIONS_M (dem.py) are:
| Cell size | Offered by | Grid dimensions (cells) | Total cells (cells, not bytes) | Fits worker 4 GiB arithmetic budget (36,333,158 cells)? |
|---|---|---|---|---|
0.25 m |
CELL_CHOICES_M |
39,425 x 39,425 |
1,554,330,625 |
No (refused) |
0.5 m |
CELL_CHOICES_M, GRID_SUGGESTIONS_M |
19,713 x 19,713 |
388,602,369 |
No (refused) |
1.0 m |
CELL_CHOICES_M, GRID_SUGGESTIONS_M |
9,857 x 9,857 |
97,160,449 |
No (refused) |
2.0 m |
CELL_CHOICES_M, GRID_SUGGESTIONS_M |
4,929 x 4,929 |
24,295,041 |
Yes (arithmetic) |
3.0 m |
CELL_CHOICES_M, GRID_SUGGESTIONS_M |
3,286 x 3,286 |
10,797,796 |
Yes (arithmetic) |
5.0 m |
CELL_CHOICES_M, GRID_SUGGESTIONS_M, recommendedCellSizeM default for 10,001 to 23,040 ac |
1,972 x 1,972 |
3,888,784 |
Yes (arithmetic) |
10.0 m |
GRID_SUGGESTIONS_M |
986 x 986 |
972,196 |
Yes (arithmetic) |
Conditioning repeatability (2026-11-30 finding and fix)
Three runs of real_build_checks.py on Fargo on 2026-11-30 (same commit, Apple M5, macOS, tilemapper-gis-worker:test run with --user "$(id -u):$(id -g)") before fixing WhiteboxTools settings.json write permissions gave byte-identical dem_original.tif, fill_depth.tif, and outside_entry.tif, but three different dem_conditioned.tif and flow_dir.tif files:
| Grid | Pre-fix Run A | Pre-fix Run B | Pre-fix Run C |
|---|---|---|---|
dem_original.tif |
2,075,502 bytes (9775cbb6808e0b13...) |
same | same |
fill_depth.tif |
629,082 bytes (d5e20f513a4d108b...) |
same | same |
outside_entry.tif |
18,619 bytes (d0981fc463996574...) |
same | same |
dem_conditioned.tif |
2,108,457 bytes |
2,108,420 bytes |
2,108,423 bytes |
flow_dir.tif |
585,403 bytes |
585,406 bytes |
585,461 bytes |
Out of 1,022,112 cells, dem_conditioned differed at 497 cells (A vs B, largest 0.080 m), 349 cells (B vs C, largest 0.067 m), and 469 cells (A vs C); flow_dir differed at 1,007 (A vs B), 733 (B vs C), and 958 (A vs C). Because --user "$(id -u):$(id -g)" could not write /opt/conda/bin/settings.json, WhiteboxTools v2.4.0 silently ignored --max_procs=1 and ran BreachDepressionsLeastCost multi-threaded.
After updating _run_whitebox in services/gis-worker/gis_worker/terrain/hydrology.py to execute a per-run private copy of whitebox_tools inside the temporary working directory (see hydrology.md), two fresh runs of real_build_checks.py on Fargo under --user "$(id -u):$(id -g)" (Run 1 at 2026-11-30T09:54:27Z, total 261.547 s, analyze_hydrology 1.451 s; Run 2 at 2026-11-30T09:58:39Z, total 250.524 s, analyze_hydrology 1.120 s) produced byte-identical grids and 0 differing cells across all five COGs:
| Grid | Post-fix Run 1 (bytes) | Post-fix Run 2 (bytes) | SHA-256 (identical in both runs) | Differing cells |
|---|---|---|---|---|
dem_original.tif |
2,075,502 |
2,075,502 |
9775cbb6808e0b13f7762797d03f2a10c5a0dcd8a079cbfe415586aac0ab458c |
0 |
dem_conditioned.tif |
2,108,434 |
2,108,434 |
30c5540daf4800f55c37b5bd393952b370e72b6218578e7626b47247079b98d0 |
0 |
flow_dir.tif |
585,405 |
585,405 |
e3ef06fc57a2078f809f506fc1129b117d405a5eb9fd72738d76d7fc0f82c683 |
0 |
fill_depth.tif |
629,082 |
629,082 |
d5e20f513a4d108b5b5ad98f8af303451dba88e0687b95024cb9cc4e79cd576b |
0 |
outside_entry.tif |
18,619 |
18,619 |
d0981fc463996574270419ac8b8a9195ab6209f4b0c159d0dfc9bc8a09f86e42 |
0 |
Raw JSON outputs from the run
Host Node decode benchmark (benchmark-flow-dir-decode.mts)
Pasted verbatim from node apps/web/scripts/benchmark-flow-dir-decode.mts --flow-dir /tmp/tilemapper-real-checks.UQwP3b/hydrology_grids/flow_dir.tif --fill-depth /tmp/tilemapper-real-checks.UQwP3b/hydrology_grids/fill_depth.tif --outside-entry /tmp/tilemapper-real-checks.UQwP3b/hydrology_grids/outside_entry.tif --crs-epsg 6343:
{
"environment": {
"runtime": "Node v26.5.0",
"cpu": "Apple M5",
"arch": "arm64",
"platform": "darwin",
"note": "Measured in Node on a laptop with an in-memory HTTP byte-range shim, not in a browser and not on a phone."
},
"runs": 5,
"measurements": [
{
"grid": "flow_dir",
"readerCall": "openFlowDirGrid (apps/web/src/lib/terrain/surface-water.ts)",
"filePath": "/tmp/tilemapper-real-checks.UQwP3b/hydrology_grids/flow_dir.tif",
"fileBytes": 585403,
"sha256": "7b64d9bb74dbd15fb6ed0a444a2805c5fbc994c6204d787e4a96e23e6c4bba6f",
"width": 1008,
"height": 1014,
"cells": 1022112,
"rangeRequestsPerDecode": 18,
"bytesReadPerDecode": 331486,
"arraysInMemory": [
{
"name": "pointers",
"type": "Uint8Array",
"bytes": 1022112
},
{
"name": "validMask",
"type": "Uint8Array",
"bytes": 1022112
}
],
"totalArrayBytesInMemory": 2044224,
"warmupMs": 33.52,
"runsMs": [15.707, 14.465, 14.052, 15.682, 16.715],
"medianMs": 15.682,
"minMs": 14.052,
"maxMs": 16.715
},
{
"grid": "fill_depth",
"readerCall": "openFillDepthGrid (apps/web/src/lib/terrain/surface-water.ts)",
"filePath": "/tmp/tilemapper-real-checks.UQwP3b/hydrology_grids/fill_depth.tif",
"fileBytes": 629082,
"sha256": "d5e20f513a4d108b5b5ad98f8af303451dba88e0687b95024cb9cc4e79cd576b",
"width": 1008,
"height": 1014,
"cells": 1022112,
"rangeRequestsPerDecode": 50,
"bytesReadPerDecode": 439590,
"arraysInMemory": [
{
"name": "depthM",
"type": "Float32Array",
"bytes": 4088448
}
],
"totalArrayBytesInMemory": 4088448,
"warmupMs": 22.12,
"runsMs": [21.232, 20.02, 16.175, 16.755, 15.809],
"medianMs": 16.755,
"minMs": 15.809,
"maxMs": 21.232
},
{
"grid": "outside_entry",
"readerCall": "openOutsideEntryGrid (apps/web/src/lib/terrain/surface-water.ts)",
"filePath": "/tmp/tilemapper-real-checks.UQwP3b/hydrology_grids/outside_entry.tif",
"fileBytes": 18619,
"sha256": "d0981fc463996574270419ac8b8a9195ab6209f4b0c159d0dfc9bc8a09f86e42",
"width": 1008,
"height": 1014,
"cells": 1022112,
"rangeRequestsPerDecode": 18,
"bytesReadPerDecode": 7026,
"arraysInMemory": [
{
"name": "entryM2",
"type": "Float32Array",
"bytes": 4088448
}
],
"totalArrayBytesInMemory": 4088448,
"warmupMs": 32.856,
"runsMs": [31.768, 33.692, 30.967, 30.753, 30.567],
"medianMs": 30.967,
"minMs": 30.567,
"maxMs": 33.692
}
]
}
Worker Docker run (real_build_checks.py)
Pasted verbatim from /tmp/tilemapper-real-checks.UQwP3b/summary.json:
{
"run_utc": "2026-11-30T09:17:26.282009+00:00",
"total_elapsed_s": 221.829,
"field": {
"slug": "fargo-nd",
"label": "Fargo, ND",
"state": "ND",
"legal_description": "T138N R49W Sec 9 NW 1/4",
"field_acres": 156.96,
"aoi_acres": 243.45,
"crs_epsg": 6343,
"centroid_wgs84": [46.78601, -96.876782],
"loaded_from": "embedded (verbatim copy of packages/layout/fixtures/real-test-fields)"
},
"discovery": {
"elapsed_s": 105.242,
"recommended_id": "usgs_1m_dem:ND_3DEPProcessing_D22",
"failed_sources": [],
"usable_candidates": [
{
"id": "usgs_1m_dem:ND_3DEPProcessing_D22",
"source": "usgs_1m_dem",
"kind": "dem",
"quality_level": "QL 2",
"meets_specification": true,
"collected_start": "2019-05-26",
"collected_end": "2021-04-01",
"vertical_epsg": 5703,
"coverage": 1.0,
"resolution_m": 1.0,
"point_density_per_m2": null
},
{
"id": "usgs_ept:ND_3DEPProcessing_6_D22",
"source": "usgs_ept",
"kind": "point_cloud",
"quality_level": "QL 2",
"meets_specification": true,
"collected_start": "2019-05-26",
"collected_end": "2021-04-01",
"vertical_epsg": 5703,
"coverage": 1.0,
"resolution_m": null,
"point_density_per_m2": 2.30648
},
{
"id": "usgs_laz:ND_3DEPProcessing_D22",
"source": "usgs_laz",
"kind": "point_cloud",
"quality_level": "QL 2",
"meets_specification": true,
"collected_start": "2019-05-26",
"collected_end": "2021-04-01",
"vertical_epsg": 5703,
"coverage": 0.9999999996678405,
"resolution_m": null,
"point_density_per_m2": null
},
{
"id": "usgs_1m_dem:MN_RedRiver_D23",
"source": "usgs_1m_dem",
"kind": "dem",
"quality_level": null,
"meets_specification": null,
"collected_start": null,
"collected_end": null,
"vertical_epsg": 5703,
"coverage": 1.0,
"resolution_m": 1.0,
"point_density_per_m2": null
},
{
"id": "usgs_laz:IWI_REDRIVER_C_2008",
"source": "usgs_laz",
"kind": "point_cloud",
"quality_level": null,
"meets_specification": false,
"collected_start": "2008-04-21",
"collected_end": "2008-05-16",
"vertical_epsg": 5703,
"coverage": 0.9999999999036894,
"resolution_m": null,
"point_density_per_m2": null
}
]
},
"two_builds_primary": {
"dataset_id": "usgs_1m_dem:ND_3DEPProcessing_D22",
"dataset_name": "USGS 1 m DEM, ND_3DEPProcessing_D22",
"source": "usgs_1m_dem",
"kind": "dem",
"quality_level": "QL 2",
"meets_specification": true,
"collected_start": "2019-05-26",
"collected_end": "2021-04-01",
"vertical_epsg": 5703,
"geoid": "GEOID18",
"urls": [
"https://prd-tnm.s3.amazonaws.com/StagedProducts/Elevation/1m/Projects/ND_3DEPProcessing_D22/TIFF/USGS_1M_14_x66y519_ND_3DEPProcessing_D22.tif"
],
"stated_rmse_m": 0.1,
"accuracy_citation": "USGS Lidar Base Specification v2024 rev. A, Table 1 (non-vegetated vertical accuracy RMSEz by quality level, apps/web/src/lib/terrain/provenance.ts:verticalRmseFromProvenance)",
"build_1": {
"tif_path": "/work/two_builds/build_1/dem_original.tif",
"elapsed_s": 21.884,
"width": 1008,
"height": 1014,
"resolution_m": 1.0,
"source_resolution_m": 1.0,
"resampling": "none",
"covered": 1.0,
"elevation_min_m": 273.7099914550781,
"elevation_max_m": 276.82000732421875,
"ground_points_per_m2": null,
"joined_to_fill": null,
"reference_check": {
"checked": true,
"against_name": "USGS 1/3 arc-second DEM",
"median_m": 0.0003662109375,
"p5_m": -0.08823394775390625,
"p95_m": 0.06975555419921875,
"samples": 2466,
"notable": false,
"reason": null
},
"size_bytes": 2075502,
"sha256": "9775cbb6808e0b13f7762797d03f2a10c5a0dcd8a079cbfe415586aac0ab458c"
},
"build_2": {
"tif_path": "/work/two_builds/build_2/dem_original.tif",
"elapsed_s": 9.822,
"width": 1008,
"height": 1014,
"resolution_m": 1.0,
"source_resolution_m": 1.0,
"resampling": "none",
"covered": 1.0,
"elevation_min_m": 273.7099914550781,
"elevation_max_m": 276.82000732421875,
"ground_points_per_m2": null,
"joined_to_fill": null,
"reference_check": {
"checked": true,
"against_name": "USGS 1/3 arc-second DEM",
"median_m": 0.0003662109375,
"p5_m": -0.08823394775390625,
"p95_m": 0.06975555419921875,
"samples": 2466,
"notable": false,
"reason": null
},
"size_bytes": 2075502,
"sha256": "9775cbb6808e0b13f7762797d03f2a10c5a0dcd8a079cbfe415586aac0ab458c"
},
"geotiffs_byte_identical": true,
"elevation_change_at_stated_accuracy": {
"ok": true,
"width": 1008,
"height": 1014,
"total_grid_cells": 1022112,
"valid_cells_compared": 985201,
"nodata_mismatch_cells": 0,
"cells_differing_at_all": 0,
"max_abs_diff_m": 0.0,
"combined_rmse_m": 0.1414213562373095,
"blank_band_m": 0.27718585822512665,
"changed_cells": 0,
"blank_cells": 985201,
"min_delta_m": 0.0,
"max_delta_m": 0.0,
"within_tolerance": true
},
"elevation_change_at_zero_tolerance": {
"ok": true,
"width": 1008,
"height": 1014,
"total_grid_cells": 1022112,
"valid_cells_compared": 985201,
"nodata_mismatch_cells": 0,
"cells_differing_at_all": 0,
"max_abs_diff_m": 0.0,
"combined_rmse_m": 0.0,
"blank_band_m": 0.0,
"changed_cells": 0,
"blank_cells": 985201,
"min_delta_m": 0.0,
"max_delta_m": 0.0,
"within_tolerance": true
}
},
"two_builds_ept_ground": {
"dataset_id": "usgs_ept:ND_3DEPProcessing_6_D22",
"dataset_name": "USGS point cloud (streaming), ND_3DEPProcessing_6_D22",
"source": "usgs_ept",
"kind": "point_cloud",
"quality_level": "QL 2",
"meets_specification": true,
"collected_start": "2019-05-26",
"collected_end": "2021-04-01",
"vertical_epsg": 5703,
"geoid": "GEOID18",
"urls": [
"https://s3-us-west-2.amazonaws.com/usgs-lidar-public/ND_3DEPProcessing_6_D22/ept.json"
],
"stated_rmse_m": 0.1,
"accuracy_citation": "USGS Lidar Base Specification v2024 rev. A, Table 1 (non-vegetated vertical accuracy RMSEz by quality level, apps/web/src/lib/terrain/provenance.ts:verticalRmseFromProvenance)",
"build_1": {
"tif_path": "/work/point_cloud_two_builds/build_1/dem_original.tif",
"elapsed_s": 25.301,
"width": 1008,
"height": 1014,
"resolution_m": 1.0,
"source_resolution_m": null,
"resampling": "idw",
"covered": 1.0,
"elevation_min_m": 273.7373962402344,
"elevation_max_m": 276.7950439453125,
"ground_points_per_m2": 2.3118183628636846,
"joined_to_fill": null,
"reference_check": {
"checked": true,
"against_name": "USGS 1/3 arc-second DEM",
"median_m": 0.000213623046875,
"p5_m": -0.0880889892578125,
"p95_m": 0.0635223388671875,
"samples": 2466,
"notable": false,
"reason": null
},
"size_bytes": 2005122,
"sha256": "bbd24682e3082a7210e032bfcd7d92e606a1546041dc81faf7aba1e24029de15"
},
"build_2": {
"tif_path": "/work/point_cloud_two_builds/build_2/dem_original.tif",
"elapsed_s": 24.964,
"width": 1008,
"height": 1014,
"resolution_m": 1.0,
"source_resolution_m": null,
"resampling": "idw",
"covered": 1.0,
"elevation_min_m": 273.7373962402344,
"elevation_max_m": 276.7950439453125,
"ground_points_per_m2": 2.3118183628636846,
"joined_to_fill": null,
"reference_check": {
"checked": true,
"against_name": "USGS 1/3 arc-second DEM",
"median_m": 0.000213623046875,
"p5_m": -0.0880889892578125,
"p95_m": 0.0635223388671875,
"samples": 2466,
"notable": false,
"reason": null
},
"size_bytes": 2005122,
"sha256": "bbd24682e3082a7210e032bfcd7d92e606a1546041dc81faf7aba1e24029de15"
},
"geotiffs_byte_identical": true,
"elevation_change_at_stated_accuracy": {
"ok": true,
"width": 1008,
"height": 1014,
"total_grid_cells": 1022112,
"valid_cells_compared": 985201,
"nodata_mismatch_cells": 0,
"cells_differing_at_all": 0,
"max_abs_diff_m": 0.0,
"combined_rmse_m": 0.1414213562373095,
"blank_band_m": 0.27718585822512665,
"changed_cells": 0,
"blank_cells": 985201,
"min_delta_m": 0.0,
"max_delta_m": 0.0,
"within_tolerance": true
},
"elevation_change_at_zero_tolerance": {
"ok": true,
"width": 1008,
"height": 1014,
"total_grid_cells": 1022112,
"valid_cells_compared": 985201,
"nodata_mismatch_cells": 0,
"cells_differing_at_all": 0,
"max_abs_diff_m": 0.0,
"combined_rmse_m": 0.0,
"blank_band_m": 0.0,
"changed_cells": 0,
"blank_cells": 985201,
"min_delta_m": 0.0,
"max_delta_m": 0.0,
"within_tolerance": true
}
},
"first_return_open_ground": {
"ran": true,
"primary_ground_dataset": {
"id": "usgs_1m_dem:ND_3DEPProcessing_D22",
"name": "USGS 1 m DEM, ND_3DEPProcessing_D22",
"source": "usgs_1m_dem",
"quality_level": "QL 2",
"meets_specification": true,
"collected_start": "2019-05-26",
"collected_end": "2021-04-01",
"vertical_epsg": 5703,
"geoid": "GEOID18",
"stated_rmse_m": 0.1
},
"first_return_dataset": {
"id": "usgs_ept:ND_3DEPProcessing_6_D22",
"name": "USGS point cloud (streaming), ND_3DEPProcessing_6_D22",
"source": "usgs_ept",
"url": "https://s3-us-west-2.amazonaws.com/usgs-lidar-public/ND_3DEPProcessing_6_D22/ept.json",
"quality_level": "QL 2",
"meets_specification": true,
"collected_start": "2019-05-26",
"collected_end": "2021-04-01",
"vertical_epsg": 5703,
"geoid": "GEOID18",
"stated_rmse_m": 0.1,
"resampling": "first_return_max",
"covered": 1.0,
"first_return_points_per_m2": 2.3411651560690023,
"reference_check": {
"checked": true,
"against_name": "USGS 1/3 arc-second DEM",
"median_m": 0.0108184814453125,
"p5_m": -0.07588958740234375,
"p95_m": 0.0853118896484375,
"samples": 2466,
"notable": false,
"reason": null
},
"dsm_path": "/work/first_return/dsm.tif",
"dsm_size_bytes": 1791271,
"dsm_sha256": "20b438337b792e6b32d8aa86f2f23ec28d218d7920e4405322df1cded5938771",
"elapsed_s": 11.159
},
"flight_relationship": {
"same_dataset_id_in_app": false,
"same_usgs_3dep_project": true,
"dem_project_name": "ND_3DEPProcessing_D22",
"ept_workunit_name": "ND_3DEPProcessing_6_D22",
"usgs_3dep_workunit_record": {
"workunit": "ND_3DEPProcessing_6_D22",
"project": "ND_3DEPProcessing_D22",
"collect_start": 1558828800000,
"collect_end": 1617235200000,
"ql": "QL 2",
"spec": "USGS Lidar Base Specification 2022 Revision A",
"dem_gsd_meters": 1,
"horiz_crs": "6343",
"vert_crs": "5703",
"geoid": "GEOID18",
"lpc_category": "Meets",
"onemeter_category": "Meets",
"collect_start_iso": "2019-05-26",
"collect_end_iso": "2021-04-01"
},
"note": "In USGS 3DEP, workunit ND_3DEPProcessing_6_D22 belongs to project ND_3DEPProcessing_D22 with identical collection dates, so the 1 m DEM and EPT point cloud come from the same lidar flight. In TileMapper's build.py, same_dataset_as_primary compares dataset_id strings verbatim (usgs_1m_dem:ND_3DEPProcessing_D22 != usgs_ept:ND_3DEPProcessing_6_D22), so the app's UI labels the primary 1 m DEM vs. EPT first-return pair as a difference with combined accuracy."
},
"open_ground_rule": "Cells valid in both ground DEM and first-return DSM that received at least one usable lidar return (Withheld == 0 and Classification not in {7, 18}) inside the cell, where every usable point in the cell has Classification == 2 (ASPRS Ground), ReturnNumber == 1, and NumberOfReturns == 1.",
"point_cloud_summary": {
"usable_points_streamed": 2463486,
"stream_elapsed_s": 11.991,
"classification_counts": {
"1": 28211,
"2": 2435275
},
"return_number_counts": {
"1": 2458869,
"2": 4383,
"3": 233,
"4": 1
},
"number_of_returns_counts": {
"1": 2455269,
"2": 7517,
"3": 696,
"4": 4
},
"points_in_grid": 2397436,
"open_points_in_grid": 2365991,
"non_open_points_in_grid": 31445,
"both_valid_cells": 985201,
"gap_filled_or_empty_valid_cells": 34126,
"occupied_non_open_valid_cells": 22858,
"open_ground_cells": 928217,
"open_ground_share_of_valid_cells": 0.9421600262281504
},
"accuracy_citation": "USGS Lidar Base Specification v2024 rev. A, Table 1 (non-vegetated vertical accuracy RMSEz by quality level, apps/web/src/lib/terrain/provenance.ts:verticalRmseFromProvenance)",
"vs_primary_ground_dem": {
"cells_compared": 928217,
"median_m": 0.006988525390625,
"mean_m": 0.009966505826935033,
"rmse_m": 0.018385690203015267,
"std_m": 0.015449995658346366,
"p5_m": -0.006988525390625,
"p95_m": 0.0369873046875,
"p95_abs_m": 0.037017822265625,
"min_m": -0.2550048828125,
"max_m": 0.3349609375,
"max_abs_m": 0.3349609375,
"ground_stated_rmse_m": 0.1,
"surface_stated_rmse_m": 0.1,
"single_dataset_nva_95_m": 0.196,
"app_combined_rmse_m": 0.1414213562373095,
"app_95_band_m": 0.27718585822512665,
"rmse_within_ground_stated_rmse": true,
"p95_within_ground_stated_rmse": true,
"p95_abs_within_single_nva_95": true,
"p95_abs_within_app_95_band": true
},
"vs_same_point_cloud_ground": {
"elapsed_s": 9.68,
"ground_points_per_m2": 2.3192292038445883,
"cells_compared": 928217,
"median_m": 0.00946044921875,
"mean_m": 0.009971393350142329,
"rmse_m": 0.018367890362839836,
"std_m": 0.015425651073392065,
"p5_m": -0.01239013671875,
"p95_m": 0.033050537109375,
"p95_abs_m": 0.033782958984375,
"min_m": -0.250640869140625,
"max_m": 0.30511474609375,
"max_abs_m": 0.30511474609375,
"ground_stated_rmse_m": 0.1,
"surface_stated_rmse_m": 0.1,
"single_dataset_nva_95_m": 0.196,
"app_combined_rmse_m": 0.1,
"app_95_band_m": 0.196,
"rmse_within_ground_stated_rmse": true,
"p95_within_ground_stated_rmse": true,
"p95_abs_within_single_nva_95": true,
"p95_abs_within_app_95_band": true
}
},
"hydrology_grids": {
"ran": true,
"dataset_id": "usgs_1m_dem:ND_3DEPProcessing_D22",
"dataset_name": "USGS 1 m DEM, ND_3DEPProcessing_D22",
"resolution_m": 1.0,
"crs_epsg": 6343,
"traced_around": true,
"around_missing": null,
"fill_depth_scale_m": 0.001,
"timings_s": {
"ground_around": 0.001,
"analyze_hydrology": 1.08,
"write_dem_conditioned": 0.054,
"write_flow_dir": 0.038,
"write_fill_depth": 0.049,
"write_outside_entry": 0.015
},
"grid_contents": {
"valid_cells": 985201,
"nodata_cells": 36911,
"flow_dir_nonzero_cells": 984435,
"flow_dir_zero_cells": 37677,
"flow_dir_unique_values": [0, 1, 2, 4, 8, 16, 32, 64, 128],
"fill_depth_wet_cells": 288522,
"fill_depth_max_m": 0.59100341796875,
"outside_entry_nonzero_cells": 55,
"outside_entry_total_m2": 12384000.0
},
"grids": {
"dem_original": {
"artifact_key": "dem_original",
"storage_path": "dem/9775cbb6808e0b13f7762797d03f2a10c5a0dcd8a079cbfe415586aac0ab458c.tif",
"file_path": "/work/hydrology_grids/dem_original.tif",
"width": 1008,
"height": 1014,
"cells": 1022112,
"dtype": "float32",
"bytes_per_cell": 4,
"stored_bytes": 2075502,
"uncompressed_bytes": 4088448,
"compression_factor": 1.9698598218647827,
"stored_fraction_of_uncompressed": 0.5076503357753358,
"share_of_dem_original": 1.0,
"sha256": "9775cbb6808e0b13f7762797d03f2a10c5a0dcd8a079cbfe415586aac0ab458c",
"driver": "GTiff",
"compression": "DEFLATE",
"predictor": "3",
"block_shape": [256, 256],
"overviews": [2, 4],
"nodata": -999999.0,
"scales": [1.0]
},
"dem_conditioned": {
"artifact_key": "dem_conditioned",
"storage_path": "dem/a7b72957c9b667fae7f8256f1d116325e1faaefe3068f2529f237c0da44c59de.tif",
"file_path": "/work/hydrology_grids/dem_conditioned.tif",
"width": 1008,
"height": 1014,
"cells": 1022112,
"dtype": "float32",
"bytes_per_cell": 4,
"stored_bytes": 2108457,
"uncompressed_bytes": 4088448,
"compression_factor": 1.9390710837356417,
"stored_fraction_of_uncompressed": 0.5157108516483516,
"share_of_dem_original": 1.0158780863617574,
"sha256": "a7b72957c9b667fae7f8256f1d116325e1faaefe3068f2529f237c0da44c59de",
"driver": "GTiff",
"compression": "DEFLATE",
"predictor": "3",
"block_shape": [256, 256],
"overviews": [2, 4],
"nodata": -999999.0,
"scales": [1.0]
},
"flow_dir": {
"artifact_key": "flow_dir",
"storage_path": "flow_dir/7b64d9bb74dbd15fb6ed0a444a2805c5fbc994c6204d787e4a96e23e6c4bba6f.tif",
"file_path": "/work/hydrology_grids/flow_dir.tif",
"width": 1008,
"height": 1014,
"cells": 1022112,
"dtype": "uint8",
"bytes_per_cell": 1,
"stored_bytes": 585403,
"uncompressed_bytes": 1022112,
"compression_factor": 1.745997201927561,
"stored_fraction_of_uncompressed": 0.572738603988604,
"share_of_dem_original": 0.28205369110701894,
"sha256": "7b64d9bb74dbd15fb6ed0a444a2805c5fbc994c6204d787e4a96e23e6c4bba6f",
"driver": "GTiff",
"compression": "DEFLATE",
"predictor": null,
"block_shape": [256, 256],
"overviews": [2, 4],
"nodata": 0.0,
"scales": [1.0]
},
"fill_depth": {
"artifact_key": "fill_depth",
"storage_path": "fill_depth/d5e20f513a4d108b5b5ad98f8af303451dba88e0687b95024cb9cc4e79cd576b.tif",
"file_path": "/work/hydrology_grids/fill_depth.tif",
"width": 1008,
"height": 1014,
"cells": 1022112,
"dtype": "uint16",
"bytes_per_cell": 2,
"stored_bytes": 629082,
"uncompressed_bytes": 2044224,
"compression_factor": 3.249535036767862,
"stored_fraction_of_uncompressed": 0.3077363341786419,
"share_of_dem_original": 0.30309872021323037,
"sha256": "d5e20f513a4d108b5b5ad98f8af303451dba88e0687b95024cb9cc4e79cd576b",
"driver": "GTiff",
"compression": "DEFLATE",
"predictor": null,
"block_shape": [256, 256],
"overviews": [2, 4],
"nodata": null,
"scales": [0.001]
},
"outside_entry": {
"artifact_key": "outside_entry",
"storage_path": "outside_entry/d0981fc463996574270419ac8b8a9195ab6209f4b0c159d0dfc9bc8a09f86e42.tif",
"file_path": "/work/hydrology_grids/outside_entry.tif",
"width": 1008,
"height": 1014,
"cells": 1022112,
"dtype": "float32",
"bytes_per_cell": 4,
"stored_bytes": 18619,
"uncompressed_bytes": 4088448,
"compression_factor": 219.5847252806273,
"stored_fraction_of_uncompressed": 0.0045540508280892894,
"share_of_dem_original": 0.008970841752983134,
"sha256": "d0981fc463996574270419ac8b8a9195ab6209f4b0c159d0dfc9bc8a09f86e42",
"driver": "GTiff",
"compression": "DEFLATE",
"predictor": "3",
"block_shape": [256, 256],
"overviews": [2, 4],
"nodata": null,
"scales": [1.0]
}
},
"summary": {
"dem_original_stored_bytes": 2075502,
"dem_conditioned_stored_bytes": 2108457,
"flow_dir_stored_bytes": 585403,
"fill_depth_stored_bytes": 629082,
"outside_entry_stored_bytes": 18619,
"hydrology_companion_stored_bytes": 1233104,
"all_hydrology_with_conditioned_stored_bytes": 3341561,
"all_five_stored_bytes": 5417063,
"flow_dir_share_of_dem_original": 0.28205369110701894,
"hydrology_companion_share_of_dem_original": 0.5941232530732324,
"all_five_share_of_dem_original": 2.61000133943499,
"max_single_file_bytes": 2108457,
"local_storage_limit_bytes": 52428800,
"production_artifacts_limit_bytes": 524288000,
"flow_dir_share_of_local_limit": 0.011165676116943359,
"flow_dir_share_of_production_limit": 0.001116567611694336,
"max_single_file_fits_local_limit": true,
"max_single_file_fits_production_limit": true,
"all_five_fit_local_single_file_limit": true,
"all_five_fit_production_single_file_limit": true
},
"township_cell_counts_arithmetic_only": [
{
"cell_m": 0.25,
"side_cells": 39425,
"total_cells": 1554330625,
"in_point_cloud_choices": true,
"in_dem_grid_suggestions": false,
"fits_worker_4gib_arithmetic_budget": false
},
{
"cell_m": 0.5,
"side_cells": 19713,
"total_cells": 388602369,
"in_point_cloud_choices": true,
"in_dem_grid_suggestions": true,
"fits_worker_4gib_arithmetic_budget": false
},
{
"cell_m": 1.0,
"side_cells": 9857,
"total_cells": 97160449,
"in_point_cloud_choices": true,
"in_dem_grid_suggestions": true,
"fits_worker_4gib_arithmetic_budget": false
},
{
"cell_m": 2.0,
"side_cells": 4929,
"total_cells": 24295041,
"in_point_cloud_choices": true,
"in_dem_grid_suggestions": true,
"fits_worker_4gib_arithmetic_budget": true
},
{
"cell_m": 3.0,
"side_cells": 3286,
"total_cells": 10797796,
"in_point_cloud_choices": true,
"in_dem_grid_suggestions": true,
"fits_worker_4gib_arithmetic_budget": true
},
{
"cell_m": 5.0,
"side_cells": 1972,
"total_cells": 3888784,
"in_point_cloud_choices": true,
"in_dem_grid_suggestions": true,
"fits_worker_4gib_arithmetic_budget": true
},
{
"cell_m": 10.0,
"side_cells": 986,
"total_cells": 972196,
"in_point_cloud_choices": false,
"in_dem_grid_suggestions": true,
"fits_worker_4gib_arithmetic_budget": true
}
]
},
"verdicts": {
"two_builds_same_dataset_zero_change": "holds",
"first_return_matches_ground_over_open_ground": "holds",
"flow_dir_and_hydrology_grids_fit_storage_limits": "holds"
}
}