Only positive latitude and longitude when importing netcdf in R from paleoView probably wrong projection

不打扰是莪最后的温柔 提交于 2019-12-06 11:13:56

To fix this, you could set the extent:

library(raster)
r <- raster("mean_temperature-15000BP-10000BP.nc",  varname = "14000BP-13000BP/13300BP")
extent(r) <- c(-180,180,-90,90)

But note that sometimes longitude in climate data goes from 0 to 360 (not here, I think):

extent(r) <- c(0,360,-90,90)
r <- rotate(r)

To see more about what's in the ncdf, you can do

print(r)

Of course you only want to do this is you are really sure about the extent, and you may want to contact the data provider to report this issue.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!