From adc22d55963f5c7949cf87a9906964ccba755585 Mon Sep 17 00:00:00 2001 From: Raphael Hagen Date: Wed, 29 May 2024 14:12:09 -0700 Subject: [PATCH] adds rioxarray --- pangeo_forge_ndpyramid/transforms.py | 2 +- pyproject.toml | 1 + tests/test_end_to_end.py | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pangeo_forge_ndpyramid/transforms.py b/pangeo_forge_ndpyramid/transforms.py index 5d70821..a3283e5 100644 --- a/pangeo_forge_ndpyramid/transforms.py +++ b/pangeo_forge_ndpyramid/transforms.py @@ -99,7 +99,7 @@ def expand( ds = xr.Dataset(attrs=attrs) - target_path = (self.target_root / self.store_name).get_mapper() + target_path = (self.target_root / self.store_name).get_mapper() ds.to_zarr(store=target_path, compute=False) # noqa # generate all pyramid levels diff --git a/pyproject.toml b/pyproject.toml index 6627841..3023281 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,6 +22,7 @@ classifiers = [ dependencies = [ "pangeo-forge-recipes", "ndpyramid", + "rioxarray" ] [project.optional-dependencies] diff --git a/tests/test_end_to_end.py b/tests/test_end_to_end.py index 71dfb0e..95d87d5 100644 --- a/tests/test_end_to_end.py +++ b/tests/test_end_to_end.py @@ -8,6 +8,7 @@ # TODO: We should parameterize the reprojection methods available in ndpyramid +# TODO: Test names and attrs def test_pyramid( pyramid_datatree, create_file_pattern,