The process_edgar() function imports extracted EDGAR gridded emissions
files and returns a single SpatRaster object. Raster formats supported by
terra::rast() such as NetCDF (.nc, .nc4) and GeoTIFF (.tif,
.tiff) are supported.
Note
process_edgar() currently supports gridded raster outputs from
download_edgar() such as the default format = "nc". Plain-text EDGAR
downloads should be re-downloaded as raster outputs before processing.
Examples
## NOTE: Example is wrapped in `\dontrun{}` as function requires data that is
## not included in the package.
if (FALSE) { # \dontrun{
edgar <- process_edgar(
path = "./data/edgar",
extent = c(-85, -75, 33, 37)
)
} # }