I am looking to open .jp2 images into R. I have Sentinel-2 satellite imagery, but I cannot seem to get JPEG2000 GDAL drivers installed correctly or linked to my R environment. I’ve tried working with Jasper, but that didn’t work out as I hoped. Are there any packages that allow for direct opening of .jp2 sentinel-data in R?
Alternatively, I am trying to batch convert jp2 to geotiff, so I can work with these in R. I’ve tried this: https://viewer.nationalmap.gov/tools/rasterconversion/Convert_JP2_Data_2_GeoTIFF_with_ESRI.html but I do not have ArcGIS available, so that failed as well. Files need to keep their original name, only the extension has to change.
I am looking for an open-source solution that can be used on large amounts of files (several hundred at least, so doing it manual in QGIS is no solution).
Can you help me with this?
Thank you!