-
Notifications
You must be signed in to change notification settings - Fork 97
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
Add tutorial / how-to about filtering file (not granule) results by name #428
Comments
Playing devils advocate here. I'm wondering if this is a level of abstraction too far. And if a more general use case is filtering on any component of results, not just the data_link. So teaching/suggesting a filtering step along the lines of
where the filter condition could be a Also from a reproducibility point of view, someone might want to save |
I see your point! I don't really know how to balance "user-friendliness" / "accessibility" with "just learn/write a bit of Python (e.g. list comprehension filtering) if you want to do this". The latter response can be super valuable for learners if coupled with excellent learning materials and guidance. Or it can be off-putting. In this case, we're talking about list comprehensions, which are a critical Python skill. Maybe our criteria for what's in scope should include "are we abstracting away a critical Python skill?" as a reason to reject a feature request. We definitely need to be rejecting some subset of feature requests, but I think we need a conversation about how to handle those rejections kindly. I don't want to create experiences where expectations are unclear and people do work and then feel bad when it's not accepted! |
@mfisher87 I Agree 100%. We might want to explore passing a regex to the |
As I understand it, this is not about allowing regex/pattern-based search, which is already supported in CMR: but opening a specific subset of the assets in a granule record -- here's the STAC formatted record for the example in #409: So, only wanting to open Band 10, for this record in particular, would mean opening asset While it is a decently simple comprehension to get the URLs, it seems like we should support directly opening and/or downloading a specific asset, or a specific subset of assets, from results. And in that vein, I'd be in favor of filtering based on a pattern. |
Importantly, this is selecting file URLs out of a record, not filtering down search results, so the I would expect, if you wanted to record for reproducibility, you'd write the resulting search records to disk themselves, with all the metadata that way, not just the URLs (especially since DAACs do delete individual files/records when a scene is reprocessed, for example). having an |
Based on #409 and a recent Slack discussion, this is a common need that we should document, and perhaps also explore convenience features to make it easier. @betolink suggested e.g.
Let's create a new ticket for such a feature?
The text was updated successfully, but these errors were encountered: