From d733ee4cc0a4b46b497a8431dc5b077e0a6389dd Mon Sep 17 00:00:00 2001 From: Bo Lu Date: Tue, 19 Nov 2024 09:53:18 -0500 Subject: [PATCH] change rcm-ard polarization to new format --- ...tion.json => polarization-option-old.json} | 0 .../search/polarization-option-rcm-ard.json | 14 +++++++ .../polarization-option-sentinel-1.json | 38 +++++++++++++++++++ src/components/searchfilter/eo-filter.tsx | 7 ++-- 4 files changed, 56 insertions(+), 3 deletions(-) rename src/components/search/{polarization-option.json => polarization-option-old.json} (100%) create mode 100644 src/components/search/polarization-option-rcm-ard.json create mode 100644 src/components/search/polarization-option-sentinel-1.json diff --git a/src/components/search/polarization-option.json b/src/components/search/polarization-option-old.json similarity index 100% rename from src/components/search/polarization-option.json rename to src/components/search/polarization-option-old.json diff --git a/src/components/search/polarization-option-rcm-ard.json b/src/components/search/polarization-option-rcm-ard.json new file mode 100644 index 00000000..1a99e534 --- /dev/null +++ b/src/components/search/polarization-option-rcm-ard.json @@ -0,0 +1,14 @@ +[ + { + "label": "polarization.DEFAULT", + "value": "" + }, + { + "label": "polarization.CHCV", + "value": "CH + CV" + }, + { + "label": "polarization.HHHV", + "value": "HH + HV" + } +] diff --git a/src/components/search/polarization-option-sentinel-1.json b/src/components/search/polarization-option-sentinel-1.json new file mode 100644 index 00000000..29b80a36 --- /dev/null +++ b/src/components/search/polarization-option-sentinel-1.json @@ -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" + } +] diff --git a/src/components/searchfilter/eo-filter.tsx b/src/components/searchfilter/eo-filter.tsx index 7e8c3f3e..9c055e3a 100644 --- a/src/components/searchfilter/eo-filter.tsx +++ b/src/components/searchfilter/eo-filter.tsx @@ -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'; @@ -47,7 +48,7 @@ export default function EoSearchFilter(props: EoSearchProps): JSX.Element { { dataCollection === 'sentinel-1' && (