mrio
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.
Metadata
Release files for mrio 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mrio-0.1.6.tar.gz | 29.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mrio-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 63.5 kB
Release files / mrio-0.1.6.tar.gz
| Download URL | mrio-0.1.6.tar.gz |
|---|---|
| Size | 29.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
93d9f795c14050973e6b74010c7817b170ddcc1723056b03590d42bd5b50af40
|
|
BLAKE2b-256 checksum How to use checksums |
1b45a5381d3f14ec218c6884ceab875e88766f5817c7d35f7edaf794d7372148
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / mrio-0.1.6-py3-none-any.whl
| Download URL | mrio-0.1.6-py3-none-any.whl |
|---|---|
| Size | 33.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1f60addceea935ffab19735a8f5e99d8b46ddf2958d394a9d902322391394194
|
|
BLAKE2b-256 checksum How to use checksums |
5c5d3efb97b36b21e3e39f447b713948b7cbf5a832f6af32869ac20b3f170141
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|