Skip to main content

A Spatial Accessibility Calculation package

Project description

SpatialAccessibility Lib

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:

pip install SpatialAccessibility

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.10.tar.gz (7.8 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.10-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: spatialaccessibility-0.0.10.tar.gz
  • Upload date:
  • Size: 7.8 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.10.tar.gz
Algorithm Hash digest
SHA256 1d274fc5da9c2617d50bd9a0adc35d79477a6dc747d85038d32016511ea5bc87
MD5 164bcfb32f34217b406b7ccb2ec78102
BLAKE2b-256 5e04f4e3fc61404c18ff14d1a54c70839e3fe5a515d4b64c0e7db58e392cf35b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spatialaccessibility-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 23fb8180ca066cb318a845913e6dca223240ad4dc1af7c2639b8b34f1bf82c61
MD5 7c6d4ec9515a18095ea23d4738f8b768
BLAKE2b-256 6fcead18d34f88f5bbd133c6c6894fca5b86a42237f7445c502fa47f909b5ddf

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