create_composite_raster: Create Composite raster

View source: R/create_composite_raster.R

create_composite_rasterR Documentation

Create Composite raster

Description

file1, file2, mask, years_input_file, years_raster_stack, dname

Usage

create_composite_raster(
  file1,
  file2,
  mask,
  years_input_file,
  years_raster_stack,
  dname
)

Arguments

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"

Value

A Composite RasterStack with some metadata

Examples

## 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)

aniaszy/ffipm documentation built on July 3, 2022, 2:40 a.m.