-
Notifications
You must be signed in to change notification settings - Fork 107
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
Querying granules by names only? #207
Comments
Hello @whyjz! If you take a look at the code, the
If this still returns more granules than you expect, you could further narrow your search if you know what region of the world you're in (so could reduce the spatial extent) or provide start and end times (which can also be extracted from the filename in this case). Please let us know if this works for you! |
@whyjz Can you confirm that you were able to find specific files as suggested? |
Hi @JessicaS11, sorry about the delay from my side (was in quarantine in Taiwan during the past 2 weeks). I actually ended up querying the desired file using a similar way that you posted (see #27 and here). And it is understandable why querying using names only is not recommended. Yes, I am happy to do a quick PR to remove the old placeholder on the doc! I also found a strange error when I tried your code: if the |
No worries, @whyjz! I just happened to have some time to follow up then. Glad you're out of quarantine! We've had a few issues in the past (e.g. #111, #117) with global coordinates or those crossing the dateline. The format of the bounding box and the assertion itself should be okay, but I don't know that anyone has done extensive testing on it... I wasn't looking at the code and hadn't tried running the code snippet I suggested above (nor this one), but it might be as simple as switching the +/- of the longitudes ( |
Switching the sign of the longitudes seems to do the trick. As #117 is probably a better place to track this issue, I will close this issue for now. Thanks for the help these days! |
Hi Icepyx devs! Does
icepyx.Query
work if only the granule name is provided? I tried thisand it complained that I didn't enter a valid spatial extent. But I didn't know the spatial extent (unless I check it up on Earthdata Search) because I was following somebody else's work with the only file name specified.
Thanks in advance!
The text was updated successfully, but these errors were encountered: