Skip to content

Commit 4a145f7

Browse files
Merge pull request #85 from asfadmin/dev
NISAR Dateline Polygon Fix
2 parents 7dac4a4 + 558d39d commit 4a145f7

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@ and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
2828
------
2929
## [1.0.12](https://github.com/asfadmin/Discovery-SearchAPI-v3/compare/v1.0.11...v1.0.12)
3030
### Changed
31-
- bump asf-search to v11.0.2
31+
- bump asf-search to v11.0.3
3232
- ARIA-S1 GUNW 2.0.3 byteSize and product type display support
33+
- NISAR dateline RRSD products now properly parsed from UMM, merged into single polygon
34+
### fixed
35+
- allow setting `cmr_provider` on granule/product list searches
3336

3437
------
3538
## [1.0.11](https://github.com/asfadmin/Discovery-SearchAPI-v3/compare/v1.0.10...v1.0.11)

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ ujson==5.7.0
2222
uvicorn==0.21.1
2323
watchfiles==0.19.0
2424

25-
asf-search[asf-enumeration]==11.0.2
25+
asf-search[asf-enumeration]==11.0.3
2626
python-json-logger==2.0.7
2727

2828
pyshp==2.1.3

src/SearchAPI/application/asf_opts.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ async def process_search_request(request: Request, is_baseline: bool = False) ->
169169
session = SearchAPISession()
170170
session.headers.update({'Authorization': 'Bearer {0}'.format(token)})
171171
query_opts.session = session
172+
173+
if (cmr_provider := merged_args.get('cmr_provider')):
174+
query_opts.provider=cmr_provider
172175

173176
output = merged_args.get('output', 'metalink')
174177
maturity = merged_args.get('maturity', 'prod')
@@ -269,7 +272,7 @@ def get_asf_opts(params: dict) -> asf.ASFSearchOptions:
269272

270273
# SearchOpts doesn't know how to handle these keys, but other methods need them
271274
# (We still want to throw on any UNKNOWN keys)
272-
ignore_keys_lower = ["output", "reference", "maturity", "cmr_keywords", "cmr_token"]
275+
ignore_keys_lower = ["output", "reference", "maturity", "cmr_keywords", "cmr_token", "cmr_provider"]
273276
params = {k: params[k] for k in params.keys() if k.lower() not in ignore_keys_lower}
274277

275278
try:

0 commit comments

Comments
 (0)