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
.
Usage
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,
...
)
See also
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_sedac_groads
: "sedac_groads", "roads", "groads"process_sedac_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"
Examples
## NOTE: Example is wrapped in `\dontrun{}` as function requires a large
## amount of data which is not included in the package.
if (FALSE) { # \dontrun{
process_covariates(
covariate = "narr",
date = c("2018-01-01", "2018-01-10"),
variable = "weasd",
path = system.file("extdata", "examples", "narr", "weasd")
)
} # }