A companion package to geostructures enabling geo-spatial-temporal data structures.
Project description
Geochron
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:
- time hexes H3 Geohashes with second dimension time (Original Niemeyer can also be used)
- chron-net (https://www.nature.com/articles/s41467-020-17634-2)
- geotimehash (https://isprs-annals.copernicus.org/articles/IV-4-W2/31/2017/isprs-annals-IV-4-W2-31-2017.pdf)
- geosynchnet (geographic synchronous networks)
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file geochron-0.6.1.tar.gz
.
File metadata
- Download URL: geochron-0.6.1.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 015629bc8a914cff70943aaea7b0edd232a1f5f015c45ef8f10f97733b41e05b |
|
MD5 | fde0a9017451d359f67242d274666ba1 |
|
BLAKE2b-256 | 130ed0f3d73a6816991a9a993f893028759f798a5677c76255800e6edbb908b3 |
Provenance
The following attestation bundles were made for geochron-0.6.1.tar.gz
:
Publisher:
publish.yml
on etalbert102/geochron
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
geochron-0.6.1.tar.gz
- Subject digest:
015629bc8a914cff70943aaea7b0edd232a1f5f015c45ef8f10f97733b41e05b
- Sigstore transparency entry: 149569672
- Sigstore integration time:
- Predicate type:
File details
Details for the file geochron-0.6.1-py3-none-any.whl
.
File metadata
- Download URL: geochron-0.6.1-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59172f89b1a1912f3fcdb463c0f4c970620f65ca26234960315b325ed474a1e0 |
|
MD5 | ac66294e9ae128e0c46fb56ae2475e36 |
|
BLAKE2b-256 | 34e1db117166ae12b3f84d0e0ef415884e445ccb2fac16c05f4ba4bf1e361f8a |
Provenance
The following attestation bundles were made for geochron-0.6.1-py3-none-any.whl
:
Publisher:
publish.yml
on etalbert102/geochron
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
geochron-0.6.1-py3-none-any.whl
- Subject digest:
59172f89b1a1912f3fcdb463c0f4c970620f65ca26234960315b325ed474a1e0
- Sigstore transparency entry: 149569674
- Sigstore integration time:
- Predicate type: