Skip to main content

🌈🛰️ xarray-hyperspectral

Open hyperspectral remote sensing data cubes as xarray Datasets.

Xarray-hyperspectral is a lightweight xarray backend engine for Planet Tanager hyperspectral data. It reads Tanager's HDF-EOS5 files and returns lazy, CF-compliant xarray Datasets with proper wavelength coordinates, units, and CRS metadata. This makes Tanager data interoperable with the xarray ecosystem of visualization, analysis, and machine learning tools.

Demo

📦 Installation

pip install xarray-hyperspectral

🚀 Quickstart

import xarray as xr

# Open a local Tanager HDF-EOS5 file
ds = xr.open_dataset("scene.h5", engine="tanager")

# Plot a single band
ds["reflectance"].sel(wavelength=850, method="nearest").plot()

# Plot a spectrum at a single pixel
ds["reflectance"].isel(y=400, x=400).plot()

See the tutorials for more examples including RGB composites and interactive visualization.

📝 License

Apache-2.0

Release files for xarray-hyperspectral 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xarray-hyperspectral 1.0.0
File Size Uploaded
xarray_hyperspectral-1.0.0.tar.gz 13.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for xarray-hyperspectral 1.0.0
File Interpreter ABI Platform
xarray_hyperspectral-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 26.7 kB

Release files / xarray_hyperspectral-1.0.0.tar.gz

Download URL xarray_hyperspectral-1.0.0.tar.gz
Size 13.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5f097169ce2bdb401d455ef2777abe2753893498574873e8e3fb61b45772a4aa
BLAKE2b-256 checksum
How to use checksums
a3b75be94106ce0c8a23f5bf2d50d52e213563902db7f78adf2924b3faa2cccb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / xarray_hyperspectral-1.0.0-py3-none-any.whl

Download URL xarray_hyperspectral-1.0.0-py3-none-any.whl
Size 13.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5fa1e23b56b437ac710f1c9af48eabf11840c66405e13bd13f65602f7776db87
BLAKE2b-256 checksum
How to use checksums
1543d3739d7cc090db5d92f43cead15f4f9e4c026b338b5e9b19df8d6cee105b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page