odc_cube: Open Data Cube data

Description Usage Arguments Details Note

View source: R/odc_cube.R

Description

Data cube created with data indexed in an Open Data Cube instance. The construction of the data cube is based on the data structures in the sits package.

Usage

1
odc_cube(satellite, sensor, datasets, .parser = bdc_parser())

Arguments

satellite

Satellite that produced the images. This name must match the satellites that are declared in the sits package configuration file. (see details below)

sensor

Sensor that produced the images. (see details below)

datasets

a tibble object from class odcsits with the datasets that will be loaded from ODC instance to build the data cube.

.parser

a list with parsing information for files.

Details

The "satellite" and "sensor" parameters must match the declarations made in the sits package configuration file.

The ".parser" it is an optional parameter that can be used to declare the naming pattern of the files indexed by the Open Data Cube. This pattern will be used to define the characteristics of the data cube that will be generated. For this parameter a named vector ("delim", "parse_info") is expected. The value of "delim" is used to determine the separator in the name of the files loaded from the ODC. On the other hand, the "parse_info" parameter determines what information is represented by each position in the configuration file. For example, for the file name:

CB4_64_16D_STK_v001_022024_2019-10-16_2019-10-31_BAND15

The ".parser" parameter will be:

.parser = list( delim = "_", parse_info = c("sat", "res", "X1", "X2", "X3", "tile", "date", "X4", "band") )

This will split the file name using "_" and the positions have the meaning represented in "parse_info". In this case:

sat = CB4 res = 64 tile = 022024 date = 2019-10-16_2019-10-31 band = BAND15

The "Xx" values represent values that should not be used.

Note

It is assumed that the data loaded by the odc_cube function is aligned in time and space. If the data does not have these properties, the function may have problems.


brazil-data-cube/odc-sits documentation built on Dec. 19, 2021, 11:42 a.m.