Skip to main content

LandsatL2C2

Landsat Level 2 Collection 2 Search & Download Utility

New Backend System! 🚀

LandsatL2C2 now supports multiple backends for accessing Landsat data:

  • S3 Backend (Recommended): Anonymous access to cloud-optimized data, no credentials required
  • M2M Backend (Legacy): Traditional USGS API access with full download functionality
  • Auto Backend: Intelligent selection between S3 and M2M

Quick Start

S3 Backend (No Credentials Needed)

from LandsatL2C2 import LandsatL2C2
from datetime import date
from shapely.geometry import Point

# Create client with S3 backend
landsat = LandsatL2C2(backend="s3")

# Search for scenes
scenes = landsat.scene_search(
    start=date(2023, 6, 1),
    end=date(2023, 6, 30),
    target_geometry=Point(-118.2437, 34.0522),  # Los Angeles
    cloud_percent_max=20
)

# Load data directly from cloud
granule = landsat.retrieve_granule(
    dataset=scenes.iloc[0]['dataset'],
    date_UTC=scenes.iloc[0]['date_UTC'],
    granule_ID=scenes.iloc[0]['display_ID'],
    entity_ID=scenes.iloc[0]['entity_ID']
)

# Access bands without downloading
red_band = granule.DN(4)  # Stream from S3

Installation

Base installation:

pip install LandsatL2C2
pip install LandsatL2C2

S3 backend dependencies are included by default.

See BACKEND_MIGRATION.md for detailed migration guide and examples.

Metadata

Release files for LandsatL2C2 2.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 LandsatL2C2 2.0.0
File Size Uploaded
landsatl2c2-2.0.0.tar.gz 5.7 MB Details

Built distribution (wheel)

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

Total release size: 10.5 MB

Release files / landsatl2c2-2.0.0.tar.gz

Download URL landsatl2c2-2.0.0.tar.gz
Size 5.7 MB
Tags Source
SHA-256 checksum
How to use checksums
c62174ca3b6048c971bd9c385ad54885a386e9ab02e16017c8499832b1a4c5ac
BLAKE2b-256 checksum
How to use checksums
de65fc91496f2f364493d0aa6ec2a116a92a31bcac08658caef12f4c2443c9a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.23

Release files / landsatl2c2-2.0.0-py3-none-any.whl

Download URL landsatl2c2-2.0.0-py3-none-any.whl
Size 4.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
8d45cad2cfc0a4e8d98a01f1e45be63f36722d9c1066224dce936d5a7d8afea2
BLAKE2b-256 checksum
How to use checksums
128226dacb7afadcaae98527d3e481a227b2694e553a5c420afc31b3652fdda5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.23

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.1.0

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.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