ee-getoffset: Retrieve offset parameter from EE Image and EE...

ee-getoffsetR Documentation

Retrieve offset parameter from EE Image and EE ImageCollections objects

Description

Earth Engine apply a simply lossless compression technique: IMG_Float_Values = scale * IMG_Integer_Values + offset. ee$Image$getOffsetParams or ee$ImageCollection$getOffsetParams retrieve the offset parameter for each band of an ee$Image.

Usage

`ee$Image$Extra_getOffsetParams(x)`

`ee$ImageCollection$Extra_getOffsetParams(x)`

Arguments

x

An ee$Image or an ee$ImageCollection object.

Value

A list with the offset parameters for each band.

Examples

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

ee_Initialize()
extra_Initialize()

# Retrieve offset parameters from the first image in NASA IMERG V06 collection
offset_params <- ee$ImageCollection("NASA/GPM_L3/IMERG_V06")[[1]] %>%
  ee$Image$Extra_getOffsetParams()

# Display offset parameters for each band.
offset_params

# Get offset parameters from NASA IMERG V06 image collection.
offset_params_ <- ee$ImageCollection("NASA/GPM_L3/IMERG_V06") %>%
  ee$ImageCollection$Extra_getOffsetParams()

# Display offset parameters for each band.
offset_params_

## End(Not run)

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