You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The pint package can now add units to Xarray arrays, and explicitly track the units through operations, etc. This could potentially simplify and unify some of our variable names while enforcing the units we want, and stopping us from mixing up units.
Context
Having consistent units is why we add all the suffixes of wp or mwp etc. and this could be a fix for keeping track of that in a smoother way, e.g. having both GSP and PV system power in the variable power with the units keeping track if its in megawatts or just watts
Possible Implementation
There is one currently lacking thing, in that indexes don't directly support units, just have to access them and select on them using .pint.sel()
The text was updated successfully, but these errors were encountered:
https://xarray.dev/blog/introducing-pint-xarray
Detailed Description
The pint package can now add units to Xarray arrays, and explicitly track the units through operations, etc. This could potentially simplify and unify some of our variable names while enforcing the units we want, and stopping us from mixing up units.
Context
Having consistent units is why we add all the suffixes of
wp
ormwp
etc. and this could be a fix for keeping track of that in a smoother way, e.g. having both GSP and PV system power in the variablepower
with the units keeping track if its in megawatts or just wattsPossible Implementation
There is one currently lacking thing, in that indexes don't directly support units, just have to access them and select on them using
.pint.sel()
The text was updated successfully, but these errors were encountered: