ee-getstac: Retrieve EE Image or EE ImageCollection STAC metadata

ee-getstacR Documentation

Retrieve EE Image or EE ImageCollection STAC metadata

Description

Get the STAC of an ee$Image or ee$ImageCollection object.

Usage

`ee$Image$Extra_getSTAC(x)`

`ee$ImageCollection$Extra_getSTAC(x)`

Arguments

x

An ee$Image or an ee$ImageCollection object.

Value

Return STAC metadata for each band.

Examples

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

ee_Initialize()
extra_Initialize()

# Retrieve STAC metadata for the first image in NASA's GPM L3 IMERG V06 collection
stac_metadata <- ee$ImageCollection("NASA/GPM_L3/IMERG_V06")[[1]] %>%
  ee$Image$Extra_getSTAC()

stac_metadata

# Retrieve STAC metadata from NASA's IMERG V06 image collection.
stac_metadata_ <- ee$ImageCollection("NASA/GPM_L3/IMERG_V06") %>%
  ee$ImageCollection$Extra_getSTAC()

stac_metadata_

## End(Not run)

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