Using SRTM tif file in R
问题 I'm trying to import a SRTM dataset into R. I've downloaded the data in a tif file however am having trouble reading it in "R". Ive tried using the following code: t = readTIFF("srtm_56_06/srtm_56_06.tif", as.is=TRUE) load('srtm_56_06/srtm_56_06.tif') read_file<-as.matrix(raster("srtm_56_06/srtm_56_06.tif") However I am still getting error messages: load('srtm_56_06/srtm_56_06.tif') # Error: bad restore file magic number (file may be corrupted) -- no data loaded # In addition: Warning message