From a868a3b74136990bd618775646e2bfb570f153df Mon Sep 17 00:00:00 2001 From: Simon Liu Date: Fri, 1 Sep 2023 12:22:36 -0700 Subject: [PATCH 1/2] fix shapefile subsetting --- podaac/subsetter/subset_harmony.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/podaac/subsetter/subset_harmony.py b/podaac/subsetter/subset_harmony.py index d120f1cd..7dfc84ef 100644 --- a/podaac/subsetter/subset_harmony.py +++ b/podaac/subsetter/subset_harmony.py @@ -136,7 +136,7 @@ def process_item(self, item: pystac.Item, source: harmony.message.Source) -> pys harmony_bbox = message.subset.bbox if message.subset and message.subset.shape: - subset_params['shapefile_path'] = download( + subset_params['shapefile'] = download( message.subset.shape.href, temp_dir, logger=self.logger, From 931b25cadb269983f197a53a3bb06082f0bab8f8 Mon Sep 17 00:00:00 2001 From: Simon Liu Date: Fri, 1 Sep 2023 12:23:20 -0700 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c7c881c..10cb9396 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - [issue/182](https://github.com/podaac/l2ss-py/issues/182): Update code so doesn't remove '/' on attribute values. - [issue/178](https://github.com/podaac/l2ss-py/issues/178): Add function to make sure dimension in subset is same as original file +- [issue/172](https://github.com/podaac/l2ss-py/issues/178): Fix shapefile subsetting by passing correct variable to subset function. ### Deprecated ### Removed ### Fixed