Use this function to prepare STR from SAFE imagery when you have already downloaded Sentinel 2 image files in advance
Note
For Landsat images, scale_factor should be 1, since Landsat metadata contains gain and offset for scaling image bands.
Examples
img_stk <- terra::rast(system.file("extdata", "BOA",
"BOA_2022-12-11_T36RXV.tif", package = "rOPTRAM"))
STR_dir = tempdir()
str <- calculate_str(img_stk)