read_image: Converts multiband geotiff to ndvi image.

View source: R/read_data.R

read_imageR Documentation

Converts multiband geotiff to ndvi image.

Description

This function reads in a multiband geotiff file, calculates ndvi using calc_ndvi function and returns ndvi image as a single layer.

Usage

read_image(filename, red_band = 6, nir_band = 4)

Arguments

filename

The tiff file with multiple bands.

Value

ndvi image

Examples

read_image('MULTIBAND.tiff')

beardon/ninja-active-mapper documentation built on April 24, 2023, 10:06 a.m.