Skip to content

Commit

Permalink
Update rad.py
Browse files Browse the repository at this point in the history
  • Loading branch information
spestana authored Mar 16, 2024
1 parent eee019e commit 07663e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion goes_ortho/rad.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def makeABIrgb_fromReflectance(R_ref, G_ref, B_ref, gamma = 2.2, green_coefficie
# GOES-R Series satellites do not have a channel in the visible green range. Band 3 is a NIR channel typically used to monitor vegetation.
# Calculate the "True" Green Band to serve as a green proxy for the RGB True Color image, using a fractional combination.
# Source: "Generation of GOES‐16 True Color Imagery without a Green Band" - https://agupubs.onlinelibrary.wiley.com/doi/full/10.1029/2018EA000379
Green_true = green_coefficients['r'] * Red + green_coefficients['nir'] * Green + green_coefficients['blue'] * Blue
Green_true = green_coefficients['red'] * Red + green_coefficients['nir'] * Green + green_coefficients['blue'] * Blue
Green_true = np.clip(Green_true, 0, 1) # Apply band limits again, just in case.

# Combine three RGB channels with a stacked array, then display the resulting images.
Expand Down

0 comments on commit 07663e9

Please sign in to comment.