Clean-up ad-hoc xgcm.Grid.cumsum(..., reverse=True)
operations
#9
Labels
enhancement
New feature or request
Most of the lines of code in
/xwmb/budget.py
are currently dedicated to performing reversed cumulative sums. We can already probably clean this up quite a bit by making a utility function to perform this operation, rather than duplicating the code several times throughout theWaterMassBudget
methods.If
xgcm.Grid
axes become directionally-aware (see xgcm/xgcm#337), then it should be straight-forward to allow reversing the direction ofxgcm.Grid.cumsum
orxgcm.Grid.cumint
(see xgcm/xgcm#609).The text was updated successfully, but these errors were encountered: