asfadmin / Discovery-asf_search

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there a way to get the entire catalog of GUNW of metadata?

cmarshak opened this issue · comments

Is your feature request related to a problem? Please describe.
I want to get all the metadata for the entire catalog of GUNWs and make a pretty picture. I always get a subset (~150k products when there is 400k+). Do I have split up the globe?

Describe the solution you'd like
results = asf.search(processingLevel=[asf.PRODUCT_TYPE.GUNW_STD], maxResults=1_000_000) gives me all GUNW metadata

Describe alternatives you've considered
Not much.

Additional context
Make pretty pictures.

I see similar truncated search results with asf_search 3.2.1 on python 3.10.4:

>>> import asf_search
>>> results = asf_search.search(processingLevel=[asf_search.PRODUCT_TYPE.GUNW_STD])
>>> len(results)
112831
>>> asf_search.__version__
'3.2.1'

Currently, asf_search relies on our SearchAPI as its backend, which has a ~15-minute time limit on how long it'll allow queries to run, it's possible you're running into that. We have some backlog to alleviate that, but in the mean time, a simple solution would be to break up the query by years (probably simpler than by geospatial).

Some quick checking indicates each year there are fewer than 100k products (about 90k in 2018 and 2019 each, significantly less in other years), which should complete well within the SearchAPI's time limit.

Thank you!