Skip to content

Commit

Permalink
harmonizes search/geo_search/search_count params
Browse files Browse the repository at this point in the history
  • Loading branch information
kim committed Dec 19, 2023
1 parent 405dcd6 commit 3b7f3bb
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 14 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
44 changes: 31 additions & 13 deletions asf_search/search/geo_search.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Union, Iterable
from typing import Tuple, Union, Iterable
import datetime
from copy import copy

Expand All @@ -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
Expand Down
7 changes: 7 additions & 0 deletions asf_search/search/search_count.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3b7f3bb

Please sign in to comment.