Skip to content

Commit

Permalink
fix: results platform access
Browse files Browse the repository at this point in the history
  • Loading branch information
tylercchase committed Feb 27, 2025
1 parent 31d9369 commit e4777eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions SearchAPI/CMR/Translate/parse_cmr_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ def remove_field(f):
platform = get_val('./Platforms/Platform/ShortName')
result['platform'] = platform
remove_field('platform')
if result['platform'] in ['ALOS-2']:
result['beamMode'] = get_val(attr_path('BEAM_MODE'))

if 'frameNumber' in req_fields:
asf_frame_platforms = [
Expand Down Expand Up @@ -204,8 +206,7 @@ def float_or_none(a):
if len(urls):
result['downloadUrl'] = urls[0]
result['fileName'] = result['granuleName'] + '.' + urls[0].split('.')[-1]
if result['platform'] in ['ALOS-2']:
result['beamMode'] = get_val(attr_path('BEAM_MODE'))


def get_all_urls():
accessPath = './OnlineAccessURLs/OnlineAccessURL/URL'
Expand Down

0 comments on commit e4777eb

Please sign in to comment.