Calculates the quantiles of a raster object.

Syntax

raster ST_StatsQuantile(raster raster_obj)

Parameters

Parameter Description
raster_obj The name of the raster object.

Description

This function calculates quantiles based on bands and records the quantiles in the metadata of the raster object.

Examples

UPDATE rat_quantile 
SET raster = ST_StatsQuantile(raster)
WHERE id = 1;