Subterranean TMAT water table deficit cylinder model #77

Closed
opened 2026-10-14 22:28:43 +00:00 by yuris · 0 comments
Owner

What to build

Create the calculation engine in src/lib/domain/tmat-3d.ts to model 3D subterranean cylinder dimensions from groundwater sensor telemetry. Translate negative water table readings into subsurface depth vectors and risk severity indices.

Technical specifications

  1. Target files:
    • src/lib/domain/tmat-3d.ts: 3D deficit model functions.
    • src/lib/domain/__tests__/tmat-3d.test.ts: Vitest test suite.
  2. Formulas:
    • Surface level: water_table_cm >= 0.
    • Subterranean drought depth: Math.abs(water_table_cm) * vertical_scale_factor.
    • Critical flag: water_table_cm < -40.0.

Acceptance criteria

  • Computes exact vertical extrusion metrics from sensor reading.
  • Flags critical subterranean drought points deterministically.

Authoritative Specifications & Reference Documentation

  • Titik Gambut Architecture & Subsystem Contract: docs/ARCHITECTURE.md
  • Peraturan Pemerintah No. 71/2014 jo PP 57/2016: PP 71/2014 & PP 57/2016 — Indonesian statutory standard mandating peat water table depth >= -0.4m (-40 cm).
  • BRGM Real-Time Peat Groundwater (TMAT) Sensors: PRIMS TMAT Monitoring — Telemetry groundwater data.
  • BIG DEMNAS National Digital Elevation Model: Ina-Geoportal DEMNAS — 0.27 arc-second seamless national elevation mesh.
  • MapLibre GL JS Terrain 3D Spec: MapLibre 3D Terrain — Hardware-accelerated client elevation.
### What to build Create the calculation engine in `src/lib/domain/tmat-3d.ts` to model 3D subterranean cylinder dimensions from groundwater sensor telemetry. Translate negative water table readings into subsurface depth vectors and risk severity indices. ### Technical specifications 1. **Target files**: - `src/lib/domain/tmat-3d.ts`: 3D deficit model functions. - `src/lib/domain/__tests__/tmat-3d.test.ts`: Vitest test suite. 2. **Formulas**: - Surface level: `water_table_cm >= 0`. - Subterranean drought depth: `Math.abs(water_table_cm) * vertical_scale_factor`. - Critical flag: `water_table_cm < -40.0`. ### Acceptance criteria - [ ] Computes exact vertical extrusion metrics from sensor reading. - [ ] Flags critical subterranean drought points deterministically. --- ### Authoritative Specifications & Reference Documentation - **Titik Gambut Architecture & Subsystem Contract**: [`docs/ARCHITECTURE.md`](https://git.nokopia.com/yuris/titik-gambut-next/src/branch/main/docs/ARCHITECTURE.md) - **Peraturan Pemerintah No. 71/2014 jo PP 57/2016**: [PP 71/2014 & PP 57/2016](https://peraturan.bpk.go.id/Details/41517/pp-no-71-tahun-2014) — Indonesian statutory standard mandating peat water table depth >= -0.4m (-40 cm). - **BRGM Real-Time Peat Groundwater (TMAT) Sensors**: [PRIMS TMAT Monitoring](https://prims.brgm.go.id/) — Telemetry groundwater data. - **BIG DEMNAS National Digital Elevation Model**: [Ina-Geoportal DEMNAS](https://tanahair.indonesia.go.id/demnas/) — 0.27 arc-second seamless national elevation mesh. - **MapLibre GL JS Terrain 3D Spec**: [MapLibre 3D Terrain](https://maplibre.org/maplibre-gl-js/docs/examples/3d-terrain/) — Hardware-accelerated client elevation.
yuris changed title from Issue 64: [Backend] Subterranean TMAT water table deficit cylinder model to [Backend] Subterranean TMAT water table deficit cylinder model 2026-10-14 22:31:23 +00:00
yuris changed title from [Backend] Subterranean TMAT water table deficit cylinder model to Subterranean TMAT water table deficit cylinder model 2026-10-14 22:38:29 +00:00
yuris closed this issue 2026-10-15 04:53:35 +00:00
Sign in to join this conversation.
No labels
backend
frontend
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
yuris/titik-gambut-next#77
No description provided.