Skip to content

Commit

Permalink
Do not use DataArray as weight
Browse files Browse the repository at this point in the history
  • Loading branch information
pnuu committed Oct 26, 2023
1 parent c580551 commit cdb1920
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion satpy/composites/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,8 @@ def _weight_data(self, day_data, night_data, weights, attrs):
if not self.include_alpha:
fill = 1 if self.day_night == "night_only" else 0
weights = weights.where(~np.isnan(weights), fill)

if isinstance(weights, xr.DataArray):
weights = weights.data
data = []
for b in _get_band_names(day_data, night_data):
# if self.day_night == "night_only" and self.include_alpha is False:
Expand Down

0 comments on commit cdb1920

Please sign in to comment.