Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add function to get node coordinate units #89

Closed
wants to merge 11 commits into from

Conversation

mdpiper
Copy link
Member

@mdpiper mdpiper commented Nov 11, 2021

This PR adds a new BMI function, get_grid_coordinate_units, that allows a BMI user to get the units of each grid coordinate.

The function is patterned on the existing get_var_units function, which accepts a variable name as a string and returns the units of the variable as a string. For get_grid_coordinate_units, the input name is a coordinate: currently "x", "y", or "z", but this could be extended as BMI is extended to handle more dimensions (see #88).

This change is part of the BMI 2.1 Milestone. The BMI version has been incremented to v2.1-beta.

This fixes #87. See #90 (comment) for some discussion on this new function.

@mdpiper mdpiper changed the title Add function to get grid units Add function to get node coordinate units Dec 14, 2021
@mdpiper mdpiper requested a review from mcflugen March 7, 2022 21:39
@mdpiper
Copy link
Member Author

mdpiper commented Mar 7, 2022

@mcflugen This PR is updated according to our discussion in December. Let me know what you think.

Also, would you prefer this be merged into experimental instead of master?

@mdpiper mdpiper closed this Mar 11, 2022
@mdpiper mdpiper deleted the mdpiper/get-grid-units branch March 11, 2022 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add function to get grid units
1 participant