Skip to content

Commit

Permalink
work on documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed Apr 28, 2024
1 parent 98495c7 commit 8a0ecca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions anemoi/utils/grib.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ def shortname_to_paramid(shortname: str) -> int:
-------
int
Parameter id.
>>> shortname_to_paramid("2t")
167
"""
return _search(shortname)["id"]

Expand All @@ -53,5 +56,8 @@ def paramid_to_shortname(paramid: int) -> str:
-------
str
Parameter shortname.
>>> paramid_to_shortname(167)
"2t"
"""
return _search(str(paramid))["shortname"]

0 comments on commit 8a0ecca

Please sign in to comment.