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.6.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.6-py3-none-any.whl (33.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mrio-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 93d9f795c14050973e6b74010c7817b170ddcc1723056b03590d42bd5b50af40
MD5 387524b425168c4ca0e8aa2cd4dc4531
BLAKE2b-256 1b45a5381d3f14ec218c6884ceab875e88766f5817c7d35f7edaf794d7372148

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mrio-0.1.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1f60addceea935ffab19735a8f5e99d8b46ddf2958d394a9d902322391394194
MD5 ea02909e6ac17b9106fa9584c7511790
BLAKE2b-256 5c5d3efb97b36b21e3e39f447b713948b7cbf5a832f6af32869ac20b3f170141

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