names.ee.image.Image: Names of Earth Engine Images layers (bands)

names.ee.image.ImageR Documentation

Names of Earth Engine Images layers (bands)

Description

Get the names of the layers of an Earth Engine Image object.

Usage

`names(x)`

Arguments

x

an EE Image object.

Value

A vector with the name of the bands.

Examples

## Not run: 
library(rgee)
library(rgeeExtra)

ee_Initialize()
extra_Initialize()

img_demo <- ee$Image("COPERNICUS/S2_SR/20190310T105851_20190310T110327_T30TVK")[[1:3]]
names(img_demo)

## End(Not run)

r-earthengine/rgeeExtra documentation built on Dec. 7, 2023, 9:03 p.m.