Skip to content

Commit

Permalink
cloutop in seviri.py now same arguments as cloudtop in visir.py
Browse files Browse the repository at this point in the history
  • Loading branch information
loerum committed Mar 5, 2014
1 parent e7004ef commit c91e9ca
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mpop/instruments/seviri.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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

Expand Down

0 comments on commit c91e9ca

Please sign in to comment.