Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtering when searching RCMImageProducts not working #31

Open
alexchang0229 opened this issue Aug 22, 2023 · 0 comments
Open

Filtering when searching RCMImageProducts not working #31

alexchang0229 opened this issue Aug 22, 2023 · 0 comments
Assignees

Comments

@alexchang0229
Copy link

When I run this code to search the RCMImageProducts collection for catalogs with the Medium Resolution 30m beam mode type

from eodms_rapi import EODMSRAPI
rapi = EODMSRAPI(user_name, user_pass)
searchFilters = {"Beam Mode Type": ("=", ["Medium Resolution 30m"])}
searchCollection = "RCMImageProducts"
rapi.search(
    collection=searchCollection,
    filters=searchFilters,
    dates=[{'start': '20200825_195108', 'end': '20230901_195108'}],
    max_results=5
)
res = rapi.get_results("full")

beamModeTypes = [x['beamModeType'] for x in res]
print(beamModeTypes)

beamModeTypes: ['Low Resolution 100m', 'Low Noise', 'Medium Resolution 16m', 'Low Noise', 'Low Resolution 100m']

I get results back but their beam mode type do not match what I filtered for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants