I am trying to create a automating process in R to analyse a large number of tiff files from Sentinel-1. I read the raster in R using
r <-raster("s1a-iw-grd-vh-20230208t052407-20230208t052432-047140-05a7dd-002.tiff")
The file is read but R shows that it has no projection. Note that R raster thinks that the extent of the raster is the dimensions (rows,columns) and assigns values 1:nrow and 1.ncol as coordinates and also gives a wrong resolution.
class : RasterLayer
dimensions : 16668, 26588, 443168784 (nrow, ncol, ncell)
resolution : 1, 1 (x, y)
extent : 0, 26588, 0, 16668 (xmin, xmax, ymin, ymax)
crs : NA
source : s1a-iw-grd-vh-20230208t052407-20230208t052432-047140-05a7dd-002.tiff
names : s1a.iw.grd.vh.20230208t052407.20230208t052432.047140.05a7dd.002
values : 0, 25771 (min, max)
Plotting the raster using mapview(r)
plots it south of Ghana and Togo in Africa yet it is supposed to be in the south of Sweden.
Using ArcGIS placed the image in the correct geogrtaphical region which implies that R raster package is not able to read ceratin attributes of the "tiff" file.
ArcGIS shows that the source file has spatial attributes as shown here
How can I get R to read and map this "tiff" file properly. I would love solutions only in R. I have also tried the terra and stars packages without much luck
here is a link to the tiff file TIFF_FILE