Rename ICON facet var_type -> output_stream - #3212
Open
schlunma wants to merge 8 commits into
Open
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3212 +/- ##
==========================================
- Coverage 96.46% 96.46% -0.01%
==========================================
Files 281 281
Lines 16320 16331 +11
==========================================
+ Hits 15743 15753 +10
- Misses 577 578 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
schlunma
marked this pull request as ready for review
August 31, 2026 11:26
schlunma
marked this pull request as draft
August 31, 2026 11:51
var_type -> streamvar_type -> output_stream
schlunma
marked this pull request as ready for review
September 1, 2026 09:15
Contributor
|
Thanks for this, @schlunma! |
bouweandela
approved these changes
Sep 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Today I learned that the facet
var_typethat we use for ICON data is actually calledoutput_streamby the ICON modeling community.To use a consistent nomenclature here, I suggest renaming
var_type->output_streamin our code and documentation. This makes it also easier for new users from the ICON modeling community.Considerations about backwards-compatibility
var_typeis only used for data finding, which is configured in the ICON data source configuration in data-native-icon.yml. This configuration file is not loaded by default, so there's no way we can force users to update their ICON data source configuration.In addition, there are no published ICON recipes; all of them are custom user recipes (again, we cannot force users to update those). However, I expect that most of these recipe do not have
var_typefacet, because those are added automatically by ESMValCore using the ICON extra facets. The latter is the only thing that is changes in this PR apart from documentation.Considering all of the above, we need to consider the following cases when thinking about backwards-compatibility:
var_typein user's recipevar_typein user's extra facetsvar_typein user's configurationvar_typeis simply ignoredvar_typeis simply ignoredvar_typeis simply ignoredvar_typefrom recipe is used)var_typefrom extra facets is used)var_typefrom recipe and extra facets is used)The only non-trivial (but most likely) case is if the configuration file requires a
var_type, but this is not given via the recipe or user's extra facets. In the past, the default extra facets have supplied this, but now they only supplyoutput_stream. As far as I can tell, the easiest solution to ensure backwards-compatibility is to expandLocalDataSourceso that the missingvar_typefacet is read fromoutput_stream.Advantages:
var_typein their configuration by explicitly specifying it in their recipes/extra facets, they can just do that; no warning is raised)var_typeneeds to be added to the dataset facetsDisadvantages:
LocalDataSourcewill contain special project-specific code for some time.Deprecations (since v2.16.0, will be removed in v2.18.0) #
Usage of extra facet
var_typefor ICON: please useoutput_streaminstead.Link to documentation:
Checklist
It is the responsibility of the author to make sure the pull request is ready to review. The icons indicate whether the item will be subject to the 🛠 Technical or 🧪 Scientific review.
To help with the number pull requests: