From 97231c04ad44793a063f8399cfffa55cf6d100a7 Mon Sep 17 00:00:00 2001 From: David Hoese Date: Wed, 14 Feb 2024 09:54:42 -0600 Subject: [PATCH] Fix docstring formatting for stretch_linear --- trollimage/xrimage.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/trollimage/xrimage.py b/trollimage/xrimage.py index 4fd1532..5dba8a5 100644 --- a/trollimage/xrimage.py +++ b/trollimage/xrimage.py @@ -1009,13 +1009,14 @@ def stretch_linear(self, cutoffs=(0.005, 0.005)): Use *cutoffs* for left and right trimming. - If the cutoffs are just a tuple or list of two scalar, all the channels except the alpha channel - will be stretched with the cutoffs. - If the cutoffs are a sequence of tuples/lists of two scalar: - - if there is the same number of tuples/lists as channels, each channel will be stretched with the respective - cutoff. - - if there is one less tuples/lists as channels, the same applies, except for the alpha channel which will - not be stretched. + If the cutoffs are just a tuple or list of two scalars, all the + channels except the alpha channel will be stretched with the cutoffs. + If the cutoffs are a sequence of tuples/lists of two scalars then: + + - if there are the same number of tuples/lists as channels, each channel will be stretched with the respective + cutoff. + - if there is one less tuple/list as channels, the same applies, except for the alpha channel which will + not be stretched. """ logger.debug("Perform a linear contrast stretch.")