Skip to content

Commit e57ccfb

Browse files
committed
fix for changes in short_name for AMS assets; restored provider to atl13
1 parent 3c87e05 commit e57ccfb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

clients/python/tests/test_3dep.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def test_as_variable(self, init):
5858

5959
class Test3dep1m:
6060
def test_sample_ams(self, init):
61-
geojson = earthdata.ams(short_name='3dep1m', polygon=region)
61+
geojson = earthdata.ams(short_name='3DEP1M', polygon=region)
6262
gdf = raster.sample("3dep1m", [[-108.0,39.0]], {"catalog": json.dumps(geojson)})
6363
assert init
6464
assert len(gdf) >= 2

clients/python/tests/test_worldcover.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ def test_atl03x_worldcover_transform(self, init):
5757
"samples": {
5858
"worldcover": {
5959
"asset": "esa-worldcover-10meter",
60-
"algorithm": "NearestNeighbour",
61-
"force_single_sample": False,
60+
"algorithm": "NearestNeighbour"
6261
}
6362
},
6463
}

packages/core/extensions/earth_data_query.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ ASSETS = {
6161
driver = "s3atl13",
6262
path = "nsidc-cumulus-prod-protected",
6363
endpoint = "s3.us-west-2.amazonaws.com",
64+
provider = "NSIDC_CPRD",
6465
version = "006",
6566
api = "ams",
6667
formats = {".h5"},
@@ -486,7 +487,7 @@ local function ams (parms, poly, _with_meta, _short_name)
486487
local with_meta = _with_meta or parms["with_meta"] or dataset["with_meta"]
487488

488489
-- build local parameters that combine top level parms with endpoint (e.g. atl13) specific parms
489-
local ams_parms = parms[endpoint] or {}
490+
local ams_parms = parms[endpoint] or (endpoint and parms[string.lower(endpoint)]) or {}
490491
ams_parms["t0"] = ams_parms["t0"] or parms["t0"]
491492
ams_parms["t1"] = ams_parms["t1"] or parms["t1"]
492493
ams_parms["poly"] = poly or ams_parms["poly"] or parms["poly"]

0 commit comments

Comments
 (0)