File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -388,13 +388,9 @@ def compute_weighted_mean(k_points: list[xr.Dataset]) -> xr.Dataset:
388388 result = weighted_sum / sum_of_weights
389389
390390 # Restore dropped coordinates
391- result .coords ["latitude" ] = combined .coords ["latitude" ].mean (
392- dim = "k"
393- ) # Reduced to point only
394- result .coords ["longitude" ] = combined .coords ["longitude" ].mean (
395- dim = "k"
396- ) # Reduced to point only
397- result .coords ["point_grid_distance" ] = distance_coord .mean (dim = "k" ) # Mean distance
391+ result .coords ["latitude" ] = combined .coords ["latitude" ].mean (dim = "k" )
392+ result .coords ["longitude" ] = combined .coords ["longitude" ].mean (dim = "k" )
393+ result .coords ["point_grid_distance" ] = distance_coord .mean (dim = "k" )
398394
399395 result .attrs ["pick_point_method" ] = "weighted"
400396 result .attrs ["pick_point_k" ] = len (k_points )
You can’t perform that action at this time.
0 commit comments