Skip to main content

A Spatial Accessibility Calculation package

Project description

SpatialAccessibility Lib

This is a library for spatial accessibility analysis in Python.

Installation

To install the library, you can use pip:

pip install -i https://test.pypi.org/simple/ SpatialAccessibility==0.0.1

or if you ara using Colab:

!pip install hatchling
!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.1.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

spatialaccessibility-0.0.1-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

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