Skip to main content

A Spatial Accessibility Calculation package

Project description

SpatialAccessibility Lib

PyPI - Version

This is a library for spatial accessibility analysis in Python, hosted on https://github.com/wsqstar/SpatialAccessibility .

Inspried by the work of Prof.Fahui Wang and Dr.Lingbo Liu, DOI: 10.1201/9781003292302-14

Installation

To install the library, you can use pip:

# We recommend to use the pypi index url to install the library
!pip install SpatialAccessibility --index-url https://pypi.org/simple

or if you ara using Colab:

!pip install hatchling==1.26.3 build twine
!pip install git+https://github.com/wsqstar/SpatialAccessibility.git

Usage

To use the library, you need to have a od matrix of the study area. You can then use the following code to calculate the spatial accessibility:

from SpatialAccessibility import calculate_accessibility
# @title 示例调用
import pandas as pd
Data_df = pd.read_csv("datasets/Data.csv")

Data_df.rename(columns={'O_Popu': 'O_Demand'}, inplace=True)
Current_Accessibility, summary_accessibility = calculate_accessibility(Data_df,print_out=False)

# Load the dataframe

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spatialaccessibility-0.0.13.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spatialaccessibility-0.0.13-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file spatialaccessibility-0.0.13.tar.gz.

File metadata

  • Download URL: spatialaccessibility-0.0.13.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for spatialaccessibility-0.0.13.tar.gz
Algorithm Hash digest
SHA256 6c89c186315d08dcca54f9d9db319c4f49ca8347cde176fd327e34d2942d414d
MD5 8687b22dc7ffa1037aee05b6066accda
BLAKE2b-256 e558dcd7461cd7097cf728d08764eba533d02c7a36955ae167fd4be2a1c02353

See more details on using hashes here.

File details

Details for the file spatialaccessibility-0.0.13-py3-none-any.whl.

File metadata

File hashes

Hashes for spatialaccessibility-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 1cbc26823637c01e0cfd8861bbc78a4aec153dbe25ead4a721265b1b28230841
MD5 e7b0c93dc2834fefffb472ceb35d1a91
BLAKE2b-256 ac70ac7ebbb7d40c10b9f96179ac0723998492ec1a80900cb975df42aa3f7fe5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page