Skip to content

Commit

Permalink
change rcm-ard polarization to new format
Browse files Browse the repository at this point in the history
  • Loading branch information
bo-lu committed Nov 19, 2024
1 parent ad1a7fc commit d733ee4
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 3 deletions.
14 changes: 14 additions & 0 deletions src/components/search/polarization-option-rcm-ard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[
{
"label": "polarization.DEFAULT",
"value": ""
},
{
"label": "polarization.CHCV",
"value": "CH + CV"
},
{
"label": "polarization.HHHV",
"value": "HH + HV"
}
]
38 changes: 38 additions & 0 deletions src/components/search/polarization-option-sentinel-1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[
{
"label": "polarization.DEFAULT",
"value": ""
},
{
"label": "polarization.VV",
"value": "VV"
},
{
"label": "polarization.VVVH",
"value": "VV + VH"
},
{
"label": "polarization.HH",
"value": "HH"
},
{
"label": "polarization.HHHV",
"value": "HH + HV"
},
{
"label": "polarization.HHHVVHVV",
"value": "HH + HV + VH + VV"
},
{
"label": "polarization.HHVV",
"value": "HH + VV"
},
{
"label": "polarization.HV",
"value": "HV"
},
{
"label": "polarization.VH",
"value": "VH"
}
]
7 changes: 4 additions & 3 deletions src/components/searchfilter/eo-filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { useState } from 'react';
import { useTranslation } from 'react-i18next';
import dataCollectionOptions from '../search/data-collection-option.json';
import orbitOptions from '../search/orbit-direction-option.json';
import polarizationOptions from '../search/polarization-option.json';
import polarizationOptionsSentinel from '../search/polarization-option-sentinel-1.json';
import polarizationOptionsRCMARD from '../search/polarization-option-rcm-ard.json';
import DropdownSelection from './dropdown-selection';
import './eo-filter.scss';

Expand Down Expand Up @@ -47,7 +48,7 @@ export default function EoSearchFilter(props: EoSearchProps): JSX.Element {
{ dataCollection === 'sentinel-1' && (<div className="sentinel-1">
<DropdownSelection
label="filter.label.eofilter.polarization"
options={polarizationOptions}
options={polarizationOptionsSentinel}
labelClassName="dropdown-select-label"
selectClassName="dropdown-select"
optionClassName="dropdown-select-option"
Expand All @@ -74,7 +75,7 @@ export default function EoSearchFilter(props: EoSearchProps): JSX.Element {
{ dataCollection === 'rcm-ard' && (<div className="rcm-ard">
<DropdownSelection
label="filter.label.eofilter.polarization"
options={polarizationOptions}
options={polarizationOptionsRCMARD}
labelClassName="dropdown-select-label"
selectClassName="dropdown-select"
optionClassName="dropdown-select-option"
Expand Down

0 comments on commit d733ee4

Please sign in to comment.