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.1.1.tar.gz (7.5 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.1.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

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

Hashes for majortom_eg-0.1.1.tar.gz
Algorithm Hash digest
SHA256 126b6b5652770bfefcdd8cc2ba730c63287001ccf274bc576fa20c3d6f712896
MD5 f96df3d4ec3eda968fece74c9fed2b8b
BLAKE2b-256 c925152e733d5c6f8ef7e656da3193c119b49a85f464fb3362bfbd4127e059c7

See more details on using hashes here.

Provenance

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

Hashes for majortom_eg-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dce8aaaedd8d8156757682c15879f9f8cd76787f3a9b369d1669a70883193458
MD5 db2718f45fce2dc3afe5f86d2a072e64
BLAKE2b-256 69dc7826b9dd0f422215170e7556848ad1dd97ed890d1506a05fed0210423617

See more details on using hashes here.

Provenance

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