courtiol / IsoriX

This is the website dedicated to the development of the R package IsoriX
12 stars 5 forks source link

use package to get elevation #107

Closed courtiol closed 2 years ago

courtiol commented 5 years ago

Instead of fighting with an elevation raster, we could use a package such as marmap:

library(marmap)
test <- getNOAA.bathy(lon1 = -30, lon2 = 60,
                      lat1 = 30, lat2 = 70,
                      resolution = 4)
test <- as.raster(test)
test[test <0] <- 0
rasterVis::levelplot(test)

It contains quite high resolution for elevation and does not require registration!

courtiol commented 3 years ago

We should also check that: https://besjournals.onlinelibrary.wiley.com/doi/full/10.1111/2041-210X.13330