Skip to main content

No project description provided

Project description

rust ci python ci PyPI version codestyle

grid-indexing: Fast and scalable indexing of grids

inferring grid geometries

For grids that fit into memory, or for datasets that include coordinate bounds, the cell polygons can be inferred:

source_geometries = grid_indexing.infer_cell_geometries(ds)

in-memory index

If the geometries fit comfortably into memory (mostly for small grids), we can use the in-memory implementation:

# geoarrow does not support multiple dimensions, so we need to also pass along the shape
source_shape = ...
index = grid_indexing.RTree(source_geometries, source_shape)

overlapping_cells = index.query_overlap(target_geometries, target_shape)

The result is a sparse boolean matrix with the same shape as the source / target polygons combined (dimension order is (target_dim1, ..., source_dim1, ...)).

distributed index

The distributed index allows searching for overlapping cells, even when the grids are larger than memory. It is currently built using dask.

The procedure is almost the same:

# dask.array objects containing shapely polygons
chunked_source_geoms = ...
chunked_target_geoms = ...

index = grid_indexing.distributed.DistributedRTree(chunked_source_geoms)
overlapping_cells = index.query_overlap(chunked_target_geoms)

Note that this will compute both source and target geometries to determine chunk boundaries. overlapping_cells, however, is truly lazy.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

grid_indexing-0.1.1-cp313-cp313-manylinux_2_35_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.35+ x86-64

