Landsat Level 2 Collection 2 Search & Download Utility
Project description
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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file landsatl2c2-2.0.0.tar.gz.
File metadata
- Download URL: landsatl2c2-2.0.0.tar.gz
- Upload date:
- Size: 5.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c62174ca3b6048c971bd9c385ad54885a386e9ab02e16017c8499832b1a4c5ac
|
|
| MD5 |
877aa81cd6614e931634b87243797f40
|
|
| BLAKE2b-256 |
de65fc91496f2f364493d0aa6ec2a116a92a31bcac08658caef12f4c2443c9a9
|
File details
Details for the file landsatl2c2-2.0.0-py3-none-any.whl.
File metadata
- Download URL: landsatl2c2-2.0.0-py3-none-any.whl
- Upload date:
- Size: 4.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d45cad2cfc0a4e8d98a01f1e45be63f36722d9c1066224dce936d5a7d8afea2
|
|
| MD5 |
452431a3b60466220da14625139b9fc0
|
|
| BLAKE2b-256 |
128226dacb7afadcaae98527d3e481a227b2694e553a5c420afc31b3652fdda5
|