Skip to main content

The Human Mobility Index Python package - hmi

PyPiVersion Pyversions ReadTheDocs

The hmi package is a python module that provides an interface to compute distances between locations based on Özak's (2018, 2010) Human Mobility Index. There are three main classes of computations based on the Human Mobility Index:

  • HMI: Only land based mobility
  • HMISea: Land based mobility and pre-1500CE seafaring technologies
  • HMIOcean: Land based mobility and post-1500CE seafaring technologies

It includes tools to

  • Compute distances between locations
  • Compute isolation measures for locations (see e.g. Ashraf, Galor, and Özak (2010))
  • Generate optimal routes as shape files
  • Export optimal travel times, routes, etc. to shape files, CSV files, etc

Install

Given the requirements of the package, the best way to install is to first create a mamba/conda environment as follows (this creates an python-3.11 environment and adds some basic packages that are needed).

mamba create --name HMI --override-channels -c conda-forge python=3.11 pip geopandas georasters jupyterlab jupyter seaborn geoplot pysal 

activate the environment

mamba activate HMI

then

 pip install hmi

or

 pip install git+git://github.com/ozak/hmi.git

Example Usage: HMI

 import hmi 

Issues

Find a bug? Report it via github issues by providing

  • a link to download the smallest possible raster and vector dataset necessary to reproduce the error
  • python code or command to reproduce the error
  • information on your environment: versions of python, gdal and numpy and system memory

Copyright

© Ömer Özak (2014)

This code and data is provided under Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) License and GPLv3.

Metadata

Release files for hmi 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hmi 0.1
File Size Uploaded
hmi-0.1.tar.gz 22.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hmi 0.1
File Interpreter ABI Platform
hmi-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 45.2 kB

Release files / hmi-0.1.tar.gz

Download URL hmi-0.1.tar.gz
Size 22.9 kB
Tags Source
SHA-256 checksum
How to use checksums
79627688ef001e49e6084c1535b15e79b1776f54355546363e946556bf5275f6
BLAKE2b-256 checksum
How to use checksums
df83602f59dfaab83ab6e456e9a28bf9423b17d832278918df70a70e908301e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.11.11

Release files / hmi-0.1-py3-none-any.whl

Download URL hmi-0.1-py3-none-any.whl
Size 22.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a826a116a85f77b74c401116f40e2fc8664d35516a3ea94b9e8e0320f2c9337b
BLAKE2b-256 checksum
How to use checksums
9500232e044df157785204c0101111b2e66d96edad9caf124e58dd6eb6d239d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.11.11

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page