Skip to main content

Python Package that support the read/write of multidimensional COG files

Project description

mrio

codecov License: CC0-1.0 Ruff Docs Imports: isort

mrio is a library that extends rasterio for reading and writing multidimensional COG files.

Examples

Using the xarray-like read API:

import mrio

tcog_file = "https://huggingface.co/datasets/tacofoundation/mrio-examples/resolve/main/sentinel2_4D.tif"
with mrio.open(tcog_file) as src:
    ddd = src[1:2, 0:4, ...]

Using the earthengine-like read API:

import mrio

# Load dataset
ic = mrio.Collection("https://huggingface.co/datasets/tacofoundation/mrio-examples/resolve/main/sentinel2_4D.tif")

# Make a query
tensor = ( 
    ic.select(["B01", "B02", "B03"])
      .FilterDate("2022-01-10", "2025-02-05")
      .FilterBounds(-0.430863, 39.491523)
      .getInfo()
)

Installation

You can install the mrio library using pip:

pip install mrio

or via conda:

conda install -c conda-forge mrio

or from source:

git clone git@github.com:tacofoundation/mrio.git
cd mrio
pip install .

Specification

See the mrio website for details.

License

This project is licensed under the CC0 1.0 Universal Public Domain Dedication - see the LICENSE file for details.

Changes

See the CHANGELOG file for details.

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

mrio-0.1.4.tar.gz (29.5 kB view details)

Uploaded Source

Built Distribution

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

mrio-0.1.4-py3-none-any.whl (33.9 kB view details)

Uploaded Python 3

File details

Details for the file mrio-0.1.4.tar.gz.

File metadata

  • Download URL: mrio-0.1.4.tar.gz
  • Upload date:
  • Size: 29.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/7.0.1 keyring/24.3.1 pkginfo/1.9.6 readme-renderer/34.0 requests-toolbelt/1.0.0 requests/2.32.3 rfc3986/1.5.0 tqdm/4.67.1 urllib3/2.2.1 CPython/3.10.12

File hashes

Hashes for mrio-0.1.4.tar.gz
Algorithm Hash digest
SHA256 df8a0869777f29454c772cd11c2769aa6bccc30eaf752ea7c75598fd8fb43717
MD5 3f49b499ea4e786548df06c240e0081b
BLAKE2b-256 c208a77b7fb2d2ec0357681a1fb9f511f18a096bcb2926cbdffada3df1726822

See more details on using hashes here.

File details

Details for the file mrio-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: mrio-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 33.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/7.0.1 keyring/24.3.1 pkginfo/1.9.6 readme-renderer/34.0 requests-toolbelt/1.0.0 requests/2.32.3 rfc3986/1.5.0 tqdm/4.67.1 urllib3/2.2.1 CPython/3.10.12

File hashes

Hashes for mrio-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 95d4e867c1b0dc16b56fd7fb54b11b4f3e6d90333fb850394732bd54b566eab5
MD5 5c6127fa44a1f186a876e9a972f7ddc1
BLAKE2b-256 7d157ce5221818dfad2096a46f5ee19ca9955c1d36992d49907a3432d3206f46

See more details on using hashes here.

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