Skip to content

Conversation

@mkavulich
Copy link
Collaborator

Description

This PR adds standard names for the number density of specific chemicals and their climatological values. These names are derived from discussion on Issue #112.

This also includes new rules regarding the naming of chemical species in standard names. These are my attempt at a draft of these rules and I welcome any feedback, corrections, or suggested changes, especially from anyone with more knowledge of atmospheric/geochemistry.

Issues

Resolves #112

@climbfuji
Copy link
Collaborator

climbfuji commented Sep 25, 2025

@cabarton @areinecke FYI - please look at the StandardNamesRules.rst and standard_names.xml only, the yaml and md files are auto-generated from the xml file.

@cabarton
Copy link

Seems reasonable to me. Do we need to have ion species and electrons added to the standard names list as well?

@mkavulich
Copy link
Collaborator Author

@cabarton I added a few items to the rules attempting to cover the ionization rules we had considered in the discussion on issue #112, but unless there is a specific use case right now there's no reason to add "speculative" standard names. We typically add them as they are needed/used.

@mkavulich
Copy link
Collaborator Author

mkavulich commented Oct 9, 2025

@jeromebarre You have asked to review chemistry-related changes in the past; what do you think about these proposed chemical naming rules?

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.

Approving but please look into clarifying the section with my question.

Comment on lines 131 to 133
unambiguous common names (e.g. water, ozone) are also included. In all cases, the long name
should include specific details about the substance's chemical makeup, as well as the
phase/state of matter if relevant; e.g. ``water_vapor``, ``liquid_h2so4``
Copy link
Collaborator

Choose a reason for hiding this comment

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

In this sentence, are water_vapor and liquid_h2so4 supposed to be standard name examples or long name examples? The context leads me to think they are for standard names but in long names, we do not usually use underscores.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@gold2718 Thanks for catching this, I did mean the standard name not long name here.

Copy link
Collaborator

@nusbaume nusbaume left a comment

Choose a reason for hiding this comment

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

Mostly looks good to me, but I did have one question/concern related to the new ion-naming rules.

#. If the ionization of the chemical species is relevant, "ionized" should be included in the standard
name as a prefix to the substance; e.g. ``number_density_of_ionized_he`` for ionized helium. If
relevant, the net ionization charge should be included as a suffix (in words, because +/- are
not valid standard name characters); e.g. ``number_density_of_ionized_he_plus_1``
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looking at this provided standard name I worry if this particular naming rule could lead to ambiguous variable names. For example if I saw the standard name number_density_of_ionized_he_plus_1 I would not be sure if it means the charge is +1, or if this is the number density of ionized helium added to the literal number one. Would it be better to add the plus_1 before the word ionized? For example:

Suggested change
not valid standard name characters); e.g. ``number_density_of_ionized_he_plus_1``
not valid standard name characters); e.g. ``number_density_of_plus_1_ionized_he``

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.

Number density standard names

5 participants