-
Notifications
You must be signed in to change notification settings - Fork 186
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
Grid in JLD2 files produced by JLD2OutputWriter
is not sliced
#1194
Comments
That was the intent of I think a more complete solution would abstract the concept of fields in output, and then we could use |
is this still an issue? |
We should close this, but I'd like to leave an explanatory note in case others want to weigh in. This issue is really about "vision" than something missing with output writers. This issue really proposes that we think about JLD2 output differently (perhaps, in a way that's similar to how NetCDF views output). In that mode output would be somewhat independent of Oceananigans; if we output "sliced" data, then we could also output a "sliced grid" that represents the portion of the grid on which the data lives. One might then be able to load data and a grid "simply" (ie as But since this issue was opened we have implemented Since we do save index information now when we slice a field, it is actually possible to manually slice a grid after data has been outputted. So savvy users can achieve this functionality with themselves if they (for some reason) are allergic to |
We don't want to slice the grid in JLD2 output. |
Right now JLD2 files always include the full grid (with halos) in
file["grid"]
which can make it hard to make plots of the data, especially if it was sliced (requiring users to know how to cut out the halos).Not sure if this is a bug as
file["grid"]
might be referring to the grid the simulation was run on in which case it makes sense to include all the coordinates including halos, but this might still surprise users wishing to make plots.Thanks to @vchuravy for helping uncover this issue!
so
but
The text was updated successfully, but these errors were encountered: