diff --git a/SearchAPI/CMR/Output/jsonlite.py b/SearchAPI/CMR/Output/jsonlite.py index 660440a7..9183f8ac 100644 --- a/SearchAPI/CMR/Output/jsonlite.py +++ b/SearchAPI/CMR/Output/jsonlite.py @@ -43,7 +43,8 @@ def req_fields_jsonlite(): 'pgeVersion', 'operaBurstID', 'additionalUrls', - 's3Urls' + 's3Urls', + 'ariaVersion', ] return fields @@ -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 diff --git a/SearchAPI/CMR/Output/jsonlite2.py b/SearchAPI/CMR/Output/jsonlite2.py index 5cdff707..397f49c0 100644 --- a/SearchAPI/CMR/Output/jsonlite2.py +++ b/SearchAPI/CMR/Output/jsonlite2.py @@ -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 diff --git a/SearchAPI/CMR/Translate/datasets.py b/SearchAPI/CMR/Translate/datasets.py index 0ac54472..7b9da157 100644 --- a/SearchAPI/CMR/Translate/datasets.py +++ b/SearchAPI/CMR/Translate/datasets.py @@ -205,6 +205,8 @@ "C1225776657-ASF", "C1225776658-ASF", "C1225776659-ASF", + "C2859376221-ASF", + "C1261881077-ASF", ], "SMAP": [ "C1243122884-ASF", diff --git a/SearchAPI/CMR/Translate/fields.py b/SearchAPI/CMR/Translate/fields.py index f639ff28..273c2eea 100644 --- a/SearchAPI/CMR/Translate/fields.py +++ b/SearchAPI/CMR/Translate/fields.py @@ -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