grid_indexing-0.1.1-cp313-cp313-macosx_11_0_arm64.whl (903.0 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

grid_indexing-0.1.1-cp313-cp313-macosx_10_12_x86_64.whl (944.4 kB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

grid_indexing-0.1.1-cp312-cp312-manylinux_2_35_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.35+ x86-64

grid_indexing-0.1.1-cp312-cp312-macosx_11_0_arm64.whl (903.4 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

grid_indexing-0.1.1-cp312-cp312-macosx_10_12_x86_64.whl (944.4 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

grid_indexing-0.1.1-cp311-cp311-manylinux_2_35_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.35+ x86-64

grid_indexing-0.1.1-cp311-cp311-macosx_11_0_arm64.whl (906.7 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

grid_indexing-0.1.1-cp311-cp311-macosx_10_12_x86_64.whl (949.6 kB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

grid_indexing-0.1.1-cp310-cp310-manylinux_2_35_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.35+ x86-64

grid_indexing-0.1.1-cp310-cp310-macosx_11_0_arm64.whl (907.0 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

grid_indexing-0.1.1-cp310-cp310-macosx_10_12_x86_64.whl (950.1 kB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

File details

Details for the file grid_indexing-0.1.1-cp313-cp313-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for grid_indexing-0.1.1-cp313-cp313-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 fac51aa09eb8af438f02ce9aa8a0e8aac865200b7352f4b6e10aa839acafbc84
MD5 5571994aaff06780ce714f11de20a5e6
BLAKE2b-256 5a68889796ee0114e202562f6d40ba805a6628c111102bcf1350ac542675fca4

See more details on using hashes here.

Provenance

The following attestation bundles were made for grid_indexing-0.1.1-cp313-cp313-manylinux_2_35_x86_64.whl:

Publisher: wheels.yml on keewis/grid-indexing

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

File details

Details for the file grid_indexing-0.1.1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for grid_indexing-0.1.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6898ca24f04f653d22fae6469925d390eeecc697e2c51df1b843a4ba837f809b
MD5 d551afa85d429328640991e11e29f67c
BLAKE2b-256 8f687b9df74528a488e3e960012e7760e6157853a1bbc199fef0f1a84506aefa

See more details on using hashes here.

Provenance

The following attestation bundles were made for grid_indexing-0.1.1-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: wheels.yml on keewis/grid-indexing

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

File details

Details for the file grid_indexing-0.1.1-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for grid_indexing-0.1.1-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 38bfc3976ff24b58c14beeb70d52977fb9d7a19e9e05eba8aa633c555f195f03
MD5 dab8bd4aa4d98b2aff4d616c16ac3f39
BLAKE2b-256 4006c7b61f78067dfa45eeae603ff7419ee00c28c1082fbfb12cfea15318ab10

See more details on using hashes here.

Provenance

The following attestation bundles were made for grid_indexing-0.1.1-cp313-cp313-macosx_10_12_x86_64.whl:

Publisher: wheels.yml on keewis/grid-indexing

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

File details

Details for the file grid_indexing-0.1.1-cp312-cp312-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for grid_indexing-0.1.1-cp312-cp312-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 09dcdd82e92776f23d1dd2b277da4621e14a15d886cb7e687762e8343115c9ed
MD5 6435e931f9aec55ea07390f9790cfb76
BLAKE2b-256 81b33f7efd67d5da8c6c8ffb7fa181555c37fe5f79a804e37de3e48ad35b8e50

See more details on using hashes here.

Provenance

The following attestation bundles were made for grid_indexing-0.1.1-cp312-cp312-manylinux_2_35_x86_64.whl:

Publisher: wheels.yml on keewis/grid-indexing

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

File details

Details for the file grid_indexing-0.1.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for grid_indexing-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c46db8518746acd11c7dcf106c7ac17374c76326d72b6efd9982d58345e2b9bf
MD5 319e38d81797e7cadf5e98739a31d268
BLAKE2b-256 b2ba314c33829abba9f76c269b91f476b1b741946214784e3267105e9491d3e9

See more details on using hashes here.

Provenance

The following attestation bundles were made for grid_indexing-0.1.1-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: wheels.yml on keewis/grid-indexing

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

File details

Details for the file grid_indexing-0.1.1-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for grid_indexing-0.1.1-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 4e45bc3e7d411dc0065235eb221fd7f44f39bd2f23d85eb205b2567767516f12
MD5 1e9787b530411fb66538ddc790283f25
BLAKE2b-256 eb8d7a95253bc9ecc9b5b588bf20b65e7b365f4f069e3b44aa74edaa7779932e

See more details on using hashes here.

Provenance

The following attestation bundles were made for grid_indexing-0.1.1-cp312-cp312-macosx_10_12_x86_64.whl:

Publisher: wheels.yml on keewis/grid-indexing

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

File details

Details for the file grid_indexing-0.1.1-cp311-cp311-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for grid_indexing-0.1.1-cp311-cp311-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 bf83f6c54ca7ff19e4483f1013ce5c237da63660144c98f8993a0f0e447622b0
MD5 83a747996f89b07306ea522be764782f
BLAKE2b-256 2b187230de86304345e8e2fc986b2af2f0e903e1284c6d11a7531dd3de8581da

See more details on using hashes here.

Provenance

The following attestation bundles were made for grid_indexing-0.1.1-cp311-cp311-manylinux_2_35_x86_64.whl:

Publisher: wheels.yml on keewis/grid-indexing

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

File details

Details for the file grid_indexing-0.1.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for grid_indexing-0.1.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1bf6f2c59c816f99862a2005a7b40e7572c11539c9235b4b7cf91535b19f329c
MD5 8c281825d5bc153ab5751aa613fc465f
BLAKE2b-256 df284c11101775f8ef9138a3eb9b1b14e5836913bccfb9d70910be1f7c4a3e0a

See more details on using hashes here.

Provenance

The following attestation bundles were made for grid_indexing-0.1.1-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: wheels.yml on keewis/grid-indexing

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

File details

Details for the file grid_indexing-0.1.1-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for grid_indexing-0.1.1-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7dee8f1054bd9382448c50a30fd4e09b8a2c26ac5820882a128b47269f6a0967
MD5 ca7da414e7c42ec58a2fedbe4f94130f
BLAKE2b-256 d464fa23cfeb309dd2d77ef2ea91364d6a6fb22dcf0b44e94fb2b9944dc0c667

See more details on using hashes here.

Provenance

The following attestation bundles were made for grid_indexing-0.1.1-cp311-cp311-macosx_10_12_x86_64.whl:

Publisher: wheels.yml on keewis/grid-indexing

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

File details

Details for the file grid_indexing-0.1.1-cp310-cp310-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for grid_indexing-0.1.1-cp310-cp310-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 46512dede5b3eb57ead75d5413dd84f4406e5d6a626f938a2c9cddac6c358b6a
MD5 f8bcc6306098a5bfd45e4ac233704d59
BLAKE2b-256 a7230c033926a7a690842a1eacb82055a67e48d54d3f57b78e6a39bc4139b35e

See more details on using hashes here.

Provenance

The following attestation bundles were made for grid_indexing-0.1.1-cp310-cp310-manylinux_2_35_x86_64.whl:

Publisher: wheels.yml on keewis/grid-indexing

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

File details

Details for the file grid_indexing-0.1.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for grid_indexing-0.1.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5bfdb0b184036c01533d669b502791b833fef71392275fe2e9141ec9f1a18c0b
MD5 17bd2e3c01fcdadd0fb492c08babcac8
BLAKE2b-256 364d2e634af4ff882187e5da20e41d6dc690a4ff74e37c4dafb14306bb2dc6e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for grid_indexing-0.1.1-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: wheels.yml on keewis/grid-indexing

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

File details

Details for the file grid_indexing-0.1.1-cp310-cp310-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for grid_indexing-0.1.1-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7f0bbe9269473ccf94d5837c42ccd72f6843220cfe17a3576ae0bd7ad7184c84
MD5 bf5fb1c6c7ef9fa4439bc40f5ada37e3
BLAKE2b-256 47ff13d4895e45b2cbd23439de4d21fe341fe30c4a5d28fd8fe70ce4c1ddcdc5

See more details on using hashes here.

Provenance

The following attestation bundles were made for grid_indexing-0.1.1-cp310-cp310-macosx_10_12_x86_64.whl:

Publisher: wheels.yml on keewis/grid-indexing

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