{"categories":[{"label":"Scientific/Engineering","url":"https://skillfed.io/packages/category/scientific-engineering/7"}],"enrichment":{"capability":"Adds physical units support to xarray datasets and data variables using Pint, enabling unit-aware arithmetic and conversions on multidimensional labeled arrays.","skillfed_tags":["units-and-quantities","scientific-computing","data-validation"],"use_cases":["Attach units to climate or weather model output and convert between unit systems for analysis.","Track physical dimensions through geophysical data processing pipelines to catch unit errors early.","Perform dimensional analysis on scientific datasets to ensure unit consistency across operations.","Convert measurement data from one unit system to another while preserving xarray's labeled structure.","Build unit-aware data pipelines for physics or engineering simulations using xarray as the data container."],"what_it_does":"pint-xarray bridges Pint's physical units library with xarray's labeled multidimensional arrays, letting you attach and track units on dataset variables and perform unit-aware arithmetic and conversions. It works by registering accessor methods on xarray objects, so you call `.pint.quantify()` to add units, `.pint.to()` to convert between units, and `.pint.dequantify()` to strip units back off.\n\nThe package is designed for scientific and engineering workflows where dimensional consistency matters\u2014tracking whether a measurement is in meters or kilometers, seconds or milliseconds\u2014and catching unit mismatches before they propagate through calculations. It integrates directly with xarray's data model, so units stay attached to variables as you slice, combine, or transform datasets.","worth_installing":"Yes. The package is actively maintained, has no known vulnerabilities, installs with low friction, and fills a genuine gap for scientists and engineers working with xarray who need physical units. The Apache-2.0 license is permissive. Start with it if you're already using xarray and need dimensional tracking; the API is straightforward and the dependency footprint is small."},"id":"pint-xarray","links":{"html":"https://skillfed.io/packages/pint-xarray","md":"https://skillfed.io/packages/pint-xarray.md","pypi":"https://pypi.org/project/pint-xarray/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-03-23","license_spdx":"Apache-2.0","license_treatment":"permissive","name":"pint-xarray","python_support":"supports_current","summary":"Physical units interface to xarray using Pint"},"popularity":{"monthly_downloads":113278,"position":12347,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.6.1"}
