WriterADIOS2: write fields in separate components#407
Conversation
This makes the USE_THREADS output file follow the same convention as in the unthreaded case.
fbce9b0 to
f036bf4
Compare
cell-centered only for now. Also fix the dimensions to be in reverse order (ie., Fortran) while adios2 expects C order.
febdc61 to
d4df79b
Compare
8cd8993 to
ad54d44
Compare
|
Thanks! This and psc-code/pscpy#42 works perfectly in psc-plot, but they have the effect of changing "t" to "time". I'd personally prefer "t" as the dimension and scalar value, but I can manually rename downstream if you disagree. Also, what are the reasons for storing dimensions in a single space-separated string? Just seems odd. |
|
Also, shouldn't it be "step/dimensions", not "step_dimension"? |
I think that should be easy enough to change (by changing
Well, I was going to say that I copied this from how netcdf4 does it, but actually that may not be true. I'm also not totally positive that adios2 can handle an attribute that's an array of strings, but I'll take a look. |
Well, what I had in mind is that adios2's concept of steps should translate into an additional dimension in xarray, and that attributes to serve to give it a name (other than |
That kinda makes sense to me, but the actual implementation doesn't seem to match that. Here's a snippet of the current output: To match how And similarly, time would be: I don't know about scalar vs. attr vs. length-1 1D array, or if maybe step/dimensions should be "t" like it currently is.
Assuming this impacts xarray_adios2, can ggcmpy handle the discrepancy? |
|
Well, so if one were to use Also, I guess I didn't even remember that psc writes out a |
No description provided.