From 9759d0f649ec0ed5517ed1945b870f46f8d3cff4 Mon Sep 17 00:00:00 2001 From: dabhicusp Date: Tue, 9 Jan 2024 17:15:44 +0000 Subject: [PATCH] lat. lon storing into the arr is updated. --- xee/ext.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/xee/ext.py b/xee/ext.py index f4cd031..e675ca0 100644 --- a/xee/ext.py +++ b/xee/ext.py @@ -573,10 +573,8 @@ def _process_coordinate_data( self._get_tile_from_ee, list(zip(data, itertools.cycle([coordinate_type]))), ): - tiles[i] = ( - arr.tolist()[0] if coordinate_type == 'x' else arr.tolist()[0][0] - ) - return np.concatenate(tiles) + tiles[i] = arr.flatten() + return np.array(tiles) def get_variables(self) -> utils.Frozen[str, xarray.Variable]: vars_ = [(name, self.open_store_variable(name)) for name in self._bands()]