-
Notifications
You must be signed in to change notification settings - Fork 36
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
Spherical manifolds etc. #60
Comments
Obviously, indexing into a |
We have this now with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be ideal if GeoData could represent spherical dimensions where the index wraps without a start/end.
And possibly more complex manifolds.
In discussions with @juliohm https://discourse.julialang.org/t/ann-geodata-jl/45502/5
I suggested a
Speherical
IndexMode
to allow spherical indexing and selectors.This and other similar properties require a new type to dispatch on for index lookup, and also new behaviours of
Int
getindex
that wrap values outside of the axis range back into it.Probably a better method than a new indexmode
Spherical
(which uses inheritance) is a composition/trait hybrid, which would be a manually set field for allAbstractSampled
index modes. It could be calledgeometry
and return values inGeometry
, ofCircular
andLinear
or similar. Other index modes can default to a trait. So:The text was updated successfully, but these errors were encountered: