Skip to contents

Retrieves the Local Climate Zone map for the Continental United States (Demuzere et al., 2020) for a city or a custom region of interest.

Usage

lcz_get_map_usa(
  city = NULL,
  roi = NULL,
  isave_map = FALSE,
  isave_usa = FALSE,
  lang = "en"
)

Arguments

city

A character string with the name of the target area, as used by OpenStreetMap/Nominatim.

roi

Optional sf/sfc polygon used to clip the LCZ map.

isave_map

Logical. Save the clipped map as a GeoTIFF.

isave_usa

Logical. Save the full CONUS LCZ map as a GeoTIFF.

lang

Language used for console messages and errors. See lcz_langs(). Defaults to "en".

Value

A SpatRaster with LCZ classes (1-17).

References

Demuzere, M., Hankey, S., Mills, G., Zhang, W., Lu, T., and Bechtel, B. (2020). Combining expert and crowd-sourced training data to map urban form and functions for the continental US. Scientific Data 7(1), 264. doi:10.1038/s41597-020-00605-z

Demuzere, M., Hankey, S., Mills, G., Zhang, W., Lu, T., and Bechtel, B. (2020). CONUS-wide LCZ map and training areas. Figshare. doi:10.6084/m9.figshare.11416950

Examples

if (FALSE) { # \dontrun{
my_lcz_city <- lcz_get_map_usa(city = "New York")
custom_roi <- sf::st_read("custom_roi.shp")
roi_lcz <- lcz_get_map_usa(roi = custom_roi)
} # }