Implementation of the ESA MajorTom grid system
Project description
majortom
An implementation of the ESA Major Tom Grid
Installation
pip install majortom_eg
Usage
import shapely.geometry
from shapely.io import to_geojson
from majortom_eg import MajorTomGrid, GridCell
# generate an overlapping grid with cells of 320m square
grid = MajorTomGrid(d=320, overlap=True)
# polygon 1/10 of a degree square
my_aoi = shapely.geometry.Polygon(((0., 0.), (0., 0.1), (0.1, 0.1), (0.1, 0.), (0., 0.)))
# iterate of cells returned from generator
for cell in grid.generate_grid_cells(my_aoi):
# do something with cells
print(f'cell id is {cell.id()}')
print(f'cell geom is {to_geojson(cell.geom)}')
License
majortom is distributed under the terms of the MIT license.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file majortom_eg-0.1.1.tar.gz.
File metadata
- Download URL: majortom_eg-0.1.1.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
126b6b5652770bfefcdd8cc2ba730c63287001ccf274bc576fa20c3d6f712896
|
|
| MD5 |
f96df3d4ec3eda968fece74c9fed2b8b
|
|
| BLAKE2b-256 |
c925152e733d5c6f8ef7e656da3193c119b49a85f464fb3362bfbd4127e059c7
|
Provenance
The following attestation bundles were made for majortom_eg-0.1.1.tar.gz:
Publisher:
publish.yaml on earth-genome/majortom
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
majortom_eg-0.1.1.tar.gz -
Subject digest:
126b6b5652770bfefcdd8cc2ba730c63287001ccf274bc576fa20c3d6f712896 - Sigstore transparency entry: 157251041
- Sigstore integration time:
-
Permalink:
earth-genome/majortom@2c90f7e98e1a843f3da793a4077c4514bfd66ca1 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/earth-genome
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@2c90f7e98e1a843f3da793a4077c4514bfd66ca1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file majortom_eg-0.1.1-py3-none-any.whl.
File metadata
- Download URL: majortom_eg-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dce8aaaedd8d8156757682c15879f9f8cd76787f3a9b369d1669a70883193458
|
|
| MD5 |
db2718f45fce2dc3afe5f86d2a072e64
|
|
| BLAKE2b-256 |
69dc7826b9dd0f422215170e7556848ad1dd97ed890d1506a05fed0210423617
|
Provenance
The following attestation bundles were made for majortom_eg-0.1.1-py3-none-any.whl:
Publisher:
publish.yaml on earth-genome/majortom
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
majortom_eg-0.1.1-py3-none-any.whl -
Subject digest:
dce8aaaedd8d8156757682c15879f9f8cd76787f3a9b369d1669a70883193458 - Sigstore transparency entry: 157251042
- Sigstore integration time:
-
Permalink:
earth-genome/majortom@2c90f7e98e1a843f3da793a4077c4514bfd66ca1 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/earth-genome
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@2c90f7e98e1a843f3da793a4077c4514bfd66ca1 -
Trigger Event:
push
-
Statement type: