-
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
diff(A, dims=1)
should make new gridpoints staggered (?)
#163
Comments
Yeah I wasn't sure what to do here, this may be wrong/a bug. What do you mean by staggered? |
Move the grid by half the grid spacing: |
Im not sure that will work for DateTime. You cant e.g. shift half months generically. But you can hack it for your use case (not tested): set(A, X=dims(A, X) .+ step(span(A, X))/2) |
Yes, it doesn't work for integer indices either (in general). So not sure what's best. |
Thats pretty much why it is what it is... its hard to be consistent otherwise. But Im not sure what would be "correct" in terms if the meaning of |
Currently it keeps the original grid, dropping the last point.
The text was updated successfully, but these errors were encountered: