-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I access a RasterStack
's dimensions?
#354
Comments
A few ways: dims(rstack, 6)
dims(rstack, :yC)
dims(rstack, Dim{:yC}()) For multiple: dims(rstack, (6, 7))
dims(rstack, (:zC, :yC)) You get the order you specify. Read the DimensionalData.jl docs to understand this stuff more. Rasters simply extends DD for raster arrays. The other things you are trying are for getting raster layers, not dimensions. It has to be one or the other. |
Thanks! I looked for that in the docs over there but I guess I missed it... sorry |
They can probably be improved... if you ever have time to fix anything missing docs PRs are appreciated |
This is a bit of a silly question, but consider the raster stack below:
I'd like to access one of its dimensions, say,
yC
. The only way I figured out how to that was by doingwhich requires me to search for the position of
yC
in advance. The other "intuitive" ways that I could think of don't seem to work (likerstack.yC
orrstack[:yC]
).Is there a better way?
Thanks!
The text was updated successfully, but these errors were encountered: