Skip to content

Commit

Permalink
Instruments were being set incorrectly for Planet items.
Browse files Browse the repository at this point in the history
  • Loading branch information
lossyrob committed Nov 20, 2020
1 parent 901071d commit b04d4b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stactools_planet/stactools/planet/planet_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ def to_stac(self):
item.common_metadata.constellation = props.pop('provider')
item.common_metadata.platform = props.pop('satellite_id')
# Some do not have instrument (e.g. REOrthoTile)
item.common_metadata.instrument = props.pop('instrument', None)
instrument = props.pop('instrument', None)
if instrument is not None:
item.common_metadata.instruments = [instrument]

# eo
item.ext.enable('eo')
Expand Down

0 comments on commit b04d4b6

Please sign in to comment.