processS2: Post-processing of Sentinel-2 Raw Data

aggregateS2R Documentation

Post-processing of Sentinel-2 Raw Data

Description

aggregateS2 aggregates Sentinel-2 data from 10-m or 20-m resolution to either 20-m or 60-m resolution.

interpol does bilinear interpolation from 20-m resolution to 10-m resolution.

tabulateS2 tabulates (efficiently) the values of reflectance using preset bin intervals (equal to the precision of the raw data).

Usage

aggregateS2(x, finalreso = 60)
interpol(x)
tabulateS2(x)

Arguments

x

a vector of reflectance values for a single band at the 10-m resolution (so there must 10980 by 10980 pixels).

finalreso

the target resolution for the aggregation.

Details

These functions are under development and are currently intended to be used in combination with others functions (e.g., to extract the values from the raw rasters). The outputs also need to be input to appropriate data structures (e.g., rasters).

Value

a vector of numeric values of the appropriate length.

Author(s)

Emmanuel Paradis


emmanuelparadis/sentinel documentation built on May 2, 2024, 4:52 a.m.