From f0b1c8ccdbb840388cd0c1bca34b7ab987249e7f Mon Sep 17 00:00:00 2001 From: Kristof Van Tricht Date: Tue, 3 Sep 2024 12:15:26 +0200 Subject: [PATCH] Fix typing --- presto/dataset.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/presto/dataset.py b/presto/dataset.py index 64997c2..e4c189b 100644 --- a/presto/dataset.py +++ b/presto/dataset.py @@ -495,11 +495,11 @@ def nc_to_arrays( cls, filepath: Path ) -> Tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray, np.ndarray]: ds = xr.open_dataset(filepath) - epsg_coords = CRS.from_wkt(xr.open_dataset(filepath).crs.attrs["crs_wkt"]).to_epsg() + epsg = int(CRS.from_wkt(xr.open_dataset(filepath).crs.attrs["crs_wkt"]).to_epsg()) inarr = ds.drop("crs").to_array(dim="bands") eo_data, mask = cls._extract_eo_data(inarr) - latlons = cls._extract_latlons(inarr, epsg_coords) + latlons = cls._extract_latlons(inarr, epsg) months = cls._extract_months(inarr) if cls.Y not in ds: