From 3b7f3bbb586457cc9203d14db1b0f8262d96e3bb Mon Sep 17 00:00:00 2001 From: kim Date: Tue, 19 Dec 2023 14:00:36 -0900 Subject: [PATCH] harmonizes search/geo_search/search_count params --- CHANGELOG.md | 7 ++++- asf_search/search/geo_search.py | 44 ++++++++++++++++++++++--------- asf_search/search/search_count.py | 7 +++++ 3 files changed, 44 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a28815cc..44e28b88 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,9 +25,14 @@ and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - --> +------ +## [v6.7.3](https://github.com/asfadmin/Discovery-asf_search/compare/v6.7.2...v6.7.3) +### Fixed +- Harmonizes `search()`, `geo_search()`, and `search_count()` parameters + ------ ## [v6.7.2](https://github.com/asfadmin/Discovery-asf_search/compare/v6.7.1...v6.7.2) -### Adds +### Added - Adds constants for `dataset` keyword, under `asf_search.DATASET` - Adds CALVAL concept-ids to 'OPERA-S1' dataset - Adds `validityStartDate` for applicable OPERA-S1 products diff --git a/asf_search/search/geo_search.py b/asf_search/search/geo_search.py index 9a263bd9..63cc48ea 100644 --- a/asf_search/search/geo_search.py +++ b/asf_search/search/geo_search.py @@ -1,4 +1,4 @@ -from typing import Union, Iterable +from typing import Tuple, Union, Iterable import datetime from copy import copy @@ -9,24 +9,42 @@ def geo_search( intersectsWith: str, - absoluteOrbit: Iterable[Union[int, range]] = None, - asfFrame: Iterable[Union[int, range]] = None, - beamMode: Iterable[str] = None, + absoluteOrbit: Union[int, Tuple[int, int], Iterable[Union[int, Tuple[int, int]]]] = None, + asfFrame: Union[int, Tuple[int, int], Iterable[Union[int, Tuple[int, int]]]] = None, + beamMode: Union[str, Iterable[str]] = None, beamSwath: Union[str, Iterable[str]] = None, campaign: Union[str, Iterable[str]] = None, + maxDoppler: float = None, + minDoppler: float = None, end: Union[datetime.datetime, str] = None, - flightDirection: Iterable[str] = None, - frame: Iterable[Union[int, range]] = None, - instrument: Iterable[str] = None, - lookDirection: Iterable[str] = None, - platform: Iterable[str] = None, - polarization: Iterable[str] = None, + maxFaradayRotation: float = None, + minFaradayRotation: float = None, + flightDirection: str = None, + flightLine: str = None, + frame: Union[int, Tuple[int, int], Iterable[Union[int, Tuple[int, int]]]] = None, + granule_list: Union[str, Iterable[str]] = None, + groupID: Union[str, Iterable[str]] = None, + insarStackId: str = None, + instrument: Union[str, Iterable[str]] = None, + lookDirection: Union[str, Iterable[str]] = None, + offNadirAngle: Union[float, Tuple[float, float], Iterable[Union[float, Tuple[float, float]]]] = None, + platform: Union[str, Iterable[str]] = None, + polarization: Union[str, Iterable[str]] = None, processingDate: Union[datetime.datetime, str] = None, - processingLevel: Iterable[str] = None, - relativeOrbit: Iterable[Union[int, range]] = None, + processingLevel: Union[str, Iterable[str]] = None, + product_list: Union[str, Iterable[str]] = None, + relativeOrbit: Union[int, Tuple[int, int], Iterable[Union[int, Tuple[int, int]]]] = None, + season: Tuple[int, int] = None, start: Union[datetime.datetime, str] = None, + absoluteBurstID: Union[int, Iterable[int]] = None, + relativeBurstID: Union[int, Iterable[int]] = None, + fullBurstID: Union[str, Iterable[str]] = None, + collections: Union[str, Iterable[str]] = None, + temporalBaselineDays: Union[str, Iterable[str]] = None, + operaBurstID: Union[str, Iterable[str]] = None, + dataset: Union[str, Iterable[str]] = None, maxResults: int = None, - opts: ASFSearchOptions = None + opts: ASFSearchOptions = None, ) -> ASFSearchResults: """ Performs a geographic search using the ASF SearchAPI diff --git a/asf_search/search/search_count.py b/asf_search/search/search_count.py index 9f5ad315..e0712672 100644 --- a/asf_search/search/search_count.py +++ b/asf_search/search/search_count.py @@ -37,6 +37,13 @@ def search_count( relativeOrbit: Union[int, Tuple[int, int], Iterable[Union[int, Tuple[int, int]]]] = None, season: Tuple[int, int] = None, start: Union[datetime.datetime, str] = None, + absoluteBurstID: Union[int, Iterable[int]] = None, + relativeBurstID: Union[int, Iterable[int]] = None, + fullBurstID: Union[str, Iterable[str]] = None, + collections: Union[str, Iterable[str]] = None, + temporalBaselineDays: Union[str, Iterable[str]] = None, + operaBurstID: Union[str, Iterable[str]] = None, + dataset: Union[str, Iterable[str]] = None, maxResults: int = None, opts: ASFSearchOptions = None, ) -> int: