This function converts Sentinel satellite data files to GeoTIFF format.
Arguments
- layers
(character) Vector of file paths to Sentinel data files. If NULL, the function searches for files in the specified path with names containing "B".
- path
(character) Directory path where Sentinel data files are located. Default is the current directory.
- destination
(character) File path for the output GeoTIFF file.
- spat_res
(numeric) Spatial resolution of the output GeoTIFF file. Default is 10 meters.