TGSAI / mdio-cpp

C++, Cloud native, scalable storage engine for various types of energy data.
Apache License 2.0
6 stars 3 forks source link

enh:add xarray compatitbilty example. #90

Closed blasscoc closed 3 months ago

blasscoc commented 3 months ago

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; } };