Questions tagged [spatial-statistics]

The field of study concerning statistical methods that use space and spatial relationships (such as distance, area, volume, length, height, orientation, centrality and/or other spatial characteristics of data) directly in their mathematical computations.

Filter by
Sorted by
Tagged with
0 votes
0 answers
22 views

Computing network kernel density estimate with Python

I'm using Python to do a project that requires me getting a network-based kernel density estimate to find areas with the densest concentration of car crashes. I have a road and car crash shapefile ...
janza32's user avatar
1 vote
0 answers
19 views

Calculate correlation statistics between observed stream and GIS delineated stream

In delineating watersheds, I use publicly available terrain data. I usually opt for ALOS 30m, but sometimes have to compare with SRTM 1 and 3-arc-second resolutions to see which is more accurate at ...
Chané de Bruyn's user avatar
1 vote
1 answer
63 views

Extracting min and max value from points shapefile

I have a DEM/grid with elevation values that's patchy and I have linear features crossing these areas. What I wanted to do is to measure the min and max elevation points falling along the line. My ...
Oli88's user avatar
  • 21
0 votes
0 answers
24 views

Rasterization (Vector to Raster) in QGIS overwrites Maxima values of the vector

I am working on macroseismic intensity maps in QGIS 3.30. My data are in the form of a point vector. In this case, each point has an attribute corresponding to the maximum intensity which was ...
bryce's user avatar
  • 1
3 votes
1 answer
45 views

Calculation using exp() function in raster calculator of QGIS fails

I have been trying to use this expression in the QGIS raster calculator: 1 / (1 + exp(-(β0 + β1 * RasterX1 + β2 * RasterX2 + ... + βn * RasterXn))) The above expression has been replaced with the ...
Andrea Pace's user avatar
1 vote
0 answers
51 views

QGIS - layout/ print composer and linking displayed maps

I wonder if it's possible to display a map in the layout/print composer when another is shown ? I have this layer where I've made some statistics with diagrams. It shows the percent of people that are ...
Sarah BOUTARD's user avatar
0 votes
0 answers
40 views

Regarding Geographically Weighted Regression (GWR) for non-linear problems

I am new to this topic. I am referring to this Geographically Weighted Regression tutorial. From my understanding, GWR does a weighted regression to model the dependencies between exploratory and ...
gis_grad_student's user avatar
1 vote
1 answer
52 views

How can I intersect two shapefiles without creating split features that have duplicated attributes in QGIS?

I am intersecting two shapefiles in QGIS: a city council map and the census blocks in the city's county with demographic variables (e.g., population). When I use the intersect tool in QGIS, the blocks ...
ericandrethegiant's user avatar
0 votes
0 answers
70 views

Error viewing the result of ee.Algorithms.CrossCorrelation

I am facing an issue when using ee.Algorithms.CrossCorrelation in Google Earth Engine. I am using an LST image and an NDVI image as input. The final product seems to have a visualization error since ...
Jhonnattan Oliveira's user avatar
0 votes
0 answers
18 views

Statistical variance of strata in carbon estimation areas

How do I determine statistical variance within project areas? I need a process to identify an area with similar raster data (ie soil moisture or soc) and elevation. What I want to do is determine the ...
Sarah's user avatar
  • 1
0 votes
1 answer
79 views

Getting null pixels during soil texture analysis

I am using 'OpenLandMap/SOL/SOL_TEXTURE-CLASS_USDA-TT_M/v02' band 'b0' when I run my analysis, why I am getting null pixels. Output Object (5 properties) 4: 67274 6: 963 7: 280852 9: 144241 null: ...
Khansa's user avatar
  • 5
0 votes
0 answers
31 views

Error in rep.int(sep, ncolumns - 1) : invalid 'times' value in bayesx function [R2BayesX package] in R

I am trying to run a STAR model within the R2BayesX package using the bayesx function. My model works with the cases of leptospirosis in Colombia ('observed' and 'expected') by department in a ...
Armando_Pezo's user avatar
0 votes
0 answers
111 views

Spatial Autocorrelation in R

