Skip to main content

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

Project description

mrio

codecov

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/simple.tif"
with mrio.open(tcog_file, engine="numpy") as src:
    ddd = src[1:2, 0:4, ...]

Using the earthengine-like read API:

import mrio

tensor = ( 
  mrio.Collection("https://huggingface.co/datasets/tacofoundation/mrio-examples/resolve/main/simple.tif")
      .select(["B01", "B02", "B03"])
      .FilterDate("2021-01-05", "2021-03-10")
      .FilterBounds(-76.1, 4.3, -76.1, 4.3)
      .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.1.tar.gz (23.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.1-py3-none-any.whl (27.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mrio-0.1.1.tar.gz
  • Upload date:
  • Size: 23.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.1.tar.gz
Algorithm Hash digest
SHA256 644a752fe2a28025a45aa945ef4f6d6ddda5b5965e240521b92973bdf51250bc
MD5 d9afcccd4957045b07f61cc00316aab9
BLAKE2b-256 d34281afc8430aa3ae8a1d21cac056f5720791dd9637aa0405dc37904d00d99e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mrio-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 27.8 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dd50bdd9ae0a56aa35550779275717f986845420893800787c2815d133e6f187
MD5 5f6152092ea6ba647274555b28e61e27
BLAKE2b-256 c2896226bbbf60833a0c90895df94c6dbad4016624236763778bdc06ec222fef

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