We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
MWE:
r1 = Raster(WorldClim{Climate}, :tmin, month = 1) r2 = r1[1:10, 1:10] r3 = r1[DimSelectors(r2, selectors = At)]
Error (ignore the task stuff):
nested task error: MethodError: selectindices(::Projected{…}, ::At{…}) is ambiguous. Candidates: selectindices(l::Projected, sel::At) @ Rasters ~/.julia/packages/Rasters/0qvMe/src/lookup.jl:96 selectindices(l::DimensionalData.Dimensions.Lookups.Lookup, sel::At{<:AbstractVector}; kw...) @ DimensionalData.Dimensions.Lookups ~/.julia/packages/DimensionalData/hhCBb/src/Lookups/selector.jl:140 Possible fix, define selectindices(::Projected, ::At{<:AbstractVector}) Stacktrace: [1] _dims2indices @ ~/.julia/packages/DimensionalData/hhCBb/src/Dimensions/indexing.jl:117 [inlined] [2] _dims2indices @ ~/.julia/packages/DimensionalData/hhCBb/src/Dimensions/indexing.jl:109 [inlined] [3] macro expansion @ ~/.julia/packages/DimensionalData/hhCBb/src/Dimensions/indexing.jl:55 [inlined] [4] _dims2indices(lookups::Tuple{Projected{…}, Projected{…}}, dims::Tuple{X{…}, Y{…}}, I::Tuple{X{…}, Y{…}}) @ DimensionalData.Dimensions ~/.julia/packages/DimensionalData/hhCBb/src/Dimensions/indexing.jl:55 [5] dims2indices @ ~/.julia/packages/DimensionalData/hhCBb/src/Dimensions/indexing.jl:50 [inlined] [6] dims2indices @ ~/.julia/packages/DimensionalData/hhCBb/src/Dimensions/indexing.jl:32 [inlined] [7] _dim_dotview @ ~/.julia/packages/DimensionalData/hhCBb/src/array/indexing.jl:110 [inlined] [8] dotview(::Raster{…}, ::Y{…}, ::X{…}) @ DimensionalData ~/.julia/packages/DimensionalData/hhCBb/src/array/indexing.jl:87 [9] merge_and_index(f::Function, A::Raster{…}, dims::Tuple{…}) @ DimensionalData ~/.julia/packages/DimensionalData/hhCBb/src/array/indexing.jl:151 [10] _dim_dotview @ ~/.julia/packages/DimensionalData/hhCBb/src/array/indexing.jl:117 [inlined] [11] dotview(A::Raster{…}, i::DimSelectors{…}) @ DimensionalData ~/.julia/packages/DimensionalData/hhCBb/src/array/indexing.jl:97
I can fix the ambiguity, but then I get a stackoverflow of reprojects.
reproject
Ambiguity fix:
function LA.selectindices(l::Projected, sel::At{<: AbstractVector}) selval = reproject(mappedcrs(l), crs(l), dim(l), val(sel)) LA.at(l, rebuild(sel; val=selval)) end
The text was updated successfully, but these errors were encountered:
Haha I hit this too and fixed it last night
Sorry, something went wrong.
Nice...pr? :D
Yeah it's bundled with something else, maybe I'll split it
No branches or pull requests
MWE:
Error (ignore the task stuff):
I can fix the ambiguity, but then I get a stackoverflow of
reproject
s.Ambiguity fix:
The text was updated successfully, but these errors were encountered: