Skip to main content

The ``hmi`` package is a python module that provides an interface to compute distances between locations based on [Özak's (2018, ](http://rdcu.be/I4YI)[2010)](http://omerozak.com/pdf/Ozak_voyage.pdf) [Human Mobility Index](https://human-mobility-index.github.io/).

Project description

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.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

hmi-0.1.tar.gz (22.9 kB view details)

Uploaded Source

Built Distribution

hmi-0.1-py3-none-any.whl (22.3 kB view details)

Uploaded Python 3

File details

Details for the file hmi-0.1.tar.gz.

File metadata

  • Download URL: hmi-0.1.tar.gz
  • Upload date:
  • Size: 22.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.11

File hashes

Hashes for hmi-0.1.tar.gz
Algorithm Hash digest
SHA256 79627688ef001e49e6084c1535b15e79b1776f54355546363e946556bf5275f6
MD5 18f5277fc2792a20eaee3090eda70d89
BLAKE2b-256 df83602f59dfaab83ab6e456e9a28bf9423b17d832278918df70a70e908301e4

See more details on using hashes here.

File details

Details for the file hmi-0.1-py3-none-any.whl.

File metadata

  • Download URL: hmi-0.1-py3-none-any.whl
  • Upload date:
  • Size: 22.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.11

File hashes

Hashes for hmi-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a826a116a85f77b74c401116f40e2fc8664d35516a3ea94b9e8e0320f2c9337b
MD5 117931f741f730cb808670f6da6eea07
BLAKE2b-256 9500232e044df157785204c0101111b2e66d96edad9caf124e58dd6eb6d239d5

See more details on using hashes here.

Supported by

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