diff --git a/mpop/instruments/seviri.py b/mpop/instruments/seviri.py index 0227870d..42f0d40f 100644 --- a/mpop/instruments/seviri.py +++ b/mpop/instruments/seviri.py @@ -133,7 +133,7 @@ def convection_co2(self): set([0.635, 1.63, 6.7, 7.3, 10.8])) - def cloudtop(self): + def cloudtop(self, stretch=(0.005, 0.005), gamma=None): """Make a Cloudtop RGB image composite from Seviri channels. """ self.co2corr_chan() @@ -149,7 +149,10 @@ def cloudtop(self): fill_value=(0, 0, 0), mode="RGB") - img.enhance(stretch=(0.005, 0.005)) + if stretch: + img.enhance(stretch=stretch) + if gamma: + img.enhance(gamma=gamma) return img