Adds a little round trip test where we read/write to/from xarray.
The example uses the variable coords and writes some data.
Added some helpers in xarray_integration.h the workflow are a bit verbose.
lambdas to hid the from and get etc ....
auto populate_depth = [](SharedArray& data) {
for (auto i = data.domain()[0].inclusive_min();
i < data.domain()[0].exclusive_max(); ++i) {
data(i) = i * 10;
}
};
Adds a little round trip test where we read/write to/from xarray.
The example uses the variable coords and writes some data.
Added some helpers in xarray_integration.h the workflow are a bit verbose.
lambdas to hid the from and get etc ....
auto populate_depth = [](SharedArray& data) {
for (auto i = data.domain()[0].inclusive_min();
i < data.domain()[0].exclusive_max(); ++i) {
data(i) = i * 10;
}
};