I am trying to download ~200 geotiffs from NOAA into R using package ‘rvest’.
The website with the data is here (https://noaadata.apps.nsidc.org/NOAA/).
NOAA provides instructions on how to bulk download the geotiff data here (https://nsidc.org/data/user-resources/help-center/how-access-and-download-noaansidc-data), at the bottom of the page under ‘Download a Directory’
When I run the code (using my working directory) it does download all the geotiffs. However, when I try to open them using the ‘raster’ package, I get this error
file <- raster(“path-to-file.geotiff”)
I know that something is going wrong in the bulk download step using rvest, because if I instead download a geotiff from the NOAA website by clicking on it, I can open it as a raster in R without issue.
I have looked at the help docs for the rvest functions and have been unable to find a solution.