lair.noaa.CarbonTracker.get_specie_from_version#
- static CarbonTracker.get_specie_from_version(version)[source]#
Get the specie from the version.
- Parameters:
version (str) – The version of CarbonTracker data.
- Returns:
Literal[‘ch4’, ‘co2’] – The specie:
'ch4'if the version’s name has “ch4” in it (in any case), else'co2'.- Return type:
Literal[‘ch4’, ‘co2’]
See also
CarbonTracker.from_versionMakes the class of that gas.
Examples
>>> from lair.noaa import CarbonTracker >>> CarbonTracker.get_specie_from_version("CT-CH4-2025") 'ch4' >>> CarbonTracker.get_specie_from_version("CT2019B") 'co2'