removeIceAreas: Remove Iced Areas from the climate raster/stacks

Description Usage Arguments Value Author(s) Examples

Description

This function remove the Iced Areas, according to a raster of glaciated areas and lakes, from the climatic variables stored in a raster o stack. The values in glaciated areas are substituted by NA.

Usage

1
removeIceAreas(r, iceS)

Arguments

r

Raster or raster stack. They will be the climatic variables to be changed

iceS

Raster. This raster should have value 1 in all the glaciated areas. This raster should have the same extent and resolution as the climatic raster (r).

Value

Raster of Stack. The function return a raster or stack (according to the input r) with value NA in the cels with value 1 in the glaciated raster (iceS).

Author(s)

Diego Nieto Lugilde

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function(r, iceS)
{
  r[iceS == 1] <- NA
  return(r)
}

dinilu/paleoCLMs-package documentation built on May 15, 2019, 8:46 a.m.