Skip to main content
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/

Metadata

Release files for geochron 0.6.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 geochron 0.6.1
File Size Uploaded
geochron-0.6.1.tar.gz 17.9 kB Details

Built distribution (wheel)

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

Total release size: 35.3 kB

Release files / geochron-0.6.1.tar.gz

Download URL geochron-0.6.1.tar.gz
Size 17.9 kB
Tags Source
SHA-256 checksum
How to use checksums
015629bc8a914cff70943aaea7b0edd232a1f5f015c45ef8f10f97733b41e05b
BLAKE2b-256 checksum
How to use checksums
130ed0f3d73a6816991a9a993f893028759f798a5677c76255800e6edbb908b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2024.

Transparency log

Release files / geochron-0.6.1-py3-none-any.whl

Download URL geochron-0.6.1-py3-none-any.whl
Size 17.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
59172f89b1a1912f3fcdb463c0f4c970620f65ca26234960315b325ed474a1e0
BLAKE2b-256 checksum
How to use checksums
34e1db117166ae12b3f84d0e0ef415884e445ccb2fac16c05f4ba4bf1e361f8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2024.

Transparency log

Release history Release notifications | RSS feed

This release

0.6.1 This release

2 release files

0.6.0

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

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