Hot answers tagged

37

Depending on which Kriging type you want to apply, there are different packages to choose from: Ordinary Kriging The most common version is implemented for example in: GRASS - v.krige SAGA - Module: Ordinary Kriging HPGL - ordinary-kriging() (PDF page 12) gstat - krige Simple Kriging Simple Kriging uses the average of the entire data set while ...


27

"Geographically weighted PCA" is very descriptive: in R, the program practically writes itself. (It needs more comment lines than actual lines of code.) Lets begin with the weights, because this is where geographically weighted PCA parts company from PCA itself. The term "geographical" means the weights depend on distances between a base point and the ...


24

As always, it depends on your objectives and the nature of the data. For completely mapped data, a powerful tool is Ripley's L function, a close relative of Ripley's K function. Lots of software can compute this. ArcGIS might do it by now; I haven't checked. CrimeStat does it. So do GeoDa and R. An example of its use, with associated maps, appears in ...


22

There's quite a few resources for learning 'spatial' R online, some of the better ones are: spatial-analyst.net A really solid blog post by Frank Davenport, with notes on some basic spatial data manipulation in R R Spatial Tips Barry Rowlingson's site containing some great examples and a cheatsheet


17

In a nutshell: Start with QGIS. There are several Free and Open Source tools for geospatial statistics. QGIS (Quantum GIS) There are several spatial statistics plugins in Quantum GIS, such as fTools: Tools for vector data analysis and management Zonal Statistics: Extended zonal statistics and report generation manageR: Interface to the R statistical ...


17

The following solution is based on a post by Roger Bivand on R-sig-Geo. I took his example replacing the German shapefile with some census data from Oregon you can download from here (take all shapefile components from 'Oregon counties and census data'). Let's start with loading the required packages and importing the shapefile into R. # Required packages ...


15

My guess is that you coordinate transformations have introduced tiny rounding errors (see an example below). As there is no way to set the tolerance in ST_Equals, this is causing ST_Equals to return false for some geometries that only differ in the nth decimal place, as the geometries have to be identical in every respect -- see the intersection matrix ...


14

It looks like there are a few options with GRASS GIS. Check out the GRASS Kriging Wiki page: http://grass.osgeo.org/wiki/Kriging A Google Summer of Code project in 2009 produced V.krige: http://grass.osgeo.org/wiki/V.krige_GSoC_2009 The GPL gstat package should work by itself or interfaced with GRASS GIS. http://www.gstat.org/ Dylan Beaudette has a ...


14

There's no strict algorithmic relationship between latitude and longitude and zip code - they're all custom areas generated by the postal service. You need access to a dataset that codes polygons / polygon centroids by zip code. 1) Complex Traditionally, this task (coupled with address lookup) is termed 'Geocoding'. The most convenient method for full ...


14

A couple I've found useful: I'd strongly recommend Analysing spatial point patterns in 'R' by Prof. Adrian Baddeley at the CSIRO in Australia. It covers the spatstat module in depth and I think it's a great resource for cluster analysis. Applied Spatial Data Analysis in R (Bivand, Roger S., Pebesma, Edzer J., Gómez-Rubio, Virgilio) and Spatial Statistics ...


13

ArcGIS v10 will do this. First run "Add XY coordinates". Then run Dissolve, select Point_X and Point_Y as the dissolve fields, add a statistics field, Sum. I just tested it on overlapping Points. The output has a single Point at each overlap location while the numeric field is summed, for that location.


13

GeoDa is free, cross-platform software designed for dynamic visualization, exploratory spatial data analysis, and spatial statistics. It has been around for almost 15 years (starting as an ArcView 3.x extension, it was recoded to be independent of ArcView after ESRI abandoned the old AV architecture). It is associated with an illustrious group of GIS ...


13

Evaluation of the options Contour lines represent continuous surfaces, so their comparison ultimately is a proxy for comparing those surfaces. Because both the surface values (elevations) and locations are potentially subject to error, there are two components to the comparison: in terms of value and in terms of position. The two cannot be separated, ...


12

Regarding R in general I'd really recommend having a look at Applied Spatial Data Analysis with R book. It offers very good introduction to spatial concepts within R framework. And webpage provides lots of code snippets and data to practice what you read about. Regarding coupling R and ArcGIS specifically, Python is one of the options here. Have a look at ...


12

