Skip to main content

The Earth Library

A spectral library for continuous satellite land cover mapping.


Documentation: earth-chris.github.io/earthlib

Source code: earth-chris/earthlib


:earth_asia: Introduction

earthlib is a python package featuring a global spectral library. It was developed to support satellite-based land cover mapping.

The library contains a diverse catalog of unique spectral endmembers representing green vegetation, bare soil, non-photosynthetic vegetation, urban materials, and burned materials.

The reflectance data cover the visible to the shortwave infrared wavelengths (400-2450 nm) at 10 nm band widths.

earthlib provides tools to resample these spectra to match the wavelengths of popular satellite and airborne earth observing sensors. The purpose is to support running spectral mixture analysis in a sensor-agnostic fashion.

Running spectral mixture analysis across sensors with a consistent spectral library presents a new approach to creating consistent, analysis-ready data.

The goal of earthlib is to help users quantify spatial and temporal patterns of global land cover change in a sensor-generic fashion.

:seedling: Installation

This library can be installed via pip.

pip install earthlib

You can also clone the source repository and install it locally.

git clone https://github.com/earth-chris/earthlib.git
cd earthlib
pip install -e .

The Earth Engine routines (earthlib.geelib) are not currently available. They are out of date with the v1.1 API and are being reworked. The spectral library is unaffected.

:hammer_and_wrench: Development

earthlib uses pixi to manage environments.

git clone https://github.com/earth-chris/earthlib.git
cd earthlib
pixi install

Common tasks:

pixi run test                    # run tests with coverage
pixi run -e lint lint            # format and lint (installs pre-commit hooks)
pixi run -e typecheck typecheck  # run mypy
pixi run -e docs docs-serve      # serve docs locally

Please commit using the development environment to ensure code is well-formatted.

:deciduous_tree: Developed by

Christopher Anderson1

LinkedIn Follow Google Scholar ORC-ID GitHub Stars

This package was primarily developed at the Stanford Center for Conservation Biology and Salo Sciences.

  1. Planet Labs PBC ↩

Metadata

Release files for earthlib 1.1.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 earthlib 1.1.0
File Size Uploaded Provenance
earthlib-1.1.0.tar.gz 5.0 MB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for earthlib 1.1.0
File Interpreter ABI Platform
earthlib-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.9 MB

Release files / earthlib-1.1.0.tar.gz

Download URL earthlib-1.1.0.tar.gz
Size 5.0 MB
Tags Source
SHA-256 checksum
How to use checksums
08ba231776513bc2dcd78cc3eb1a4a9d352aee52cd551968086b93811524663e
BLAKE2b-256 checksum
How to use checksums
49c9c9d78eedc0509efc99ebc51609779608796de85ee728ae73b1331fc57a18
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 19, 2026.

Transparency log

Release files / earthlib-1.1.0-py3-none-any.whl

Download URL earthlib-1.1.0-py3-none-any.whl
Size 4.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
05cf6ed65487d4a8683e4c2da58c4904e3893bc020200c29f65dfbee73de7b87
BLAKE2b-256 checksum
How to use checksums
63159c3a48c6e60acb2a269fa6b474429665baf2802e0c8ed674a371f9e979f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 19, 2026.

Transparency log

Security for earthlib 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for earthlib-1.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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