Skip to content

make L2 trace gas converters work and be consistent with what the upgrader#1142

Merged
BenjaminRuston merged 1 commit intofeature/sprint-ioda-convertersfrom
feature/sprint-ioda-converters-jerome666
Jan 12, 2023
Merged

make L2 trace gas converters work and be consistent with what the upgrader#1142
BenjaminRuston merged 1 commit intofeature/sprint-ioda-convertersfrom
feature/sprint-ioda-converters-jerome666

Conversation

@jeromebarre
Copy link
Copy Markdown

@jeromebarre jeromebarre commented Jan 12, 2023

This makes those two converters actually working and be in phase with what the upgrader is doing.
We have tested various repos and skylab experiments and everything else seems good to go now.
This is the last piece to have everything in place before the merge.

Of course more changes will be done to actually go with the convention as soon as we actually can (i.e. once the IODA Fortran API merged and tested) on the ancilliary variables (averaging kernel and pressure vertices).

For the ObsVal names I think it is better to keep this out as otherwise we would need to re-upgrade all testinput/output/yaml data in ufo/ufo-data/fv3-jedi/fv3-jedi-data and r2d2 for slylab...

Thanks for your understanding on this!

Copy link
Copy Markdown
Collaborator

@BenjaminRuston BenjaminRuston left a comment

Choose a reason for hiding this comment

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

nice to have regression testing to show passing for that last sanity check

at this point I see no problem as both version of the code are save for posterity if needed

@BenjaminRuston BenjaminRuston merged commit ec47029 into feature/sprint-ioda-converters Jan 12, 2023
@BenjaminRuston BenjaminRuston deleted the feature/sprint-ioda-converters-jerome666 branch January 12, 2023 15:54

AttrData = {
'converter': os.path.basename(__file__),
'nvars': np.int32(len(obsvars)),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Technically, this line should have been eliminated. It is deprecated.

AttrData = {
'converter': os.path.basename(__file__)
'converter': os.path.basename(__file__),
'nvars': np.int32(1),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same as last comment. This line should be eliminated, nvars is deprecated.

varname = 'averaging_kernel_level_'+str(k+1)
vkey = (varname, 'RtrvlAncData')
self.varAttrs[vkey]['coordinates'] = 'longitude latitude'
self.varAttrs[vkey]['units'] = ''
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

unitless and blank units should be omitted entirely.

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