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:

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.11.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.11-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: spatialaccessibility-0.0.11.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.11.tar.gz
Algorithm Hash digest
SHA256 7ad15f80cb4f2973e8d807f28de475e2e23baea422ecd494bd12875afe9716e4
MD5 77c53e82d44aec9559bd887307f3317b
BLAKE2b-256 c3939dd3cddd288b572a4362e739de4a966b7d4cdbd23aea5d9e9f8c95a88377

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spatialaccessibility-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 6da6348d8ca76f80c37eb586e5165ecd387c587b7dfa241663aee41cf91cf98c
MD5 a442f6b80c70663c7544be12999d1dd6
BLAKE2b-256 972d638bd7776d29b7986f64bbdd76f7cc76a150ca9d0f647be656a423aa5306

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