From f8f02e02abeffd18bdb026751ff3b66eb77e79ce Mon Sep 17 00:00:00 2001 From: dabhicusp Date: Wed, 29 Nov 2023 07:56:40 +0000 Subject: [PATCH] nit changes done. --- xee/ext.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xee/ext.py b/xee/ext.py index 63d8260..56e71e4 100644 --- a/xee/ext.py +++ b/xee/ext.py @@ -540,17 +540,17 @@ def _get_primary_coordinates(self) -> List[Any]: def _get_tile_from_EE( self, tile_index: Tuple[Any, Union[str, int]] ) -> Tuple[slice, np.ndarray]: - """Get a numpy array from EE for a specific 3D bounding box (a 'tile').""" - tile_index, BandIds = tile_index + """Get a numpy array from EE for a specific bounding box (a 'tile').""" + tile_index, band_id = tile_index bbox = self.project( (tile_index[0], 0, tile_index[1], 1) - if BandIds == 'longitude' + if band_id == 'longitude' else (0, tile_index[0], 1, tile_index[1]) ) tile_idx = slice(tile_index[0], tile_index[1]) target_image = ee.Image.pixelLonLat() return tile_idx, self.image_to_array( - target_image, grid=bbox, dtype=np.float32, bandIds=[BandIds] + target_image, grid=bbox, dtype=np.float32, bandIds=[band_id] ) def process_coordinate_data(