Learn R Programming

sits (version 0.12.0)

.sits_raster_stack_info: Obtain the information about files that make up a stack cube

Description

All image files should have the same spatial resolution and same projection. In addition, image file names should include information on tile, band and date. The timeline and the bands are deduced from this information. Examples of valid image names include "CB4_64_16D_STK_022024_2018-08-29_2018-09-13_EVI.tif" and "cube_20LKP_B02_2018-07-18.jp2". In each case, the user has to provide appropriate parsing information that allows SITS to extract the tile, the band and the date. In the examples above, the parsing info would include "_" as a delimiter. In the first, the names of the columns for parsing are "X1, X2, X3, X4, tile, date, X7, band". In the second, they are "tile, band, date".

Usage

.sits_raster_stack_info(
  satellite,
  sensor,
  data_dir,
  parse_info,
  delim,
  bands,
  start_date,
  end_date
)

Arguments

satellite

name of satellite

sensor

name of sensor

data_dir

directory where data is located

parse_info

parsing information

delim

delimiter

bands

bands to be used (optional)

start_date

starting date of the cube (optional)

end_date

ending date of the cube (optional)