I have a point pattern with which I would like to test for spatial autocorrelation (Moran's I). All of the examples I have seen test for autocorrelation for some variable y, however, since I just have ...
thatsroughbuddy's user avatar
0 votes
1 answer
50 views

spdep::localmoran How to access classified cluster values?

I am trying to get a LISA cluster map similar to this one, eg showing the 'High-high', 'Low-Low'.. cllassified values. But, I can't figure out how to extract this classifications from the ...
maycca's user avatar
  • 3,386
0 votes
0 answers
30 views

Can soil moisture values be calculated from only land surface temperature?

I'm working on a project that requires me to calculate soil moisture values at specific points under future climate scenarios. I have soil moisture values for the points from historical periods and ...
Mimi Haase's user avatar
2 votes
1 answer
56 views

Generate a height data table from 2 rasters at a given position - QGIS 3.32.0-Lima

I have two raster height maps and a (vector?) layer with points. The goal is to generate a statistic that looks something like this: Point 1: Layer 1: 100m Layer 2: 300m Point 2: Layer 1: 70m Layer 2: ...
qgisAsker082018's user avatar
0 votes
0 answers
41 views

Unique ID issue when using spatial weights matrix with Hot Spot Analysis (Getis-Ord Gi*)

I'm trying to follow along with an ArcGIS tutorial, and I'm running into an issue since I'm using my own data instead of the tutorial data. This is the tutorial and I'm working on the 'Identify crash ...
Chris's user avatar
  • 91
5 votes
1 answer
214 views

Computing grid cell statistics using LiDAR point cloud in QGIS

I have a LIDAR data .laz file of a DEM and a cell grid vector file. I want to compute grid cell statistics, like mean and variance using the LiDAR data. How can I do this in QGIS?
user1889930's user avatar
0 votes
0 answers
12 views

Regression model where N is greater than number of polygons

I'm trying to construct an analysis where 100 users record data for each polygon in the map below, a total of 17 values per user. Using the values from each polygon, I wanted to generate a model that ...
jimbo's user avatar
  • 1
-2 votes
1 answer
48 views

Summary statistics for a set of polygons [closed]

I have a set of a few millions polygons on which I'd like to compute summary statistics. I do know that what is relevant will depend on my needs, but I wonder if there is some agreed upon summary ...
cpa's user avatar
  • 119
2 votes
1 answer
60 views

QGIS: Calculating change in grid shapefile statics

I have two shapefiles which has two attribute information like below: fid DN 217536 2 217537 4 217538 6 217539 8 217540 10 217541 11 217852 3 217853 5 Both shapefiles have square grid of 250 ...
Raj's user avatar
  • 103
0 votes
0 answers
43 views

Emerging hot spot analysis on ArcGIS not analyzing the zeros

I'm trying to make 3D space-time cubes using ArcGIS Pro. When I enter my parameters to create the cubes, I choose the option of "fill empty bins with: zeros". The information for this ...
Rebecca Ostiguy's user avatar
1 vote
1 answer
300 views

Spatial autocorrelation between two variables using Python

I have two variables in the data for which I want to calculate the spatial autocorrelation. I want to check how they are spatially related with each other. I have already calculated the linear ...
Jawi289p's user avatar
0 votes
0 answers
68 views

SatScan (and rsatscan) writing empty shapefile

This is a reinterpretation of a previous question I've asked, refining the problem statement after some more troubleshooting. I'm implementing SatScan (v9.6.1) in R using rsatscan (v1.0.3, downloaded ...
Rishi Kowalski's user avatar
2 votes
1 answer
207 views

Can we stack raster layers to an existing GeoPackage in R

Does the terra package supports the exportation of stack raster to GeoPackage? I'm trying export a stack raster to GeoPackage using the terra package but I'm only able to for one layer manually: ...
mferreira's user avatar
  • 155
0 votes
1 answer
151 views

Estimate PDSI value in GEE for a specific shapefile area

How can I estimate PDSI value in GEE for a specific shapefile area? I am having some problem in the code. var feature = ee.FeatureCollection(table); Map.addLayer(feature, {}, 'My Polygon'); var ...
Lagnajeet Roy's user avatar
0 votes
0 answers
33 views

Wrong mean, mode and median values being displayed

I am using this code to extract mean values as well as spatial distribution, but I know for a fact that the max values are wrong as I can see greater values using inspector tool makes me doubt the ...
Saral Nigam's user avatar
1 vote
1 answer
36 views

How to get a mean value for several entries in the attribute table in QGIS

I have the following attribute table showing Drought Index values ("VHI_Index") and names of country districts ("NAME_3") in Ethiopia. There are multiple VHI values for every ...
Moyo's user avatar
  • 11
1 vote
1 answer
175 views

Issue when running spatial weights matrix in R

I am trying to run my code in R for a spatial weights matrix, but the following error shows up. I think it's got something to do with my data, but I'm not sure how to resolve it. nb = st_contiguity(...
GeographyGo's user avatar
1 vote
0 answers
31 views

Estimating resolution interpolated from point samples

I have a series of data samples (actually satellite measurements), and I am interpolating the data to produce a raster. I can interpolate to any arbitrary resolution I like; but how can I estimate the ...
winwaed's user avatar
  • 1,314
0 votes
1 answer
26 views

Successfully mosaicking rasters in R, but the analysis is not showing values

I am mosaicking three rasters together. The raster are mosaicking together successfully and will plot but any analysis of the rasters returns NA. Here is the code: import <- raster("...
Koda's user avatar
  • 25
1 vote
0 answers
32 views

Identify largest class in area

I have a layer of polygons with different land uses, and another layer of polygons with administrative areas. I'm trying to find a way to determine which land use is dominant (in terms of area) in ...
Jake's user avatar
  • 6,874
2 votes
0 answers
125 views

Standard deviation of interpolated data

I have a dataset with air-quality measurements in several points across one state, through several months. Thus, for each point I can calculate average, variance and so. My goal is to interpolate data ...
curious_geographer's user avatar
1 vote
1 answer
17 views

Number of categorical points in percentage within a polygon(s)

I have a point layer which has categorical values from 1-10, I would like to find the number of points both in count and percentage for each categorical value within a polygon (multipart polygons). ...
Arthur_Morgan's user avatar
0 votes
0 answers
171 views

Spatial Outliers Detection and Remove in R?

I have run my data in R, and created a distribution mapof my data (Clay Soil Property). I want to detect in a way the spatial outliers that i can see from the map, and remove them in order to execute ...
Dimitris K's user avatar
1 vote
1 answer
336 views

How Neighbor Contiguity Algorithm actually works

I want to identify neighbors based on queen or rook contiguities in a programming language that does not have the feature yet. I know that tools like spdep, pysal, geoda, and ArcGIS all implement this,...
thus__'s user avatar
  • 179
5 votes
3 answers
589 views

Calculating statistics of points within polygons of the same criterion in QGIS

In my QGIS 3.10 Project, I have one polygon layer and one point layer. Each of these layers has objects that belong to different categories based on some attributes: for simplicity, let's say RED and ...
DieterP's user avatar
  • 53
1 vote
0 answers
80 views

Area of zonal statistics more than area of polygon

I have a polygon and a raster (0.5m resolution). The area of polygon is 6249 sq.m (This is obtained from QGIS Identify features option - Ellipsoidal area, Cartesian area is 0.0 sq.deg, please check ...
Hrushi's user avatar
  • 169
1 vote
1 answer
234 views

Calculate the number of pixels from a raster layer, fall within pixels of another raster layer?

I am pretty new to QGIS. I have a .tif file (Land-Ocean mask) with a high spatial resolution (150m) on a global scale. I would like to first resize it to 0.25-degree spatial resolution, and then ...
Ehsan's user avatar
  • 75
3 votes
0 answers
83 views

Why does QGIS raster calculations interfere with grid cells?

I am working with some simple raster data on population counts in Nigeria in QGIS. I have two rasters, one for each gender, structured in 100x100m grid cells across the entirety of Nigeria. Each cell ...
zepljak's user avatar
  • 31
2 votes
1 answer
248 views

Interpolation with 10 data points

I have 9 data points showing groundwater level. The points are located in an approximately rectangular grid. The distance between the points is around 200-250 meters. Below you find a map of the ...
Lies's user avatar
  • 155
2 votes
2 answers
355 views

Getting different Moran indexes?

I'm struggling to evaluate the spatial autocorrelation of several databases. These databases consist of coordinates and different environmental information associated with those coordinates. Strangely,...
perep1972's user avatar
  • 115
1 vote
1 answer
193 views

Percentage of point features within polygon boundaries R

I am trying to create a histogram with the percentage of a concentration of points in a specific area. My data is someting like this: setwd("C:\\Users\\HP\\Desktop\\myrtos") getwd() library(...
MaryM's user avatar
  • 39
0 votes
1 answer
94 views

Correlation Chart Series Error in Google Earth Engine?

I'm going to get correlation series between LAI and FAPAR using NOAA AVHRR data by the below code in Google Earth Engine but returns error. Does anyone has idea? Error message: Error generating chart: ...
AmirHossein Ahrari's user avatar
1 vote
0 answers
71 views

Approximate value of properties based on sold properties in the area

I have a polygon layer in QGIS containing the parcel data for a city and surroundings, and a point layer with information about properties that have been sold recently. Since there are far fewer ...
Axekan's user avatar
  • 251
1 vote
1 answer
544 views

Treat NA as 0 in custom function for lapp in {terra} R library

I am trying to use the lapp function from the terra rstats library to do some raster-math. But when cells have NA in them, it is giving me the 'wrong' result. Here is my current function and result. a ...
TheRealJimShady's user avatar
1 vote
0 answers
244 views

Moran's I in panel data using contiguity matrix

I have some data in a panel format and want to run some spatial panel regression. In a cross-sectional framework, I would run a simple regression and test the spatial autocorrelation from the ...
Oalvinegro's user avatar
2 votes
1 answer
590 views

Calculating max and min pixel values for numerous overlaying rasters in QGIS

I have over 1000 interpolated raster layers. I'm trying to use QGIS 3.16 to create a confidence interval map by finding the difference between the highest and lowest values at each pixel and creating ...
Jen's user avatar
  • 149
1 vote
1 answer
305 views

GeoPandas Spatial Join with random samples

I have a geopandas DataFrame with Polygon geometry and another one with POINT geometry. I'd like to do a spatial join between them and randomly select a set of points that are within certain distance ...
kms's user avatar
  • 473
0 votes
1 answer
396 views

Rasterise a point pattern in R

I have a set of georeferenced points within an area for which I want to know the spatial distribution (sparse/clustered) according to a regular grid. I thought to describe the pattern using the Clark-...
Nico's user avatar
  • 305

1
2 3 4 5
14