Skip to content

Commit

Permalink
updated comments
Browse files Browse the repository at this point in the history
Co-authored-by: Chuck Daniels <[email protected]>
  • Loading branch information
SwordSaintLancelot and chuckwondo authored Jul 19, 2024
1 parent eafe257 commit ea362c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hls_vi/generate_stac_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ def process_common_metadata(item, granule):
instrument = (
granule.Platforms.Platform.Instruments.Instrument.ShortName.cdata.lower()
)
# a simple check to exclude Sentinel-2 from the ShortName string for S30 granules
# and OLI from the short string for L30 granules.
# For L30, the instrument is "OLI", but for S30, it is "Sentinel-2 MSI", we simply split
# on spaces and grab the last element, so we get either "OLI" or "MSI".
if " " in instrument:
item_instrument = instrument.split()[1]
else:
Expand Down

0 comments on commit ea362c9

Please sign in to comment.