You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using worldclim_tile() to obtain Bioclim layers at 0.5-min resolution for the first time, and I've run into what seems to be incorrect labeling of the layers. Running
Returns a RasterStack with layers labeled in order from 1 to 19. However, the values in those layers don't align with anything like what they should be, given the identity of the variables. I first noticed it in comparing bio12 (annual precipitation) and bio13 (precip in the wettest month) — the former should, arithmetically, always be larger than the latter. However, the range of values for the bio12 layer in the stack downloaded above is about 5 to 25, and the range for the bio13 layer is about 26 to 66. (Squinting at hist() outputs to get those.) Subtracting the bio13 layer values from bio12 layer values gets me between about -54 and -8.
Looking across the 19 layers with plot() shows ranges of values that look like they should correspond to Bioclim variables, but not the ones labeled.
plot(BClim)
As one final check, I went back to getData() from raster, which pulls down WoldClim 1.4 instead of 2.1, and obtained values that make much more sense for the labeled variables.
Just a note that I've independently reproduced this issue and agree that the output of worldclim_tile doesn't look right. Watching to see what the answer is! Thanks so much Robert!
Hey everybody, I am quite late with my comment and I am not sur if this was already solved. I observed the same issue when dowloading the data in R. I correlated the data from version 1.4 to 2.1 and it seems that the order of bioclim variables is like the following: 1, 10, 11,12, 13, 14, 15, 16, 17, 18, 19, 2, 3 etc. I guess this comes from the fact that when creating the multband raster the layers where ordered reading the numbers as characters and not as numbers.
(version 2.1 = rows, version 1.4 = columns
I'm using
worldclim_tile()
to obtain Bioclim layers at 0.5-min resolution for the first time, and I've run into what seems to be incorrect labeling of the layers. RunningReturns a RasterStack with layers labeled in order from 1 to 19. However, the values in those layers don't align with anything like what they should be, given the identity of the variables. I first noticed it in comparing bio12 (annual precipitation) and bio13 (precip in the wettest month) — the former should, arithmetically, always be larger than the latter. However, the range of values for the bio12 layer in the stack downloaded above is about 5 to 25, and the range for the bio13 layer is about 26 to 66. (Squinting at
hist()
outputs to get those.) Subtracting the bio13 layer values from bio12 layer values gets me between about -54 and -8.Looking across the 19 layers with
plot()
shows ranges of values that look like they should correspond to Bioclim variables, but not the ones labeled.As one final check, I went back to
getData()
fromraster
, which pulls down WoldClim 1.4 instead of 2.1, and obtained values that make much more sense for the labeled variables.The text was updated successfully, but these errors were encountered: