Summarizes raster value ranges and records the intended depth convention when supplied by the user.
Arguments
- x
A raster-like object accepted by
as_bathy().- units
Optional character label for vertical units, such as
"m".- positive_depth
Optional logical. Use
TRUEwhen larger positive values mean deeper water,FALSEwhen bathymetry is stored as negative elevation, orNULLwhen unknown.
Details
This function does not infer or alter scientific meaning. It reports the observed range and the user-supplied convention so downstream workflows can be explicit.
Examples
check_bathy_units(blueterra_example("bathy"), units = "m", positive_depth = FALSE)
#> # A tibble: 1 × 5
#> layer min max units positive_depth
#> <chr> <dbl> <dbl> <chr> <lgl>
#> 1 bathy_m -427. -15.9 m FALSE
