Skip to contents

Reads MODIS/061/MOD11A2 (Terra Land Surface Temperature/Emissivity 8-Day L3 1km) from Google Earth Engine. Returns a terra::rast() SpatRaster with QA-masked daytime LST values in Kelvin.

Usage

read_modis_lst(
  date,
  region,
  backend = c("rest", "rgee"),
  cache = TRUE,
  max_tries = 3L,
  initial_delay = 1
)

Arguments

date

Character or Date. Acquisition date in "YYYY-MM-DD" format.

region

An sf::sf, sf::st_sfc(), or terra::ext() object defining the spatial extent. Required.

backend

Character. "rest" (default) or "rgee".

cache

Logical. Use disk cache? Default TRUE.

max_tries

Integer. Retry attempts. Default 3L.

initial_delay

Numeric. Initial retry delay in seconds. Default 1.

Value

A terra::rast() SpatRaster. CRS: EPSG:4326. Values: LST in Kelvin. NA where QA indicates cloud or poor quality.

Data availability

2000-02-24 to present. 8-day composites. 1 km spatial resolution.

QA masking

Pixels where QC_Day bits 0-1 are not 00 (good quality) are masked to NA.

References

Wan, Z., Hook, S. & Hulley, G. (2021). MODIS/Terra Land Surface Temperature/Emissivity 8-Day L3 Global 1km SIN Grid V061. NASA EOSDIS LP DAAC. doi:10.5067/MODIS/MOD11A2.061

Examples

if (FALSE) { # interactive()
lst <- read_modis_lst(date = "2024-06-15",
                      region = terra::ext(138, 140, -36, -34))
}