Skip to content

Commit

Permalink
Merge pull request #754 from asfadmin/topic-aria-v3
Browse files Browse the repository at this point in the history
ARIA v3
  • Loading branch information
SpicyGarlicAlbacoreRoll authored May 7, 2024
2 parents 88be871 + 23b292b commit 5f881c5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion SearchAPI/CMR/Output/jsonlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ def req_fields_jsonlite():
'pgeVersion',
'operaBurstID',
'additionalUrls',
's3Urls'
's3Urls',
'ariaVersion',
]
return fields

Expand Down Expand Up @@ -193,4 +194,10 @@ def getItem(self, p):
's3Urls': p.get('s3Urls', [])
}


if p.get('ariaVersion') is not None:
granule_name = p.get('granuleName')
if granule_name is not None and 'gunw' in granule_name.lower():
result['ariaVersion'] = p.get('ariaVersion')

return result
3 changes: 3 additions & 0 deletions SearchAPI/CMR/Output/jsonlite2.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,8 @@ def getItem(self, p):

if p.get('nisar') is not None:
result['nsr'] = p['nisar']

if p.get('ariaVersion') is not None:
result['ariav'] = p.get('ariaVersion')

return result
2 changes: 2 additions & 0 deletions SearchAPI/CMR/Translate/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@
"C1225776657-ASF",
"C1225776658-ASF",
"C1225776659-ASF",
"C2859376221-ASF",
"C1261881077-ASF",
],
"SMAP": [
"C1243122884-ASF",
Expand Down
4 changes: 3 additions & 1 deletion SearchAPI/CMR/Translate/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ def get_field_paths():
'subswath': attr_path('SUBSWATH_NAME'),

# OPERA RTC FIELDS
'operaBurstID': attr_path('OPERA_BURST_ID'),
'operaBurstID': attr_path('OPERA_BURST_ID'),

'ariaVersion': attr_path('VERSION'),
}
return paths

0 comments on commit 5f881c5

Please sign in to comment.