Repository navigation
basinkit 0.9.0
Delineation that says when it cannot be trusted, and a report that no longer
dies on a large basin.
New
- Forcing a known channel.
delineate_dem(streams=)and an optional line
layer in QGIS, for where the elevation model cannot see the channel: a
culverted urban stream, a canal across a divide, a valley a road embankment
dams in the model. Lowering the cells by a fixed depth does nothing — 0.00
km2 at every depth up to 150 m — so each line is walked from its lower end
and forced to descend the whole way. concentration_time()returns six empirical formulas rather than one,
each with the catchments it was fitted to and the spread between them,
because on a single basin they disagree by a factor of four.curve_number()composes the SCS curve number from the land cover and
soil this package already fetches, with the two judgements it rests on
returned beside the number rather than buried under it.
Licence
The package and the ArcGIS toolbox move from MIT to Apache-2.0; the QGIS
plugin is GPL-3.0-or-later. Releases up to and including 0.8.4 remain MIT.
Neither licence grants the use of the name basinkit.
Answers that were wrong, quietly
TDX-Hydro took the reach whose recorded point was nearest, which beside a
confluence is a stub: 122 km2 of a 228 km2 basin. It now takes the unit
catchment containing the outlet — 241 km2. Asking for a backend by name
skipped every check auto ran, so api returned 1.9 km2 of the Danube and
tdx 73 km2 of the Thames, both as plain answers. Every backend is now
weighed the same way. A click with no mapped river nearby and a large basin —
a city centre, a lake surface — is reported instead of returned in silence.
Gaps that were silent
A failed CHIRPS month was dropped without a word, so one run of 2015–2020
returned 59 months of 72 and a trend read the hole as a shorter record.
TerraClimate did the same per year, and fell through to the bounding box on a
clip failure. A half-extracted BasinATLAS geodatabase was accepted as a cache
forever after.
Processes that were killed
The eight-page report read elevation at the 100 Mpx default and reached 6.1 GB
on the Koshi — the basin in the README's own quick start — where the kernel
killed it, taking QGIS with it. It now reads 4 Mpx at the point every caller
arrives, decimates rasters to 1,600 pixels for drawing, and completes in 1.33
GB and eighteen seconds. The DEM backend estimates before it downloads and
declines with the figure named rather than growing its window until it dies.
Also
Band identifiers (B04, B08) are translated per mission. export_3d no
longer crashes on a basin built from a file, or loses the whole export to one
unreadable scene. The CLI reports errors instead of tracebacks. attributes()
works on any backend. Thirteen smaller fixes besides.
295 tests offline, 26 over the network, up from 177 in 0.8.4.
Full detail in CHANGELOG.md.