Skip to main content

A companion package to geostructures enabling geo-spatial-temporal data structures.

Project description

Geochron Logo

Geochron

Unit Tests

A companion package to geostructures (https://github.com/ccbest/geostructures) enabling geo-spatial-temporal data structures

Installation

Geochron is available on PYPI

$ pip install geochron 

Optional Dependencies

Geochron does not require any of the below dependencies to function, however some functionality uses:

  • networkx (chron-nets/geosynchnet)
  • timehash (geotimehash)

Overview

Geochron enables various ways of displaying and structuring geospatial-temporal data

The methods currently supported are:

Basic Functionality

The primary and simplest use case is converting a geostructures FeatureCollection to another datastructure. Geostructures FeatureCollections can take most major geospatial standards like shapefiles and geopandas. See geostructures documentation.

import datetime as dt
from geochron import convert_timehex, convert_chronnet, convert_geotimehash
from geostructures.geohash import H3Hasher

hasher = H3Hasher(resolution=11)

timehex_output = convert_timehex(fcol=Feature_Collection_of_time_shapes,
time_delta= dt.timedelta(hours=1), hash_func= hasher.hash_collection)

chronnet_output = convert_chronnet(fcol=Feature_Collection_of_time_shapes,
time_delta= dt.timedelta(hours=1), hash_func= hasher.hash_collection, self_loops = True, mode = "directed")

geotimehash_output = convert_geotimehash(fcol=Feature_Collection_of_time_shapes, precision = 8,
hash_func= hasher.hash_collection)

geosynchnet_output = convert_geosynchnet(fcol=Feature_Collection_of_time_shapes, 
time_delta= dt.timedelta(hours=1), hash_func= hasher.hash_collection)

timegrid_output = convert_time_grid(fcol=Feature_Collection_of_time_shapes, 
time_interval: dt.timedelta(days=1), time_subinterval dt.timedelta(hours=1), 
hash_func= hasher.hash_coordinates, integerize=False)

Geochron also provides helper functions for visualization using popular libraries like Folium and Pydeck. These helpers arlocated in geochron.visualizations

More Information

For an more in-depth introduction, please review our collection of Jupyter notebooks.

Reporting Issues / Requesting Features

The Geochron team uses Github issues to track development goals. Please include as much detail as possible so we can effectively triage your request.

Contributing

We welcome all contributors! Please review CONTRIBUTING.md for more information.

Developers

Eli Talbert (Sr. Data Scientist/PhD/Project Owner)
https://github.com/etalbert102

Carl Best (Sr. Data Scientist)
https://github.com/ccbest/

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

geochron-0.6.0.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

geochron-0.6.0-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

Details for the file geochron-0.6.0.tar.gz.

File metadata

  • Download URL: geochron-0.6.0.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for geochron-0.6.0.tar.gz
Algorithm Hash digest
SHA256 3f7f1a33b629f3e01afc2b6d6c4f9ebc70158b78578bef2a3787b06a28ad4fdc
MD5 bc4dd6b4b695b5375fdae807c8e770a6
BLAKE2b-256 bda5bba4a40ada43a5eff978f2d893f4802cb918d6c52fc5cc3f69daf6ca0a2b

See more details on using hashes here.

Provenance

The following attestation bundles were made for geochron-0.6.0.tar.gz:

Publisher: publish.yml on etalbert102/geochron

Attestations:

File details

Details for the file geochron-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: geochron-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 17.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for geochron-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 72ec0282d8af668a2f28dda34e0d17e1a8e1217011e2f9ed19f32a0a341c7c13
MD5 c65fa88b01fba4a11e6fde3ef0d6c59a
BLAKE2b-256 edc4558ca5a65d55ee155843011df9f129d4504c5853564383d6a88c5e3e4bf5

See more details on using hashes here.

Provenance

The following attestation bundles were made for geochron-0.6.0-py3-none-any.whl:

Publisher: publish.yml on etalbert102/geochron

Attestations:

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