| process_covariates | R Documentation |
This function processes raw data files which have
been downloaded by download_data. process_covariates and
the underlying source-specific processing functions have been designed to
operate on the raw data files. To avoid errors, do not edit the raw
data files before passing to process_covariates.
process_covariates(
covariate = c("modis_swath", "modis_merge", "koppen-geiger", "blackmarble",
"koeppen-geiger", "koppen", "koeppen", "geos", "dummies", "gmted", "hms", "smoke",
"sedac_population", "population", "sedac_groads", "groads", "roads", "nlcd", "tri",
"narr", "nei", "ecoregions", "ecoregion", "merra", "merra2", "gridmet",
"terraclimate", "huc", "cropscape", "cdl", "prism"),
path = NULL,
...
)
covariate |
character(1). Covariate type. |
path |
character(1). Directory or file path to raw data
depending on |
... |
Arguments passed to each raw data processing function. |
SpatVector, SpatRaster, sf, or character depending on
covariate type and selections.
Insang Song
process_modis_swath: "modis_swath"
process_modis_merge: "modis_merge"
process_blackmarble: "blackmarble"
process_koppen_geiger: "koppen-geiger", "koeppen-geiger", "koppen"
process_ecoregion: "ecoregion", "ecoregions"
process_nlcd: "nlcd", "NLCD"
process_tri: "tri", "TRI"
process_nei: "nei", "NEI"
process_geos: "geos", "GEOS"
process_gmted: "gmted", "GMTED"
process_aqs: "aqs", "AQS"
process_hms: "hms", "smoke", "HMS"
process_narr: "narr", "NARR"
process_groads: "sedac_groads", "roads", "groads"
process_population: "sedac_population", "population"
process_merra2: "merra", "merra2", "MERRA2"
process_gridmet: "gridmet", "gridMET"
process_terraclimate: "terraclimate", "TerraClimate"
process_huc: "huc", "HUC"
process_cropscape: "cropscape", "cdl"
process_prism: "prism", "PRISM"
## NOTE: Example is wrapped in `\dontrun{}` as function requires a large
## amount of data which is not included in the package.
## Not run:
process_covariates(
covariate = "narr",
date = c("2018-01-01", "2018-01-10"),
variable = "weasd",
path = system.file("extdata", "examples", "narr", "weasd")
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.