Skip to content
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

Displaying a RasterStack with a long, merged dimension takes a while #812

Closed
asinghvi17 opened this issue Sep 30, 2024 · 3 comments · Fixed by #813
Closed

Displaying a RasterStack with a long, merged dimension takes a while #812

asinghvi17 opened this issue Sep 30, 2024 · 3 comments · Fixed by #813
Labels

Comments

@asinghvi17
Copy link
Collaborator

asinghvi17 commented Sep 30, 2024

using Rasters

r1 = Raster(rand(X(1:1000), Y(1:1000)))
r2 = Raster(rand(dims(r1)...))

rs = RasterStack(r1, r2)

bool_cond_raster = r1 .> 0.5
mask_inds = Rasters.DD.DimIndices(bool_cond_raster)[bool_cond_raster]
rs[mask_inds]
Screen.Recording.2024-09-30.at.11.48.32.AM.mov
@asinghvi17
Copy link
Collaborator Author

Maybe this is better raised in DimensionalData.jl?

@rafaqz
Copy link
Owner

rafaqz commented Sep 30, 2024

I'll transfer it over

@rafaqz rafaqz transferred this issue from rafaqz/Rasters.jl Oct 1, 2024
@rafaqz
Copy link
Owner

rafaqz commented Oct 1, 2024

Had to fix your MWE, but yes something is really wrong with show here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants