Function nix::valid::getDimensionsUnits

Function Documentation

std::vector<std::string> nix::valid::getDimensionsUnits(DataArray darray)

Helper getting the units from all dimensions of DataArray.

Helper function that gets all the units from all the dimensions of the given DataArray and returns them as vector of strings. For all units not set (since boost::optional) it inserts an empty string andfor all dims that have no unit (since SetDimension) it inserts the string “SetDimension”. Thus the number of returned units matches the number of dimensions and indices.