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 four wind CF variables #73

Merged
merged 4 commits into from
Sep 19, 2024
Merged

Conversation

svahl991
Copy link
Collaborator

This adds four variables related to wind fluid dynamics. The names are already CF names that have not yet been added to the CCPP standard.

@svahl991
Copy link
Collaborator Author

svahl991 commented Sep 13, 2024

Tagging @ncrossette @shlyaeva

Copy link
Collaborator

@gold2718 gold2718 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused about one of the names.

long_name="The curl of the vector wind field">
<type kind="kind_phys" units="s-1">real</type>
</standard_name>
<standard_name name="horizontal_divergence_of_wind"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't the CF name divergence_of_wind because CF considers "wind" to be the horizontal component?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The note attached to divergence of wind (visible if you click on the name) in the CF website says:

"[horizontal_]divergence_of_X" means [horizontal] divergence of a vector X; if X does not have a vertical component then "horizontal" should be omitted. Wind is defined as a two-dimensional (horizontal) air velocity vector, with no vertical component. (Vertical motion in the atmosphere has the standard name upward_air_velocity.)

So now that I read that note more carefully, I see you are correct. Thanks for catching this. I think I misread the note originally. I will make this change.

Tagging @MarekWlasak to make sure he is OK with this change, since he suggested the name with horizontal_ to me originally.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR has now been updated to remove horizontal_ from divergence_of_wind.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.... but wind does have 3 components (u,v w), so we do need the horizontal_ bit otherwise we are talking about the 3 dimensional divergence!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.... but wind does have 3 components (u,v w), so we do need the horizontal_ bit otherwise we are talking about the 3 dimensional divergence!

I believe what the CF standard is saying in their comment is that wind is defined to be a 2-D variable, with the vertical component broken out as a separate variable (upward_air_velocity), and that's why the horizontal_ prefix is not required in the divergence_of_wind name.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. Just checked the CF standard. The wind tag is indeed defined as implicitly horizontal, so no need for the prefix. I am bit surprised by this though, as there is no tag for a 3D wind!

Copy link
Collaborator

@gold2718 gold2718 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now, thanks!

standard_names.xml Outdated Show resolved Hide resolved
climbfuji added a commit that referenced this pull request Sep 19, 2024
Update CODEOWNERS. See in the file itself: "Order is important. The last matching pattern has the most precedence."

See #73 for example.
@climbfuji climbfuji merged commit 9b741d7 into ESCOMP:main Sep 19, 2024
3 checks passed
climbfuji added a commit that referenced this pull request Sep 19, 2024
Update CODEOWNERS. See in the file itself: "Order is important. The last matching pattern has the most precedence."

See #73 for example.
@MarekWlasak
Copy link

My concerns and suggestions are in #77

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.

4 participants