Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/reusable-DeployStack-SearchAPI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ jobs:
# to run suite either way.
- uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: 3.9
- name: Install pytest requirements
if: github.event_name == 'pull_request'
run: |
sudo apt-get update
sudo apt-get install libgdal-dev
python3 -m pip install --no-cache-dir --upgrade pip
python3 -m pip install --no-cache-dir --upgrade pip==25.0.1
python3 -m pip install --no-cache-dir wheel Cython
python3 -m pip install -r requirements.txt --use-deprecated=legacy-resolver
- name: Run Pytest
Expand Down
4 changes: 2 additions & 2 deletions SearchAPI/CMR/SubQuery.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ def combine_params(self, params, extra_params):
return final

def should_use_asf_frame(self):
asf_frame_platforms = ['SENTINEL-1A', 'SENTINEL-1B', 'ALOS']
asf_frame_datasets = ['SENTINEL-1', 'OPERA-S1', 'SLC-BURST', 'ALOS PALSAR', 'ALOS AVNIR-2', 'ALOS-2']
asf_frame_platforms = ['SENTINEL-1A', 'SENTINEL-1B', 'SENTINEL-1C', 'ALOS']
asf_frame_datasets = ['SENTINEL-1', 'OPERA-S1', 'SLC-BURST', 'ALOS PALSAR', 'ALOS AVNIR-2', 'ALOS-2', 'NISAR']

