{"id":23650,"library":"earthkit-meteo","title":"earthkit-meteo","description":"Meteorological computations library developed by ECMWF. Provides unit conversion, thermodynamics, and diagnostics for weather and climate data. Current stable version is 0.6.2, with release candidate 1.0.0rc1 available. Active development with frequent releases.","status":"active","version":"1.0.0rc1","language":"python","source_language":"en","source_url":"https://github.com/ecmwf/earthkit-meteo","tags":["meteorology","climate","earthkit","ecmwf","unit-conversion","thermodynamics"],"install":[{"cmd":"pip install earthkit-meteo","lang":"bash","label":"Install stable version"},{"cmd":"pip install earthkit-meteo==1.0.0rc1","lang":"bash","label":"Install release candidate"}],"dependencies":[{"reason":"Core dependency for numerical computations.","package":"numpy","optional":false},{"reason":"Used for advanced mathematical functions.","package":"scipy","optional":true}],"imports":[{"note":"earthkit-meteo is a namespace package; import as earthkit.meteo","wrong":"from earthkit import meteo","symbol":"earthkit.meteo","correct":"import earthkit.meteo as em"},{"note":"unitis is a submodule inside earthkit.meteo","wrong":"import unitis","symbol":"unitis","correct":"from earthkit.meteo import unitis"},{"note":"thermo is a submodule inside earthkit.meteo","wrong":"import thermo","symbol":"thermo","correct":"from earthkit.meteo import thermo"}],"quickstart":{"code":"import earthkit.meteo as em\n\n# Temperature unit conversion\ntemp_k = 300.15\ntemp_c = em.unitis.convert(temp_k, 'K', 'degC')\nprint(f\"{temp_k} K = {temp_c:.2f} °C\")\n\n# Compute dewpoint using Magnus formula\nimport numpy as np\nt = np.array([20.0, 25.0, 30.0])\nrh = np.array([50.0, 60.0, 70.0])\ntd = em.thermo.dewpoint_magnus(t, rh)\nprint(td)","lang":"python","description":"Basic usage: unit conversion and dewpoint calculation."},"warnings":[{"fix":"Use `import earthkit.meteo` or `from earthkit.meteo import ...`","message":"The library uses namespace packages; import as `import earthkit.meteo as em`, not `from earthkit import meteo`.","severity":"gotcha","affected_versions":"all"},{"fix":"Check changelog and use new function names (e.g., `em.unitis.convert_temperature`)","message":"Some functions from v0.x are deprecated in 1.0.0rc, like `em.unitis.convert` may be replaced by a new API.","severity":"deprecated","affected_versions":">=1.0.0rc"},{"fix":"Refer to the latest documentation for function arguments.","message":"API signatures for thermodynamics functions may change between 0.6.x and 1.0.0rc (e.g., parameter order).","severity":"breaking","affected_versions":">=1.0.0rc"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `pip install earthkit-meteo`","cause":"Installed only 'earthkit' base package, not 'earthkit-meteo'.","error":"ModuleNotFoundError: No module named 'earthkit.meteo'"},{"fix":"Use `import earthkit.meteo as em` instead of `import earthkit`","cause":"Namespace package not imported correctly. Commonly due to incorrect import statement.","error":"AttributeError: module 'earthkit' has no attribute 'meteo'"},{"fix":"Check latest docs; adjust keyword arguments accordingly.","cause":"Changed function signature in version 1.0.0rc: `convert(value, source_unit, target_unit)` became `convert(value, from_unit, to_unit)` or similar.","error":"TypeError: convert() got an unexpected keyword argument 'from_unit'","affected_versions":">=1.0.0rc"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}