View source: R/create_composite_raster.R
create_composite_raster | R Documentation |
file1, file2, mask, years_input_file, years_raster_stack, dname
create_composite_raster( file1, file2, mask, years_input_file, years_raster_stack, dname )
file1 |
file An ncdf file for mask 0 values |
file2 |
file An ncdf file for mask 1 values |
mask |
Irrigation mask raster with values 0,1 |
years_input_file |
A vector indicating years in the input file |
years_raster_stack |
A vector stating for which years the RasterStack should be created |
dname |
A variable name. One of "Weekly Growth Index", "Hot Stress", "Dry Stress", "Wet Stress", "Cold Stress", "Ecoclimatic Index", "Moisture Index", "Temperature Index" |
A Composite RasterStack with some metadata
## Not run: composite_raster_dorsalis <- fun1(file1 = "WeeklyGI_B,dorsalis_2018-2019_World.nc", file2 = "WeeklyGI_B,dorsalis_2018-2019_World_irrigation_set.nc", mask = "CM30_1995H_V2_gmia_v5_aei_h_classified10ha.tif", years = 2018:2019, dname = "Weekly Growth Index") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.