Do you need to calculate the values of the entire extent of the raster?
if so in QGIS is very easy and fast, you can use expressions and get the global statistics of your raster in a table.
- Create a temporary layer, not geometry. Or create a dbf table
- In the toolbar there is a button that allows you to add a record.
- Open the field calculator, then go to the expressions in the raster option, you will find two options: statistics and value.
We will use the statistics, you can calculate the value:
- max: maximum
- min: minimum
- avg: average
- stdev: standard deviation
- range: range
- sum: sum
An example calculating the average, give a name to the field, define a decimal number, with two or more decimals.
- Write and execute the expression:
raster_statistic('BASIN001D8',1,'avg')
In this case, 'CUENCA001D8' is the name of the layer as it appears in the layers panel.
The value 1 is the band of the raster layer being queried.