Skip to main content

Download, process, correct, and enhance images sourced from various satellite providers.

PyPI Build status codecov Commit activity License



Overview

The "librecubo" package in Python represents a powerful ensemble of modules tailored for satellite image processing and enhancement. This comprehensive toolkit is designed to handle diverse satellite imagery, enabling tasks ranging from data acquisition to intricate processing techniques like cloud masking, BRDF correction, temporal referencing, and resolution enhancement. With its multifaceted capabilities, "librecubo" streamlines the retrieval, manipulation, and refinement of satellite data, facilitating efficient and comprehensive image analysis for various applications.

How to use

The example below shows how to use librecubo module to download Sentinel-2 images.

from librecubo import librecubo_download

librecubo_download.download_sentinel2(
    lat=-12.046374,
    lon=-77.042793,
    project="test1",
    path="path/to/save/data",
    start_date="2000-02-16",
    end_date="2022-12-31",
    edge_size=1000
)
# 0%|▍                                     | 1/281 [00:17<\1:19:41, 17.08s/it]

Installation

Install the latest version from PyPI:

pip install librecubo

Upgrade opensr-test by running:

pip install -U librecubo

Install the latest dev version from GitHub by running:

pip install git+https://github.com/librecubo

Examples

Visualizations

Workflow

The workflow below shows the main steps to process satellite images using librecubo package.

  1. librecubo-download: Facilitates simultaneous download of multiple images from Landsat (1-9), Sentinel-2, and MODIS using multiprocessing for efficient data retrieval.
  2. librecubo-clouds: Handles cloud masking in MODIS, Landsat, and Sentinel-2 images via the CloudSEN12v2 database. Generates a Zarr object with temporal-based chunk organization.
  3. librecubo-reference: Establishes temporal series references by extending MODIS data. Performs BRDF correction for Landsat images (5-9) and Sentinel-2 using Roy et al.'s 2020 method (librecubo-brdf).
  4. librecubo-brdf: Focuses on BRDF correction specifically for Sentinel-2 images.
  5. librecubo-mss2tm: Corrects Landsat MSS images.
  6. librecubo-smoother: Manages gap-filling and data smoothing post-reference generation. Improves overall coherence and quality by filling missing data spaces and applying smoothing techniques.

Auxiliary Modules:

  1. librecubo-semantic: Enables generation of image semantics, likely involving addition of contextual information or metadata.
  2. librecubo-super: Focuses on super-resolution, enhancing image quality by upscaling images from 10 meters to 5 meters resolution.

Citation

If you use librecubo in your research, please cite our paper. Coming soon!

Acknowledgements

We received funding from the National Council of Science, Technology, and Technological Innovation (CONCYTEC, Peru) under the “Proyectos de Investigación Básica – 2023-01” program (PE501083135-2023-PROCIENCIA).

Metadata

Release files for librecubo 0.0.21

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

Source distribution (sdist)

Source distribution for librecubo 0.0.21
File Size Uploaded Provenance Actions
librecubo-0.0.21.tar.gz 4.5 kB Without provenance Details for librecubo-0.0.21.tar.gz

Built distribution (wheel)

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

Total release size: 9.1 kB

Release files / librecubo-0.0.21.tar.gz

Download URL librecubo-0.0.21.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ca90bf6debcc0e76ea1c006bca4e0d3c9a513cae6de0c8dec4afbe8db179f3ed
BLAKE2b-256 checksum
How to use checksums
b28590594819bb9652c555e62efc095d9a23c09d9ede97659e5b66022cb4e88e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.7 Linux/5.15.133.1-microsoft-standard-WSL2

Release files / librecubo-0.0.21-py3-none-any.whl

Download URL librecubo-0.0.21-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1745aa51c9334278247449d7a4c93551b465caef2b56cf250337d8ce6e3b5781
BLAKE2b-256 checksum
How to use checksums
9c6860ac72b6191bd4e84e5201c5abc4fcc7669b0e9f7b9c5a58670265b8352b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.7 Linux/5.15.133.1-microsoft-standard-WSL2

Security for librecubo 0.0.21

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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