Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yukaribbba committed Jan 20, 2023
1 parent 7e47183 commit fc99734
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions satpy/composites/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ class DayNightCompositor(GenericCompositor):
of the image (night or day). See the documentation below for more details.
"""

def __init__(self, name, lim_low=85., lim_high=88., day_night="day_night", need_alpha=True, **kwargs):
def __init__(self, name, lim_low=85., lim_high=88., day_night="day_night", include_alpha=True, **kwargs):
"""Collect custom configuration values.
Args:
Expand All @@ -677,7 +677,7 @@ def __init__(self, name, lim_low=85., lim_high=88., day_night="day_night", need_
self.lim_low = lim_low
self.lim_high = lim_high
self.day_night = day_night
self.need_alpha = need_alpha
self.include_alpha = include_alpha
super(DayNightCompositor, self).__init__(name, **kwargs)

def __call__(self, projectables, **kwargs):
Expand Down Expand Up @@ -708,7 +708,7 @@ def __call__(self, projectables, **kwargs):
# Add alpha band to single L/RGB composite to make the masked-out portion transparent when needed
# L -> LA
# RGB -> RGBA
if self.need_alpha:
if self.include_alpha:
foreground_data = add_alpha_bands(foreground_data)

# No need to replace missing channel data with zeros
Expand Down

0 comments on commit fc99734

Please sign in to comment.