-
Notifications
You must be signed in to change notification settings - Fork 91
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
Better communicate search_data
spatial filter behavior expectations: polygon/bbox have no effect on "global" datasets, polygon/bbox do not clip/subset data
#515
Comments
Thanks for your report! It looks to me like that tutorial needs a fix. The bounding box isn't doing anything because every granule in that collection covers the whole earth.
These bounding box and polygon parameters only apply to filtering the granules returned by search (CMR under the hood), but they don't help clip/subset the actual data found inside those data files. Can you recommend a way that earthaccess could provide clarity to users who run in to this scenario? This is a fairly common issue our users run in to, and it would be amazing if the software could help those users be more aware of why they're seeing what they're seeing and how to move forward. More discussion: #467 |
search_data
spatial filter behavior expectations: polygon/bbox have no effect on "global" datasets, polygon/bbox do not clip/subset data
This behavior could definitely be documented more clearly. My suggestion is that we do this in three places: the docstrings for It is important to note that the result is expected and correct. What needs to be made clear in the documentation is that, as @mfisher87 notes, is that An approach for documenting this behavior could be: For the docstrings, add the following notes to
For
For the user guide we can include examples of searches for global and regional datasets for We can include a deep dive in the reference documentation that can be linked to from the user guide. @asteiker created a figure demonstrating the difference between a search filter and a subset for a tutorial https://nasa-openscapes.github.io/earthdata-cloud-cookbook/examples/Earthdata-cloud-clinic.html We could produce a similar diagram for a global dataset. |
I think pictures illustrating the selection would go a long way in the user guide! |
A "global" dataset would be one where each granule covers the entire earth. How can we communicate to users when this is the case, and their polygon/bbox query is having no effect? Since we only receive the matching granules, how can we know for sure that every granule in a collection is global so we can know that the users' spatial filters are having no effect? Is there perhaps a boolean in the CMR metadata we can use?
Description:
I am encountering an issue while attempting to access the GHRSST MUR dataset using the Earth Access API. I have followed the tutorial provided to access the dataset, and everything seems to work correctly until I attempt to filter the data using a bounding box or polygon.
Here's the process I've followed:
xr.open_mfdataset(earthaccess.open(mur_results), engine='h5netcdf')
, my PC becomes unresponsive, and the process gets stuck.and it shows like :
I have also used the bounding_box and get the same output
mur_results = earthaccess.search_data(short_name = 'MUR-JPL-L4-GLOB-v4.1',bounding_box = ('115.10','-32.77','115.77','-31.44'))
Additionally, when I examine the output, I notice that entire latitude (-90, 90) and longitude ((-180, 180 ) values seem to be included, indicating that the bounding box or polygon filter is not functioning correctly.
This issue is causing significant inconvenience and delays in accessing the dataset, as well as consuming a large amount of system resources.
Another thing, I saw in the rest of that tutorial, there has been applied a slice of the dataset to subset the data. Then what is the application of
polygon
orbounding_box
not clear to me.Could you please investigate why the bounding box or polygon filter is not working as expected and provide guidance on how to resolve this issue? Thank you.
The text was updated successfully, but these errors were encountered: