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

search functions for filtering datasets by metadata #1

Open
HeatherSavoy-USDA opened this issue Feb 17, 2022 · 1 comment
Open

search functions for filtering datasets by metadata #1

HeatherSavoy-USDA opened this issue Feb 17, 2022 · 1 comment
Labels
enhancement New feature or request metadata Additions or fixes to metadata

Comments

@HeatherSavoy-USDA
Copy link
Collaborator

The API lets you query a list of all datasets and then only metadata by individual datasets. It would be useful to provide a user function to obtain multiple datasets' metadata.

If the user supplies dataset names (support approximate matches), we could do individual metadata requests per dataset. But if we want to allow the user to filter by metadata (e.g. includes a precipitation variable), we'd have to request ALL metadata then filter. Maybe the results can be cached for like a day or if the user forces an update. How much filtering do we do in the function vs just providing all the info to the user for them to filter? We should return as much as they want but make it a format to easily manipulate.

@HeatherSavoy-USDA HeatherSavoy-USDA added the enhancement New feature or request label Feb 17, 2022
@HeatherSavoy-USDA
Copy link
Collaborator Author

The cached entire metadata might be useful for error checking before sending the API bad requests.

@HeatherSavoy-USDA HeatherSavoy-USDA added the metadata Additions or fixes to metadata label Aug 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request metadata Additions or fixes to metadata
Projects
None yet
Development

No branches or pull requests

1 participant