View source: R/create_raster_stack.R
create_raster_stack | R Documentation |
Create Raster Stack
create_raster_stack( allyears, years, start_week = 1, end_week = 52, step = "Step" )
allyears |
An output from |
years |
A vector stating for which years the RasterStack should be created |
start_week |
A number of first week in the output RasterStack. The default is 1 |
end_week |
A number of last week in the output RasterStack. The default is 52 |
step |
"Step" for weekly data or "Year" for yearly data |
A RasterStack with some metadata
## Not run: Path <- "C:/Google Drive/Corvus Geostat - Jakub Nowosad/" Path <- "../corvus_dynamic_outputs/" input_file <- paste0(Path,"NetCDF/DxResults_Cc_2010-2015.nc") AllYears <- extract_data_list(input_file, "Weekly Growth Index", years = 2000:2014) rasters <- create_raster_stack(AllYears, years = 2000:2014) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.