Skip to main content

Implementation of the ESA MajorTom grid system

Project description

majortom

PyPI - Version PyPI - Python Version


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

majortom_eg-0.2.0.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

majortom_eg-0.2.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file majortom_eg-0.2.0.tar.gz.

File metadata

  • Download URL: majortom_eg-0.2.0.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for majortom_eg-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c565dfbd3e5ba2c70519c4adac4826198300ecac52fa6cc4e80793d88983d97b
MD5 cddb77c5aac6954452678e30916b22ac
BLAKE2b-256 5c832a7fd8d7d18d729f8be4a0a8be9f7647b841c21378c9f823ba10271aa9a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for majortom_eg-0.2.0.tar.gz:

Publisher: publish.yaml on earth-genome/majortom

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file majortom_eg-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: majortom_eg-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for majortom_eg-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8e709b01f4337da284485dcc5c92a4ea955357cbb29f4e7d99fce25095582919
MD5 c51f717c55663fdbfc6880e098df3f42
BLAKE2b-256 5794a5749b6fdcf3b23aeee52c4991918aab6922ef382382b3d19f612feeb67a

See more details on using hashes here.

Provenance

The following attestation bundles were made for majortom_eg-0.2.0-py3-none-any.whl:

Publisher: publish.yaml on earth-genome/majortom

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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