Skip to content

Commit

Permalink
Fix to acquisitions that couldn't interpret OLI only scenes.
Browse files Browse the repository at this point in the history
  • Loading branch information
sixy6e committed Jun 14, 2016
1 parent 144f13f commit e6cae43
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions gaip/acquisition.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,10 +667,13 @@ def acquisitions_via_mtl(path):
product['product_samples_ref'] = product['reflective_samples']
if 'product_lines_ref' not in product:
product['product_lines_ref'] = product['reflective_lines']
if 'product_samples_thm' not in product:
product['product_samples_thm'] = product['thermal_samples']
if 'product_lines_thm' not in product:
product['product_lines_thm'] = product['thermal_lines']

# Account for missing thermal bands in OLI only products
if product['sensor_id'] != 'OLI':
if 'product_samples_thm' not in product:
product['product_samples_thm'] = product['thermal_samples']
if 'product_lines_thm' not in product:
product['product_lines_thm'] = product['thermal_lines']

new['SPACECRAFT'] = {}
db = SENSORS[spacecraft]
Expand Down

0 comments on commit e6cae43

Please sign in to comment.