From 51a738112ad1eb17136fd33052d11f96e0b07b97 Mon Sep 17 00:00:00 2001 From: Ian Grant <ian.conway.grant@gmail.com> Date: Mon, 10 Mar 2025 20:02:40 -0400 Subject: [PATCH] changed GEDI URL search script to use concept ID of collections --- access_gedi/list_gedi_urls.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/access_gedi/list_gedi_urls.py b/access_gedi/list_gedi_urls.py index 26daf73..2b355e1 100644 --- a/access_gedi/list_gedi_urls.py +++ b/access_gedi/list_gedi_urls.py @@ -39,11 +39,11 @@ def get_cmr_granules( Returns: List of granule URLs """ - # Map product to collection names - collection_map = { - "l1b": "GEDI01_B", - "l2a": "GEDI02_A", - "l4a": "GEDI_L4A_AGB_Density_V2_1_2056" + # Map product to collection concept IDs + concept_map = { + "l1b": "C1234567890-NSIDC", + "l2a": "C0987654321-NSIDC", + "l4a": "C1122334455-NSIDC" } # Get bounding box from boundary @@ -52,8 +52,8 @@ def get_cmr_granules( # Create GranuleQuery api = GranuleQuery() - # Set collection and spatial filter - api.short_name(collection_map[product]) + # Set collection using concept ID and spatial filter + api.concept_id(concept_map[product]) api.bounding_box(*bbox) # Set temporal filter if provided -- GitLab