Skip to content

Commit 895dd8d

Browse files
Update accessors.py with a gamma correction fix to BlowingSnow
1 parent ab8ac7e commit 895dd8d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/goes2go/accessors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1400,9 +1400,9 @@ def BlowingSnow(self, **kwargs):
14001400
B = _normalize(B, 0, 30)
14011401

14021402
# Apply a gamma correction to each R, G, B channel
1403-
R = _gamma_correction(R, 0.7)
1403+
R = _gamma_correction(R, 1/0.7)
14041404
G = _gamma_correction(G, 1.0)
1405-
B = _gamma_correction(B, 0.7)
1405+
B = _gamma_correction(B, 1/0.7)
14061406

14071407
# The final RGB array :)
14081408
RGB = np.dstack([R, G, B])

0 commit comments

Comments
 (0)