ee-preprocess | R Documentation |
Preprocessing of ee$Image or ee$ImageCollection objects. This function performs the following tasks:
Cloud Masking: Remove cloud and cloud shadow pixels. See ee$Image$cloudmask.
Decompress: Convert integer pixels to float point numbers.
`ee$Image$Extra_preprocess(x, ...)`
`ee$ImageCollection$Extra_preprocess(x, ...)`
x |
An ee$Image or an ee$ImageCollection object. |
... |
Arguments to pass to ee$Image$cloudmask. |
An ee$Image or ee$ImageCollection object
## Not run:
library(rgee)
library(rgeeExtra)
ee_Initialize()
extra_Initialize()
# Load a Sentinel-2 image and apply automated preprocessing.
img <- ee$Image("COPERNICUS/S2_SR/20170328T083601_20170328T084228_T35SQA") %>%
ee$Image$Extra_preprocess()
# Load and preprocess Sentinel-2 SR image collection.
ic <- ee$ImageCollection$Dataset$COPERNICUS_S2_SR %>%
ee$ImageCollection$Extra_preprocess()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.