Skip to content

Commit

Permalink
keep attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
cehbrecht committed Nov 8, 2023
1 parent 4802b55 commit a2ba23e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rook/utils/weighted_average_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def calc_weighted_mean(ds):
# apply weights
ds_weighted = ds.weighted(weights)
# apply mean
ds_weighted_mean = ds_weighted.mean(["lat", "lon"])
ds_weighted_mean = ds_weighted.mean(["lat", "lon"], keep_attrs=True)
return ds_weighted_mean


Expand Down

0 comments on commit a2ba23e

Please sign in to comment.