我有一個光柵,根據NetCDF這是在(蘭伯特圓錐等角投影)中得到:如何更改蘭伯特圓錐形光柵投影到latlon度r
library(meteoForecast)
wrf_temporary <- getRaster("temp", day = Sys.Date(), frames = 'complete', resolution = 36, service = "meteogalicia")
wrf_temporary
extent : -18, 4230, -18, 3726 (xmin, xmax, ymin, ymax)
coord. ref. : +proj=lcc +lat_1=43 +lat_2=43 +lat_0=34.82300186157227 +lon_0=-14.10000038146973 +x_0=536402.34 +y_0=-18558.61 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=km +no_defs
現在我想變換wrf_temporary光柵到"+proj=longlat +datum=WGS84"
(緯度長度)。該怎麼辦? 我想是這樣的:
mfExtent('meteogalicia', resolution = 36)
class : Extent
xmin : -49.18259
xmax : 18.789
ymin : 24.03791
ymax : 56.06608
已經嘗試了很多的選擇,但他們沒有給出正確的結果...
您是否試過'projectRaster'?如果是這樣,怎麼樣?如果沒有,嘗試一下。 – Spacedman
是的,試過'projectRaster(wrf_temporary,crs =「+ proj = longlat + datum = WGS84」)',但沒有幸運:( –