asf_frame_collections = []
for dataset in asf_frame_datasets:
Expand Down
74 changes: 74 additions & 0 deletions SearchAPI/CMR/Translate/collections_by_platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,76 @@
"concept-id": "C1327985661-ASF"
}
],
"SENTINEL-1C": [
{
"collection": "SENTINEL-1C_RAW",
"concept-id": "C3486496642-ASF"
},
{
"collection": "SENTINEL-1C_SLC",
"concept-id": "C3470873558-ASF"
},
{
"collection": "SENTINEL-1C_META_SLC",
"concept-id": "C3484561061-ASF"
},
{
"collection": "SENTINEL-1C_OCN",
"concept-id": "C3484661603-ASF"
},
{
"collection": "SENTINEL-1C_META_OCN",
"concept-id": "C3484670556-ASF"
},
{
"collection": "SENTINEL-1C_DP_GRD_HIGH",
"concept-id": "C3486566209-ASF"
},
{
"collection": "SENTINEL-1C_DP_META_GRD_HIGH",
"concept-id": "C3486580531-ASF"
},
{
"collection": "SENTINEL-1C_DP_GRD_MEDIUM",
"concept-id": "C3486605959-ASF"
},
{
"collection": "SENTINEL-1C_DP_META_GRD_MEDIUM",
"concept-id": "C3486616327-ASF"
},
{
"collection": "SENTINEL-1C_DP_GRD_FULL",
"concept-id": "C3486646217-ASF"
},
{
"collection": "SENTINEL-1C_DP_META_GRD_FULL",
"concept-id": "C3486655250-ASF"
},
{
"collection": "SENTINEL-1C_SP_GRD_HIGH",
"concept-id": "C3488402208-ASF"
},
{
"collection": "SENTINEL-1C_SP_META_GRD_HIGH",
"concept-id": "C3488406939-ASF"
},
{
"collection": "SENTINEL-1C_SP_GRD_MEDIUM",
"concept-id": "C3488414315-ASF"
},
{
"collection": "SENTINEL-1C_SP_META_GRD_MEDIUM",
"concept-id": "C3488417229-ASF"
},
{
"collection": "SENTINEL-1C_SP_GRD_FULL",
"concept-id": "C3488389367-ASF"
},
{
"collection": "SENTINEL-1C_SP_META_GRD_FULL",
"concept-id": "C3488394269-ASF"
},
],
"SMAP": [
{
"collection": "SMAP_L1A_RADAR_METADATA_V001",
Expand Down Expand Up @@ -942,6 +1012,8 @@
"concept-id": "C1216244348-ASF"
}
],
"SENTINEL-1C": [
],
"SMAP": [
{
"collection": "SMAP_L1A_RADAR_METADATA_V001",
Expand Down Expand Up @@ -1477,6 +1549,8 @@
"concept-id": "C1234413263-ASFDEV"
}
],
"SENTINEL-1C": [
],
"STS-59": [
{
"collection": "STS-59_BROWSE_GRD",
Expand Down
17 changes: 17 additions & 0 deletions SearchAPI/CMR/Translate/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,23 @@
"C1257175154-ASFDEV",
"C1244598379-ASFDEV",
"C1240784657-ASFDEV",
"C3470873558-ASF",
"C3486496642-ASF",
"C3484561061-ASF",
"C3484661603-ASF",
"C3484670556-ASF",
"C3486566209-ASF",
"C3486580531-ASF",
"C3486605959-ASF",
"C3486616327-ASF",
"C3486646217-ASF",
"C3486655250-ASF",
"C3488402208-ASF",
"C3488406939-ASF",
"C3488414315-ASF",
"C3488417229-ASF",
"C3488389367-ASF",
"C3488394269-ASF",
],
"OPERA-S1": [
"C2777443834-ASF",
Expand Down
13 changes: 7 additions & 6 deletions SearchAPI/CMR/Translate/input_fixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ def input_fixer(params, is_prod: bool = False, provider: str = "ASF"):
# conversion

plat_aliases = {
'S1': ['SENTINEL-1A', 'SENTINEL-1B'],
'SENTINEL-1': ['SENTINEL-1A', 'SENTINEL-1B'],
'SENTINEL': ['SENTINEL-1A', 'SENTINEL-1B'],
'S1': ['SENTINEL-1A', 'SENTINEL-1B', 'SENTINEL-1C'],
'SENTINEL-1': ['SENTINEL-1A', 'SENTINEL-1B', 'SENTINEL-1C'],
'SENTINEL': ['SENTINEL-1A', 'SENTINEL-1B', 'SENTINEL-1C'],
'ERS': ['ERS-1', 'ERS-2'],
'SIR-C': ['STS-59', 'STS-68']
}
Expand All @@ -80,6 +80,7 @@ def input_fixer(params, is_prod: bool = False, provider: str = "ASF"):
'SEASAT': 'SEASAT 1',
'SA': 'SENTINEL-1A',
'SB': 'SENTINEL-1B',
'SC': 'SENTINEL-1C',
'SP': 'SMAP',
'UA': 'G-III',
'UAVSAR': 'G-III'
Expand All @@ -105,12 +106,12 @@ def input_fixer(params, is_prod: bool = False, provider: str = "ASF"):
for p in v:
if p.upper() in plat_aliases:
for x in plat_aliases[p.upper()]:
if x in ['SENTINEL-1A', 'SENTINEL-1B'] and any_processing_level:
if x in ['SENTINEL-1A', 'SENTINEL-1B', 'SENTINEL-1C'] and any_processing_level:
collection_list.extend([id_by_platform['concept-id'] for id_by_platform in to_collections[x]])
platform_list.append(x)
else:
if ((p.upper() in plat_names and p.upper() in ['SA', 'SB']) or p.upper() in ['SENTINEL-1A', 'SENTINEL-1B']) and any_processing_level:
if p.upper() in plat_names and p.upper() in ['SA', 'SB']:
if ((p.upper() in plat_names and p.upper() in ['SA', 'SB', 'SC']) or p.upper() in ['SENTINEL-1A', 'SENTINEL-1B', 'SENTINEL-1C']) and any_processing_level:
if p.upper() in plat_names and p.upper() in ['SA', 'SB', 'SC']:
collection_list.extend([id_by_platform['concept-id'] for id_by_platform in to_collections[plat_names[p.upper()]]])
else:
collection_list.extend([id_by_platform['concept-id'] for id_by_platform in to_collections[p.upper()]])
Expand Down
2 changes: 1 addition & 1 deletion SearchAPI/CMR/Translate/parse_cmr_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def remove_field(f):

if 'frameNumber' in req_fields:
asf_frame_platforms = [
'Sentinel-1A', 'Sentinel-1B', 'ALOS', 'SENTINEL-1A', 'SENTINEL-1B',
'Sentinel-1A', 'Sentinel-1B', 'Sentinel-1C', 'ALOS', 'SENTINEL-1A', 'SENTINEL-1B', 'SENTINEL-1C'
'ERS-1', 'ERS-2', 'JERS-1', 'RADARSAT-1', 'ALOS-2', 'NISAR'
]

Expand Down
4 changes: 4 additions & 0 deletions yml_tests/test_url_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,7 @@ def renameValsToStandard(self, json_dict):
del json_dict["Platform"][i]
json_dict["Platform"].append("Sentinel-1A")
json_dict["Platform"].append("Sentinel-1B")
json_dict["Platform"].append("Sentinel-1C")
json_dict["Platform"].append("Sentinel-1 Interferogram (BETA)")
# Sentinel-1A
elif platform in ["SENTINEL-1A", "SA"]:
Expand All @@ -630,6 +631,9 @@ def renameValsToStandard(self, json_dict):
elif platform in ["SENTINEL-1B", "SB"]:
json_dict["Platform"][i] = "Sentinel-1B"
json_dict["Platform"].append("Sentinel-1 Interferogram (BETA)")
elif platform in ["SENTINEL-1C", "SC"]:
json_dict["Platform"][i] = "Sentinel-1C"
json_dict["Platform"].append("Sentinel-1 Interferogram (BETA)")
# Sir-C
elif platform in ["SIR-C"]:
del json_dict["Platform"][i]
Expand Down
Loading