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-1.0.0.tar.gz (44.7 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-1.0.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for majortom_eg-1.0.0.tar.gz
Algorithm Hash digest
SHA256 31e8a6f9f77f62e0f2d395ac8662ff4d62668ce01683e136e4fcede4f1560019
MD5 2716adb35ce30150f5dde933e1467c03
BLAKE2b-256 312feb58a838858f42b103728b4232004c571aac347f11f4e40f175ecc62ab64

See more details on using hashes here.

Provenance

The following attestation bundles were made for majortom_eg-1.0.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-1.0.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for majortom_eg-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 26086f9b11f21a833af77990d20f455986a7ad288aa99d11a804141b06f5b4f9
MD5 5c908ba1100f7a0f934bc66c53238345
BLAKE2b-256 6b38834e1342109f484fccad8f55d6a6980177a5ea009e5456087caaa588695e

See more details on using hashes here.

Provenance

The following attestation bundles were made for majortom_eg-1.0.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