Questions tagged [pysal]

PySAL is an open source library of spatial analysis functions written in Python.

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

Using Single Polygon for entire dataframe in PySAL?

I'm trying to calculate the queen contiguity weights using pysal's queen_from_shapefile() helper method based on this page Not being a GIS specialist I wanted to check my intuition on this Q&A ...
1
vote
0answers
62 views

QGIS3.8 Hotspot Analysis Plugin not installing

I'm hoping someone on here might be able to help me. I'm fairly new to working with QGIS I'm completely lost. For my PhD project I have to use QGIS to produce georeferenced heatmaps based on ...
2
votes
1answer
46 views

Fixing colors of LISA Cluster maps from Pysal?

I am using the LISA Cluster package from Pysal to create a LISA (Local Indicator of Spatial Autocorrelation) map. As the example of the documentation shows, the color lightblue is used to identify ...
0
votes
1answer
334 views

Hotspot analysis with geopandas? [closed]

Is it possible to perform a hotspot analysis (like the one you can do in ArcGIS - Getis-Ord Gi*) with Geopandas, or with any other Python library?
2
votes
1answer
322 views

Compute Moran's I on more than one attribute

I am trying to compute global Moran's I to check for spatial autocorrelation among areas of a city. I am using python, in particular geopandas and pysal. My geodataframe looks like: District_name|...
1
vote
0answers
139 views

Classify / section line or group of points according to shape (with shapely objects)

Is there any python module/function that classifies/sections a shapely line according to the shape the line forms? If not, I could do it with the positions of the points that form the line. I would ...
1
vote
0answers
210 views

Hotspot Analysis QGIS Error: An error has occurred while executing Python code: ValueError: Illegal field requested in GetField()

I am doing a hotspot analysis for chicken spatial distribution in QGIS using Ubuntu. I have already installed the repositories used for hotspot analysis. However, an error occurred after I chose a ...
2
votes
2answers
1k views

Moran's I on 2D arrays/rasters?

I would like to apply Moran's I spatial auto-correlation measure to 2D arrays or raster files in Python and I am wondering if there is an available implementation for it. I know Pysal offers an ...
2
votes
0answers
147 views

Using PySAL to perform Hot/Cold Spots

So I am trying to figure out how to understand the Getis Ord results from pysal. I have a geographically enabled datatframe, and I want to figure out how to find both hot and cold spots from the ...
2
votes
1answer
110 views

Error while running PySAL SpaceTimeEvents function

I'm new to PySAL and trying to run Knox test to find space-time correlation in my dataset. My original dataset is in the form of csv including attributes such latitude, longitude, date and other ...
1
vote
1answer
90 views

Find maximum theoretical join count (spatial statistics)

In addition to calculating the joint count statistic, I would like to compare the actual count of joins to the theoretical maximum count of joins. I know how to compute the statistic and find the ...
1
vote
1answer
686 views

Using R to do logistic geographically weighted regression(GWR) prediction

I'm using the R package "GWmodel" to do the logistic GWR, but this package doesn't provide the prediction function for generalized GWR(Binomial/Poisson). How can I do the Logistic GWR prediction using ...
2
votes
1answer
232 views

Read specific columns shapefile with PySAL

I'm using PySAL for work and I have encounter a problem. I want to calculate Moran’s I for serval fields, I can open and create a weight matrix from my shapefile (w) however I don't know how to ...
4
votes
1answer
716 views

Adding python module to QGIS python interpreter on mac?

I'm on OS X El Capitan running QGIS version 2.18.2 which I installed via the Kyngchaos installers. I'm trying to install a plugin, which requires, among other things, that Pysal needs to be installed....
4
votes
1answer
832 views

Spatial weight for PySAL from a geojson file or geodataframe?

I want to calculate the Moran I value of a geojson file through python. Recently I am trying to use pysal and I find that I need to get the a spatial weight to realize it. But from the official guide ...
1
vote
2answers
365 views

PySal and PostGIS (maybe via Shapely). How can these two interact?

I'm trying to learn the use of PySal and Python. As I'm already regular user of PostGIS, I would like to integrate the database as the storage medium for the data to be analysed. I'm using the test ...
2
votes
2answers
443 views

Distance-based spatial weights in pysal

I run into errors with distance-based spatial weights in pysal. When running a spatial lag model (e.g. twosls_sp.GM_Lag), I get the following exception: Exception: All entries on diagonal must equal ...
3
votes
1answer
871 views

Using pysal to map location of coordinates?

I am trying to map which county a set of coordinates I have are in. I want the code to go through each coordinate, check which county it is in, and then print the corresponding county. However, ...
0
votes
1answer
264 views

How to merge CSV and county shapefile?

I have some data in a CSV file. One of the interested variable is test done (1=done, 2=not done). There is a variable of county name in which I would like to join with a county shapefile. I only know ...
11
votes
1answer
723 views

PySAL natural breaks from Numpy array

I am attempting to extract natural break values from a raster using Python. The intended process goes: Arcpy raster object to NumPy Array (using RasterToNumPyArray) to natural break values (using ...
3
votes
0answers
731 views

python equivalent of spatstat's spatial point process functions

Is there a free python package (i.e. PySAL?) that implements the standard summary statistics for spatial point processes, e.g. the F, G, J, and K functions? I'm happy to use R (i.e. spatstat) if ...
1
vote
3answers
651 views

Where to find PySAL toolbox for ArcGIS?

I installed PySAL but i can't find the toolbox for ArcGIS.
4
votes
1answer
329 views

BV LISA using PySal?

I want to run a LISA with a time series spatially lagged variable using PYSAL. I see that LISA will allow the definition of y & w but not Wy(t-k). Any thoughts how I can get the lagged variable ...