ee-preprocess: Automated EE Image or EE ImageCollection preprocessing

ee-preprocessR Documentation

Automated EE Image or EE ImageCollection preprocessing

Description

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.

Usage

`ee$Image$Extra_preprocess(x, ...)`

`ee$ImageCollection$Extra_preprocess(x, ...)`

Arguments

x

An ee$Image or an ee$ImageCollection object.

...

Arguments to pass to ee$Image$cloudmask.

Value

An ee$Image or ee$ImageCollection object

Examples

## 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)

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