Calls the msens TiTiler factory /statistics endpoint. Returns a named list
with n, min, max, mean, std, p2, p50, p98. Use to set a
stable legend rescale that doesn't depend on per-tile computation.
Usage
cell_stats(
sql = NULL,
mtime = NULL,
mdl_key = NULL,
base = "https://titiler-v8.marinesensitivity.org"
)Arguments
- sql
character(1); same SELECT passed to
cell_tile_url()- mtime
character; optional cache-bust tag, see
cell_tile_url()- mdl_key
character(1); stable model key fast-path, see
cell_tile_url()- base
character; base URL of the tile service (v8
titiler-v8; seecell_tile_url()on why the legacy v7titilecachemust not be used)