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

lines plot of one dimensional YAXArray files #489

Open
felixcremer opened this issue Jan 6, 2025 · 0 comments
Open

lines plot of one dimensional YAXArray files #489

felixcremer opened this issue Jan 6, 2025 · 0 comments

Comments

@felixcremer
Copy link
Member

Running a line plot of a one dimensional YAXArray backed by a DiskArray this files with the following error, running a scatterplot with the same data works.
I am not sure where exactly this is breaking and whether this is a DiskArray interaction problem or something in DimensionalData.

lines(dec[longitude=Near(angralon),lat=Near(angralat), Scale=At("anomalies")])
Stacktrace:
  [1] sumlengths(points::DiskArrays.SubDiskArray{Point{2, Float32}, 1, DiskArrays.BroadcastDiskArray{Point{2, Float32}, 1, Base.Broadcast.Broadcasted{DiskArrays.ChunkStyle{1}, Tuple{Base.OneTo{Int64}}, Base.Broadcast.var"#11#12"{typeof(Makie.f32_convert), Tuple{Base.Broadcast.Pick{1}, Base.Broadcast.var"#13#14"{Base.Broadcast.var"#11#12"{Base.Constructor{Point{2, Float64}}, Tuple{Base.Broadcast.Pick{1}, Base.Broadcast.var"#13#14"{typeof(DimensionalDataMakie._floatornan64), Tuple{Base.Broadcast.Pick{2}}}}}, Tuple{Base.Broadcast.Pick{2}, Base.Broadcast.Pick{3}}}}}, Tuple{Base.RefValue{Nothing}, Vector{Int64}, DiskArrays.PermutedDiskArray{Union{Missing, Float64}, 1, PermutedDimsArray{Union{Missing, Float64}, 1, (1,), (1,), DiskArrays.SubDiskArray{Union{Missing, Float64}, 1, DiskArrayTools.CFDiskArray{Union{Missing, Float64}, 4, Float64, ZArray{Float64, 4, Zarr.BloscCompressor, DirectoryStore}, Float64}, Tuple{Base.Slice{Base.OneTo{Int64}}, Int64, Int64, Int64}, false}}}}}}, Tuple{Base.OneTo{Int64}}, false}, resolution::Vec{2, Float32})
    @ GLMakie ~/.julia/packages/GLMakie/TH3rf/src/glshaders/lines.jl:12
  [2] map(f::typeof(GLMakie.sumlengths), arg1::Observable{DiskArrays.SubDiskArray{Point{2, Float32}, 1, DiskArrays.BroadcastDiskArray{Point{2, Float32}, 1, Base.Broadcast.Broadcasted{DiskArrays.ChunkStyle{1}, Tuple{Base.OneTo{Int64}}, Base.Broadcast.var"#11#12"{typeof(Makie.f32_convert), Tuple{Base.Broadcast.Pick{1}, Base.Broadcast.var"#13#14"{Base.Broadcast.var"#11#12"{Base.Constructor{Point{2, Float64}}, Tuple{Base.Broadcast.Pick{1}, Base.Broadcast.var"#13#14"{typeof(DimensionalDataMakie._floatornan64), Tuple{Base.Broadcast.Pick{2}}}}}, Tuple{Base.Broadcast.Pick{2}, Base.Broadcast.Pick{3}}}}}, Tuple{Base.RefValue{Nothing}, Vector{Int64}, DiskArrays.PermutedDiskArray{Union{Missing, Float64}, 1, PermutedDimsArray{Union{Missing, Float64}, 1, (1,), (1,), DiskArrays.SubDiskArray{Union{Missing, Float64}, 1, DiskArrayTools.CFDiskArray{Union{Missing, Float64}, 4, Float64, ZArray{Float64, 4, Zarr.BloscCompressor, DirectoryStore}, Float64}, Tuple{Base.Slice{Base.OneTo{Int64}}, Int64, Int64, Int64}, false}}}}}}, Tuple{Base.OneTo{Int64}}, false}}, args::Observable{Vec{2, Float32}}; ignore_equal_values::Bool, priority::Int64)
    @ Observables ~/.julia/packages/Observables/YdEbO/src/Observables.jl:570
  [3] map
    @ ~/.julia/packages/Observables/YdEbO/src/Observables.jl:568 [inlined]
  [4] const_lift
    @ ~/.julia/packages/GLMakie/TH3rf/src/GLAbstraction/GLUtils.jl:106 [inlined]
  [5] macro expansion
    @ ~/.julia/packages/GLMakie/TH3rf/src/GLAbstraction/GLUtils.jl:89 [inlined]
  [6] draw_lines(screen::Any, position::Observable{DiskArrays.BroadcastDiskArray{Point{2, Float32}, 1, Base.Broadcast.Broadcasted{DiskArrays.ChunkStyle{1}, Tuple{Base.OneTo{Int64}}, Base.Broadcast.var"#11#12"{typeof(Makie.f32_convert), Tuple{Base.Broadcast.Pick{1}, Base.Broadcast.var"#13#14"{Base.Broadcast.var"#11#12"{Base.Constructor{Point{2, Float64}}, Tuple{Base.Broadcast.Pick{1}, Base.Broadcast.var"#13#14"{typeof(DimensionalDataMakie._floatornan64), Tuple{Base.Broadcast.Pick{2}}}}}, Tuple{Base.Broadcast.Pick{2}, Base.Broadcast.Pick{3}}}}}, Tuple{Base.RefValue{Nothing}, Vector{Int64}, DiskArrays.PermutedDiskArray{Union{Missing, Float64}, 1, PermutedDimsArray{Union{Missing, Float64}, 1, (1,), (1,), DiskArrays.SubDiskArray{Union{Missing, Float64}, 1, DiskArrayTools.CFDiskArray{Union{Missing, Float64}, 4, Float64, ZArray{Float64, 4, Zarr.BloscCompressor, DirectoryStore}, Float64}, Tuple{Base.Slice{Base.OneTo{Int64}}, Int64, Int64, Int64}, false}}}}}}}, data::Dict)
...
    @ VSCodeServer.JSONRPC ~/.vscode/extensions/julialang.language-julia-1.127.2/scripts/packages/JSONRPC/src/typed.jl:67
 [27] serve_notebook(pipename::String, debugger_pipename::String, outputchannel_logger::Base.CoreLogging.SimpleLogger; error_handler::var"#5#10"{String})
    @ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.127.2/scripts/packages/VSCodeServer/src/serve_notebook.jl:147
 [28] top-level scope
    @ ~/.vscode/extensions/julialang.language-julia-1.127.2/scripts/notebook/notebook.jl:35
Output is truncated. View as a [scrollable element](command:cellOutput.enableScrolling?46207d03-d971-4ceb-9aee-ffa4ef5bb3c8) or open in a [text editor](command:workbench.action.openLargeOutput?46207d03-d971-4ceb-9aee-ffa4ef5bb3c8). Adjust cell output [settings](command:workbench.action.openSettings?%5B%22%40tag%3AnotebookOutputLayout%22%5D)...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant