Skip to main content
14 votes

Looking for QGIS equivalent of ArcGIS "Summarize"

QGIS has a Statistics Panel that allows you to view a long list of descriptive statistics for whichever vector layer you choose. To open the statistical summary tool, either click View -> ...
ahmadhanb's user avatar
  • 41.1k
10 votes
Accepted

ArcGIS: table statistics range, method?

Here is a python solution, using arcpy to access the data and numpy to calculate the statistical values. Using arcpy.da.SearchCursor() write the values to a list. Use python.numpy.percentile() to ...
bebego's user avatar
  • 1,173
10 votes
Accepted

Performing Kriging in QGIS

The great thing about QGIS is its modular design, based on which you can use the geoprocessing engines of various other systems directly as tools in QGIS (GRASS, SAGA, GDAL, OGR, ...). In order to do ...
Jochen Schwarze's user avatar
10 votes
Accepted

Exporting features when column value between specific percentiles

You can create a new function which returns a percentile value, then, compare the field value. Open Select Feature by Expression tool Create new function in the Function Editor using the script below....
Noura's user avatar
  • 3,429
9 votes

Exporting features when column value between specific percentiles

You can use Select by expression and paste this expressions (see also screenshots below): For the lowest 10%: "value" <= array_get( array_sort ( array_agg ("value"...
Babel's user avatar
  • 73.1k
8 votes
Accepted

How to create Raster statistics with GDAL externally?

As a workaround you can use command gdalinfo -stats -hist input.tif Selecting the histogram option triggers the creation of input.tif.aux.xml file. EDIT I have learned that actually there is no need ...
user30184's user avatar
  • 67.3k
8 votes

Looking for QGIS equivalent of ArcGIS "Summarize"

QGIS 3.14 does this with the "Statistics by Categories" tool under Vector Analysis in the QGIS's Processing Toolbox (Ctrl+Alt+T).
Sideshow Bob's user avatar
  • 2,343
7 votes
Accepted

Calculating percentage of number of features in layer in QGIS

You can use a one-step expression using count() function: count("ID","CLASS") / count("ID") * 100 This will return the percentage of the current class of the total ...
MrXsquared's user avatar
  • 34.9k
6 votes

How to get GDAL to create statistics for GTiff in Python

If the statistics are already calculated and included in the file internally, gdalinfo -stats wont create a additional PAM statistics file(.aux.xml) for using GDAL 2.1.0. But its very easy to ...
Manuel's user avatar
  • 307
6 votes

Calculating Statistics Based on Expression in QGIS?

You may use the Statistics by categories algorithm from the Processing Toolbox and set these parameters: Field to calculates statistics on: "Column 2" (or whatever fields that stores the area values);...
mgri's user avatar
  • 16.3k
6 votes

Getting multiband raster's min and max values with Python in QGIS?

Next code works with multi band raster. It uses QgsRasterDataProvider objects to calculate statistic through QgsRasterBandStats objects. layer = iface.activeLayer() extent = layer.extent() provider ...
xunilk's user avatar
  • 30k
6 votes

Statistical comparison between different rasters using R?

I thought about subtracting each method raster to the RUSLE raster and then compare the means of the resulting rasters. That is not a great approach as the mean can be zero, but the errors very ...
Robert Hijmans's user avatar
6 votes

Calculating percentage of number of features in layer in QGIS

The solution is to use the function aggregate(). I did it in a two-step process: Tool Aggregate with count as aggregation, and subsequently tool Field Calculator with the following expression (where ...
Honeybear's user avatar
  • 2,494
6 votes
Accepted

QGIS - atlas print composer how to display mutiple values when adding attribute table?

If you have everything on one layer (as it seems to be the case), you should use aggregate functions and filter the aggregated city_names by conty_name to create an array with all cities in a county ...
Babel's user avatar
  • 73.1k
5 votes

Export summary statistics to other format than Excel

Use Table To Table which says that it: Converts an input table to a dBASE or geodatabase table. Name your output table *.csv, for example outtable.csv
Bera's user avatar
  • 74.8k
5 votes

Getting the maximum value of a vector field per each unique value of another vector field using PyQGIS?

If I understand your question, this code should work well: layer = iface.activeLayer() # load the layer as you want max_values = {} unique_val_field = "Code" # set the name for the field containing ...
mgri's user avatar
  • 16.3k
5 votes
Accepted

QGIS "Statistics by Categories" tool greyed out at 3.8.3

Click the ... button next to "Field(s" with categories". This should open a multi-select window where you can choose one or more fields.
csk's user avatar
  • 24.9k
5 votes
Accepted

Summarizing Attributes in ArcGIS Online

You could look at the Summary widget. It is simple enough to configure, just choose the field you want to summarise and define the summary method. You can of course alter the name of the widget/set ...
JClarkson's user avatar
  • 885
5 votes

GRASS - Calculate 90th percentile of a timeseries dataset

The module r.univar can take a comma separated list of rasters as input, and calculates stats on the whole list. Does that help? MAPLIST=`g.list rast pattern="rast*" separator=comma` g....
Micha's user avatar
  • 15.7k
5 votes

Calculating the average of one field dependent on another in QGIS

If you prefer a Processing Tool (Ctrl+Alt+T), you can use the "Statistics by categories" tool: It does create a new layer with no geometries and unique categories per row and different ...
MrXsquared's user avatar
  • 34.9k
4 votes

Getting tabular statistics from table using QGIS?

Years later, I had the same question with QGIS 2.18.16, and I came across this thread. The QGIS alternative to the Arc Frequency tool is: Toolbox > QGIS Geoalgorithms > Vector table tools > ...
Stu Smith's user avatar
  • 8,192
4 votes

How to sum up pixel values in QGIS?

You can use pyqgis and create a numpy array and sum: import gdal import numpy as np ds = gdal.Open(r'C:\somefolder\someraster.tif') band1 = ds.GetRasterBand(1).ReadAsArray() s = np.sum(band1) print(s)...
Bera's user avatar
  • 74.8k
4 votes

How to sum up pixel values in QGIS?

In QGIS 2.x, you can get raster statistics for the entire layer (including the sum of all pixel values in the band) by using the Raster layer statistics algorithm in the Processing toolbox. ...
Stephen Bosch's user avatar
4 votes
Accepted

Getting Negative values in Regression based Biomass model!

The crux is most likely in the fact that you are using a MLR, as this method can indeed result in values below 0, while a negative biomass obviously does not exist in real life. As for the ...
LMB's user avatar
  • 1,166
4 votes

Statistically comparing two spatially congruent continuous rasters?

Spatial process can be introduced by the underlying data that went into a probabilistic estimate, the model itself and the grain of the raster. You also have the addition of potentially of introduced ...
Jeffrey Evans's user avatar
4 votes
Accepted

Looking for QGIS equivalent of ArcGIS "Summarize"

Try the plugin: "Dissolve with Stats", which can be installed from the plugin manager. After starting the plugin from the Vector menu, you chose which layer to dissolve, which field in the ...
Micha's user avatar
  • 15.7k
4 votes

Manipulate the value within Show Feature Count

You can't. "Show feature count" does exactly what it says: it shows the total number of features. It doesn't allow you to see other stats in the Layer panel. There are a number of other ways to ...
csk's user avatar
  • 24.9k
4 votes

Calculate the percentage of a Line passing through Polygons

If you just want an outpout list with the result, I would recommend to use a database e.g. PostgreSQL + PostGIS or Spatialite. There you can do it with a simple statement like this: select l....
Michael's user avatar
  • 454
4 votes

Calculating Length of Lines within polygon (buffered area) using QGIS?

Tested on QGIS 2.18 and QGIS 3.4 I can suggest using a "Virtual Layer" through Layer > Add Layer > Add/Edit Virtual Layer... Let's assume we have seven features in "roads" (lite lilac lines) ...
Taras's user avatar
  • 33.3k
4 votes
Accepted

Variogram for clustered data point

A variogram makes no assumptions on the data, it is a measure of the data, and if binned, it is a summary measure of the data. Your clustered points mean you will have a lot of close pairs of points ...
Spacedman's user avatar
  • 65k

Only top scored, non community-wiki answers of a minimum length are eligible