-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Added community datasets and improved GUI #1197
Conversation
Thanks. Do you think it could be feasible to use JS to python extractor for examples? |
Could you be more specific? I am not sure what you meant. |
Ok, will check. |
99% certain it's due to filtering on type of dataset. Without it:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR ready
r= requests.get(link) | ||
catalog_list = r.json() | ||
matches += [search_collection(pattern, x) for x in catalog_list] | ||
return [x for x in matches if x and x['type'] in types] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#1197 due to filter on type of dataset
I could scrape relevant code from example link code. Do you think the convertor has a good chance in general to generate valid python code based on de google earth engine examples & user code? PS: also fixed sort of dataset names |
Search for multiple keywords works as AND filter. (so looking for 'CAMS' and 'fire' will result in empty list as no collection has both. If other behaviour is preferable, easy this in common.py
assets = reduce(set.intersection, assets)
To restrict gui to ee collections in geemap.py
ee_assets = search_ee_data(text.value, source='all')