Skip to content

Commit

Permalink
nit changes done.
Browse files Browse the repository at this point in the history
  • Loading branch information
dabhicusp committed Nov 29, 2023
1 parent 12844d3 commit f8f02e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xee/ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit f8f02e0

Please sign in to comment.