Open mdpiper opened 2 years ago
A recent use case: when writing the ERA5 data component, @gantian127 found that the dataset uses 5 dimensions: three spatial + time + an ensemble number.
In https://github.com/csdms/bmi/issues/87#issuecomment-961404327, @mcflugen suggests
int get_grid_node_coordinates(in int grid, in int dim, in array<double, 1> coordinates)
Building on this. we could swap the dim parameter for a name parameter, which might be more readable (e.g., name = "x" or name = "x1" for the first coordinate dimension).
If we make a new function (or functions), it may break backward compatibility with BMI 2.
Currently, to obtain the nodes of rectilinear, structured quadrilateral, and unstructured grids, the BMI has functions
representing grids of up to three dimensions.
The BMI should also support grids of these types with rank greater than three.