Skip to main content

A Common Language for EO Machine Learning Data

Project description

mlstac

A Common Language for EO Machine Learning Data

import mlstac

# Read the data online
path = "https://huggingface.co/datasets/JulioContrerasH/prueba1/resolve/main/images_2000.mlstac"
metadata = mlstac.load_metadata(path)
data = mlstac.load_data(metadata[0:4])
data.shape

# Read the data locally
path = "/home/cesar/Downloads/images_2000.mlstac"
dataset = mlstac.load_metadata(path)
data = mlstac.load_data(dataset[0:4])

# From mlstac to GEOTIFF
import rasterio as rio
path = "https://huggingface.co/datasets/JulioContrerasH/prueba1/resolve/main/images_2000.mlstac"
metadata = mlstac.load_metadata(path)
data, metadata = mlstac.load_data(metadata[0:1], save_metadata_datapoint=True)[0]
with rio.open("data.tif", "w", **metadata) as dst:
    dst.write(data)

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

mlstac-0.1.2.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

mlstac-0.1.2-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mlstac-0.1.2.tar.gz
  • Upload date:
  • Size: 6.1 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.31.0 rfc3986/1.5.0 tqdm/4.66.1 urllib3/2.2.1 CPython/3.10.12

File hashes

Hashes for mlstac-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6713bcce103213d2b033933dc52ba4ad762267b166c4770abb55dcead8061844
MD5 42ad442fd14bfedbd7dc339da08d7905
BLAKE2b-256 e0bebf4a53ac519842c809c7d78b79ac986401ba6c2395c508f5cfbbc97878ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mlstac-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.2 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.31.0 rfc3986/1.5.0 tqdm/4.66.1 urllib3/2.2.1 CPython/3.10.12

File hashes

Hashes for mlstac-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1eba58c09f0725f1f4a32f785784a29567a1ca7def4b082e9f1b775f7b39abeb
MD5 9518e3228047d1e49850055c9f5cfe25
BLAKE2b-256 38b44f29243fe7af0ce3375853f7da3404e846c18b4060eb7f775b86d0cc96ca

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page