Skip to content

Commit

Permalink
feat: add opera-disp dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
tylercchase committed Feb 24, 2025
1 parent 5b08715 commit a4358d7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 1 addition & 2 deletions SearchAPI/CMR/Output/jsonlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,7 @@ def getItem(self, p):
burst['subswath'] = p['subswath']

result['burst'] = burst

if p.get('operaBurstID') is not None or result['productID'].startswith('OPERA'):
if (p.get('operaBurstID') is not None or result['productID'].startswith('OPERA')) and not result['productID'].startswith('OPERA_L3_DISP'):
result['opera'] = {
'operaBurstID': p.get('operaBurstID'),
'additionalUrls': p.get('additionalUrls'),
Expand Down
3 changes: 3 additions & 0 deletions SearchAPI/CMR/Translate/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@
"ALOS-2": [
"C3315903479-ASF"
],
"OPERA-DISP" : [
"C1271830354-ASF"
],
"ALOS PALSAR": [
"C1206487504-ASF",
"C1206485940-ASF",
Expand Down
6 changes: 4 additions & 2 deletions SearchAPI/CMR/Translate/parse_cmr_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def get_http_urls():
def get_s3_urls():
return [url for url in get_all_urls() if not url.endswith('.md5') and (url.startswith('s3://') or 's3credentials' in url)]

if result.get('product_file_id', '').startswith('OPERA'):
if result.get('product_file_id', '').startswith('OPERA') and not result.get('product_file_id', '').startswith('OPERA_L3_DISP'):
result['beamMode'] = get_val(attr_path('BEAM_MODE'))
result['additionalUrls'] = get_http_urls()
result['configurationName'] = "Interferometric Wide. 250 km swath, 5 m x 20 m spatial resolution and burst synchronization for interferometry. IW is considered to be the standard mode over land masses."
Expand All @@ -240,11 +240,13 @@ def get_s3_urls():
elif result.get('product_file_id', '').startswith('S1-GUNW') and result.get('ariaVersion') is None:
version_unformatted = result.get('granuleName').split('v')[-1]
result['ariaVersion'] = re.sub(r'[^0-9\.]', '', version_unformatted.replace("_", '.'))
if result.get('product_file_id', '').startswith('OPERA_L3_DISP'):
if (providerbrowseUrls := get_all_vals('./AssociatedBrowseImageUrls/ProviderBrowseUrl/URL')):
result['browse'] = [url for url in providerbrowseUrls if not url.startswith('s3://')]

if result.get('platform', '') == 'NISAR':
result['additionalUrls'] = get_http_urls()
result['s3Urls'] = get_s3_urls()

return result


Expand Down

0 comments on commit a4358d7

Please sign in to comment.