r.in.landsat downloads Landsat Collection 2 Level-2 imagery (surface reflectance + surface temperature) directly into the current GRASS GIS project using the cubo Python library, from Microsoft Planetary Computer (no credentials required). Each acquisition date is imported as individual raster maps and grouped with i.group, following the same pattern as r.in.sentinel.
g.region n=0.52 s=0.48 e=33.34 w=33.28 res=30
r.in.landsat start=2025-01-01 end=2025-07-01 clouds=70 \
output=l8 -c strds=l8
Default bands are the Planetary Computer landsat-c2-l2 asset names:
coastal, blue, green, red, nir08, swir16, swir22 (surface
reflectance, OLI bands 1-7), lwir11 (surface temperature, already
atmospherically corrected - no separate LST retrieval needed), and
qa_pixel (bitmask QA band).
Unlike r.in.sentinel (which leaves Sentinel-2 as raw DN, since its
STAC metadata carries no scale/offset transform), bands here arrive
already in physical units: reflectance bands as [0-1] and lwir11 as
Kelvin. Planetary Computer’s landsat-c2-l2 STAC items carry the USGS
Collection 2 Level 2 scale/offset as raster:bands metadata, and
cubo/stackstac applies it while building the cube - no additional
rescaling is done (or needed) by this module. qa_pixel is left as an
integer bitmask.
The c flag nulls out pixels where QA_PIXEL bit 3 (cloud) or bit 4
(cloud shadow) is set, in every band for that date (auto-adds
qa_pixel to the band list if not already requested).
Raster maps are named {output}_{YYYYMMDD}_{band}, e.g.
l8_20250222_lwir11. One i.group per acquisition date:
{output}_{YYYYMMDD}.
Pass strds=prefix to additionally register one STRDS per band
({prefix}_{band}, e.g. l8_red, l8_lwir11). Only maps confirmed to
exist in the current project after import are registered - a band
that failed to import for a given date is silently excluded from its
STRDS rather than breaking t.register for the whole run.
Landsat 8/9 revisit is 16 days each (8 days combined, since both share
the landsat-c2-l2 collection) - expect far sparser dates than
Sentinel-1/2 over the same period.
r.in.sentinel, i.albedo, i.emissivity, i.eb.netrad, i.eb.soilheatflux, i.eb.hsebal95, i.eb.evapfr, i.biomass
Yann Chemin
Available at: r.in.landsat source code (history)
Accessed: Monday Jul 27 12:29:36 2026
Main index | Raster index | Topics index | Keywords index | Graphical index | Full index
© 2003-2026 GRASS Development Team, GRASS 8.5.1dev Reference Manual