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.2.tar.gz (26.8 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.2-py3-none-any.whl (31.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mrio-0.1.2.tar.gz
  • Upload date:
  • Size: 26.8 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.2.tar.gz
Algorithm Hash digest
SHA256 008b78be70123d0b56c4f756785569b05f4f303210ed23bd329e7a7e0fb7b8e7
MD5 ec89801f9513bd9b818ff5a6316a6ff7
BLAKE2b-256 69958a6471b820404ee986a74606a72088ad3fbc0f2fb954760f1f936d57d7c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mrio-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 31.5 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8fbd33b88f234b1a2bf75fb9ef4d5c6028c3db790dc2391c9a9ea24e87c85454
MD5 c9bc7a804554fd8660b87efac72250e7
BLAKE2b-256 29fb5c9204a1b633192c583a6ece9c9f4bb0d57dfe4b04e59475e22d0f6947ae

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