Skip to content

Commit

Permalink
worldview NITF fix (#527)
Browse files Browse the repository at this point in the history
  • Loading branch information
BryonLewis authored Oct 23, 2024
1 parent cf7a377 commit 7b6f72a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rdwatch/core/utils/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ def fetch_boundbox_image(
if len(captures) == 0:
return None
closest_capture = min(captures, key=lambda band: abs(band.timestamp - timestamp))
if worldView == 'cog' and constellation == 'wv':
if worldView == 'cog' and constellation == 'WV':
bytes = get_worldview_processed_visual_bbox(closest_capture, bbox, 'PNG', scale)
elif worldView == 'nitf' and constellation == 'wv':
elif worldView == 'nitf' and constellation == 'WV':
bytes = get_worldview_nitf_bbox(closest_capture, bbox, 'PNG', scale)
else:
with closest_capture.open_reader() as reader:
Expand Down

0 comments on commit 7b6f72a

Please sign in to comment.