Questions tagged [pysal]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
35 views

Is it possible to compute higher order queens contiguity in PySAL?

I'm computing a spatial weights matrix in PySAL using Queens Contiguity. My problem is that I would like to consider areas that are contiguous to the first set of neighbours (ie. 2nd or even 3rd order ...
0
votes
1answer
38 views

How to interpret spatial random permutations against the observed value of the statistic (PySAL)

I have a map for which I calculate the value of the Global Moran's I. With the use of PySAL, there is also an option to do a computational inference. The result of such analysis is shown below. From ...
0
votes
0answers
31 views

“PySAL”python qgis says — is not recognised as an internal or external command

while loading hotspot analysis, it gives following 2 error 1. Couldn't load plugin 'HotspotAnalysis' due to an error when calling its classFactory() method 2. ModuleNotFoundError: No module named '...
2
votes
0answers
160 views

Find spatial and temporal variability from a GeoPandas dataframe of polygons

I have a geopandas dataframe of polygons (all rectangles ~100mx120m) and each of these polygons has an attribute for time and % ice coverage. This is all derived from imagery I collected in the ...
0
votes
2answers
33 views

PySAL reading DBF column as None

I'm reading a Shapefile with PySAL in order to do some anlysis. The shapefile's DBF contains three columns, "id", "count" and "population". All three are large integers with no Null values. I try to ...
1
vote
0answers
27 views

Pathfinding in mixed network

I have three geopandas GeoDataFrame representing a road network, telecommunication wires and a set of network devices to be connected to the network. They are respectively depicted as yellow lines, ...
0
votes
0answers
41 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
202 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
115 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
1k 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
652 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|...
2
votes
0answers
196 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
300 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
2k 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
1answer
218 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
147 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
103 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
914 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 ...
3
votes
1answer
282 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
1k 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
1k 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
401 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
566 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
898 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
339 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
851 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 ...
2
votes
1answer
876 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 that'...
1
vote
3answers
692 views

Where to find PySAL toolbox for ArcGIS?

I installed PySAL but i can't find the toolbox for ArcGIS.
4
votes
1answer
362 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 ...