modis_specs: Compare Spectral Signatures of MODIS Maps

modis_specsR Documentation

Compare Spectral Signatures of MODIS Maps

Description

Function to compare spectral signatures of MODIS maps below water and dryland polygons

Usage

modis_specs(x = NULL, watermask = NULL, drymask = NULL)

Arguments

x

RasterLayer of MODIS band 7

watermask

SpatialPolygons or SpatialPolygonsDataFrame representing the water-polygon that is used to extract reflectances of water on MODIS band 7. By default the masks from Wolski et al., 2017 are used. See also modis_watermask() in case you want to create dynamic watermasks.

drymask

SpatialPolygons or SpatialPolygonsDataFrame representing the dryland-polygon that is used to extract reflectances of water on MODIS band 7. By default the masks from Wolski et al., 2017 are used.

Value

Plot of spatial reflectance values below the two polygons

Examples

## Not run: 
# Download file
file <- modis_download(
    dates     = "2020-01-01"
  , outdir    = getwd()
  , tmpdir    = tempdir()
  , username  = "username"
  , password  = "password"
  , overwrite = F
)

# Load it
modis <- modis_load(file)

# Check spectral reflectances
modis_specs(modis)

## End(Not run)

DavidDHofmann/floodmapr documentation built on Jan. 15, 2024, 9:32 p.m.