Skip to content

Commit

Permalink
Merge pull request #81 from asiddi24/fix_integral
Browse files Browse the repository at this point in the history
Fix_integral
  • Loading branch information
asiddi24 committed May 9, 2019
2 parents 18b37b7 + e104f7d commit 1e65aac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion oceanspy/compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,9 @@ def _integral_and_mean(od, operation='integral',
for area in areaList:
if set(od._ds[area].dims).issubset(Int.dims):
delta = delta * od._ds[area]
dims2sum = dims2sum + list(od._ds[area].dims)
dims2sum = dims2sum + [dim
for dim in od._ds[area].dims
if dim[0] == 'Y' or dim[0] == 'X']
suf = suf + ['dXdY']
units = units + ['m^2']
continue
Expand Down

0 comments on commit 1e65aac

Please sign in to comment.