Skip to content

Time filtering problem #803

Answered by itcarroll
q1165600785 asked this question in Q&A
Sep 14, 2024 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

Generally no, but this collection is model output at exactly 3-hour intervals and has the hour in the name. So you can use a cheat. You can set the granule_name filter to *.0000.*.

results = earthaccess.search_data(short_name="GLDAS_NOAH025_3H", granule_name="*.0000.*", temporal=("2018", "2023"))
len(results)
2191
results[42]
Data: GLDAS_NOAH025_3H.A20180212.0000.021.nc4
Size: 17.87 MB
Cloud Hosted: True

Note the short form of the temporal parameter requires earthaccess version 0.10 or higher.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mfisher87
Comment options

Answer selected by mfisher87
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants