Skip to content

Update standard name rules with rules for units#21

Merged
climbfuji merged 4 commits into
mainfrom
climbfuji-update-rules-units
Aug 24, 2021
Merged

Update standard name rules with rules for units#21
climbfuji merged 4 commits into
mainfrom
climbfuji-update-rules-units

Conversation

@climbfuji
Copy link
Copy Markdown
Collaborator

Add a section about rules for variables to the standard name rules. In particular, provide guidance for dimensionless variables.

Disclaimer. I created this PR on GitHub without actually rendering the rst file.

See #19 and NCAR/ccpp-framework#397 for discussions related to this PR.

@climbfuji
Copy link
Copy Markdown
Collaborator Author

@ligiabernardet @dudhia I just invited you as collaborators for CCPPStandardNames so that I can add you as reviewers. In the meantime, please see this PR for a proposed extension of the standard name rules regarding units.

Copy link
Copy Markdown
Collaborator

@cacraigucar cacraigucar left a comment

Choose a reason for hiding this comment

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

This is very clear and a welcome addition to the StandardNames

Comment thread StandardNamesRules.rst
@climbfuji climbfuji requested a review from dudhia August 23, 2021 15:58
Comment thread StandardNamesRules.rst Outdated
| flag | logicals/booleans that can be either true or false |
| index | integers that can be an index in an array |
| kg kg-1 | mass mixing ratios |
| m m-3 | volumetric mixing ratios (e.g. for soil moisture) |
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

should be m3 m-3 - seems OK otherwise

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Apologies, stupid mistake. Should be fixed now. Please approve if satisfied. Thanks!

@climbfuji climbfuji force-pushed the climbfuji-update-rules-units branch from ccd8879 to 175f7a3 Compare August 23, 2021 16:12
Copy link
Copy Markdown
Collaborator

@dudhia dudhia left a comment

Choose a reason for hiding this comment

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

this looks fine now

@dudhia
Copy link
Copy Markdown
Collaborator

dudhia commented Aug 23, 2021 via email

@climbfuji
Copy link
Copy Markdown
Collaborator Author

With this new index definition, will the previous real 'index' types be corrected in the standard names file? Will there be a new category unit that should be added here?

The way I understood our previous conversations was that we accepted there are issues with these reals, and we (... well, me) are going to fix this as soon as possible. In the meantime, we chose to "ignore".

@dudhia
Copy link
Copy Markdown
Collaborator

dudhia commented Aug 23, 2021 via email

Copy link
Copy Markdown
Collaborator

@ligiabernardet ligiabernardet left a comment

Choose a reason for hiding this comment

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

Thank you for this effort in clarifying the units, especially the dimensionless ones.

Comment thread StandardNamesRules.rst
+------------------------+-------------------------------------------------------------------------------------+
| **Unit** | **Use case** |
+========================+=====================================================================================+
| count | integers that describe the dimension/length of an array |
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The table is not rendered correctly. Please use other tables as a template, and note that there must be a dashed line between each lines of the table.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Thanks, should be ok now. I rendered it on my mac using rst2html.py StandardNamesRules.rst > StandardNamesRules.html and the results looked ok.

Comment thread StandardNamesRules.rst Outdated
climbfuji and others added 2 commits August 23, 2021 20:00
Fix volumetric mixing ratios

Co-authored-by: ligiabernardet <ligia.bernardet@noaa.gov>
@dudhia
Copy link
Copy Markdown
Collaborator

dudhia commented Aug 24, 2021 via email

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.

6 participants