Questions tagged [pysal]

Pysal is a spatial analysis library written in Python. It provides a variety of functions for interpreting common spatial data file formats and performing common analyses on them, with the goal of being easy to providing core functionality that is easier to integrate into higher level projects.

Pysal is an open-source library of spatial data analysis tools written in Python. It is able to read a variety of common data file formats such as shapefiles, DBF, CSV, WKT, GeoDa, GAL, GWT, and files from popular programs such as ArcGIS, MATLAB, and Stata. It provides functions for assessing autocorrelation, spatial econometrics, analyzing spatial data over time and more.

68 questions
0
votes
0 answers

Extract coefficients from spreg.OLS results

I'm trying to recreate an R spgwr notebook using PySAL. Using R, local coefficients can be directly extracted into a DataFrame like so: (CSV is available here) R library(spgwr) df <- read.csv("file.csv") attach(df) # calibrate bandwidth bw <-…
urschrei
  • 25,123
  • 12
  • 43
  • 84
0
votes
1 answer

Python: how to interpret Pysal results for a checkerboard in the case of the Queen contiguity?

I am trying to get a grip on pysal. Say I have a checkerboard created like this: import numpy as np import pysal def build_checkerboard(w, h) : re = np.r_[ w*[0,1] ] # even-numbered rows ro = np.r_[ w*[1,0] ] # odd-numbered…
FaCoffee
  • 7,609
  • 28
  • 99
  • 174
0
votes
0 answers

Using pysal to map the 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, currently when ran the cursor in idle just flashes and…
JTH
  • 445
  • 1
  • 5
  • 8
-1
votes
1 answer

Python - Can't import Pysal

I am using Pycharm in Windows 10, and I need to import Pysal to make some data transformations using DBF files with Pandas. For that I have: import pysal as ps import pandas as pd db = ps.open(dbfile) #Pysal to open DBF d = {col: dbfile.by_col(col)…
Pedro Alves
  • 1,004
  • 1
  • 21
  • 47
-1
votes
1 answer

Python error when shapefile reading PySal

I'm currently working with PySal library, I'm using queen_from_shapefile() fonction, and Python return an error for some shp and work perfectly for the others. All shapefiles has been created in the same way.They are area shapefiles. There is the…
-2
votes
1 answer

What are the differences between PySAL and spatstat?

I've been working with spatstat in R for quite a while now and am curious what the big differences between the packages (PySAL in python and spatstat in R) are functionality-wise. Is either more potent or faster, does one have more pre-set…
-3
votes
2 answers

Error in installing shapes module in Python

Hey Guys I written some code to make a simple hut using turtle and shapes in python but when i am importing the shapes then it is showing me error this is the error here is my code import turtle from shapes import * # naming the turtle pen =…
1 2 3 4
5