ee-getoffset | R Documentation |
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.
`ee$Image$Extra_getOffsetParams(x)`
`ee$ImageCollection$Extra_getOffsetParams(x)`
x |
An ee$Image or an ee$ImageCollection object. |
A list with the offset parameters for each band.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.