Quantcast
Channel: Earthdata Forum
Viewing all articles
Browse latest Browse all 1307

Home • Re: Get only the latest version of a granule with earthaccess.search_data()

$
0
0
Hi Fiona,

Thank you for reaching out on the forum regarding the earthaccess Python library. It's a great tool!

When using earthaccess.search_data() you can add "version" as an argument.

Example:
pixc_results = earthaccess.search_data(short_name = 'SWOT_L2_HR_PIXC_2.0', version = '03',
temporal = ('2024-05-01 00:00:00', '2024-08-05 23:59:59'),
granule_name='*_298_080L_*')

CMR does not support the option to search by most recent version because of the heterogeneity of versioning syntax across EOSDIS data, so you do have to have some prior knowledge of which version you are wishing to filter on.

Hope that helps!

Kind regards,

Mikala

Statistics: Posted by NSIDC - mbeig — Tue Aug 06, 2024 4:19 pm America/New_York



Viewing all articles
Browse latest Browse all 1307

Trending Articles