If you are happy to read your raster into a numpy array (gdal can do this), then you could use the High Performance Geostatistics Library implementation from Python or C/C++. HPGL implements the following algorithms: Simple Kriging (SK) Ordinary Kriging (OK) Indicator Kriging (IK) Local Varying Mean Kriging (LVM Kriging) Simple CoKriging (...


12

Few more from my side: Virgilio Gómez Rubio's (he is the author of the famous/superuseful ASDAR book, mentioned in other answers) website provides materials to his tutorials from useR! conferences - slides, data and code are available. Apart from ADAR, there is now new book 'An Introduction to R for Spatial Analysis and Mapping' by Brundson & Comber ...


12

Learning by doing is my preferred way. And when it comes to spatial statistics, R is getting seriously powerful tool. So if this is an option browse through some course materials, download the data and try it yourself. Few starting points covering spatial autocorrelation (SA) (and generally speaking handling spatial stuff in R): Center for Studies in ...


11

The R-project has substantial number of spatial statistics software packages, but R has rather steep learning curve.


11

Calculation Subtract one raster from the other. (The direction of subtraction does not matter.) -1 0 -1 3 Square the result. 1 0 1 9 Average the values. (1 + 0 + 1 + 9)/(1 + 1 + 1 + 1) = 11/4. (I wrote this in a suggestive way to show how missing-data cells can be handled if your GIS does not have this capability: Create an indicator grid with 1's ...


11

Here is example code. It is fairly straight forward to adapt this code to work in a loop for processing all of your rasters. If your rasters share a common extent and resolution you can create a raster stack and loop through the bands in the stack. To create a vector containing all rasters in a directory, in a specific format, you can use "list.files" and ...


11

Update: There is now a specialized R package available on CRAN - GWmodel that includes geographically weighted PCA among other tools. From author's website: Our new R package for Geographically Weighted Modelling, GWmodel, was recently uploaded to CRAN. GWmodel provides range of Geographically Weighted data analysis approaches within a single ...


11

The ESRI Spatial Statistics tools do not calculate great circle distance if the data is in a geographic coordinate system (Lat/Long). As such, distance based spatial analysis is incorrect. The tools require that your projection units be in feet or meters. The "ZONE_OF_INDIFFERENCE" is a term made up by ESRI that basically means that within a local ...


10

Note: the following was edited following whuber's comment You might want to adopt a Monte Carlo approach. Here's a simple example. Assume you want to determine if the distribution of crime events A is statistically similar to that of B, you could compare the statistic between A and B events to an empirical distribution of such measure for randomly ...


10

"Statist" plugin calculates StDev. It has a "use only selected features option". You'll need to use "Select by location" first to select the features within your polygon-of-interest. Then run Statist.


10

Simple question, difficult solution. The best method I know uses simulated annealing (I have used this to select a few dozen points out of tens of thousands and it scales extremely well to selecting 200 points: the scaling is sublinear), but this requires careful coding and considerable experimentation, as well as a huge amount of computation. You should ...


10

Spatial statistics, like most statistical methods, is a large topic. If you would like spatial statistical theory presented in a statistical/mathematical framework my favorite is Cressie's book "Statistics for Spatial Data". Since Diggle's point process book is out of print, A good alternative, specific to point pattern analysis, is "Statistical Analysis ...


10

One way to approach this interesting problem is to view it as a robust estimator of the center of a bivariate point distribution. A (well-known) solution is to peel away convex hulls until nothing is left. The centroid of the last non-empty hull locates the center. (This is related to the bagplot. For more information, search the Web for "convex hull ...


9

I would stick to R. If speed is really a problem ( I doubt so 90.000 is not such a big number) you could try finding relationships between a subset of your data. Actually the first thing I would do is make a plot to look for obvious relationships. Even if arcgis contains tools to compare rasters, R will always give you a lot more statistical tools. Eg: ...


9

In R you can do library(raster) library(rgdal) r <- raster('raster_filename') p <- readOGR('shp_path', 'shp_file') e <- extract(r, p, fun=mean) e is a vector with the mean of the raster cell values for each polygon.


9

The ArcGIS online help page has the answer here: http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=How%20GWR%20Regression%20works In particular this quote seems particularly pertinent: Parameter estimates and predicted values for GWR are computed using the following spatial weighting function: exp(-d^2/b^2). There may be differences in this ...



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