Skip to content

Commit

Permalink
Changes done for the ee int images.
Browse files Browse the repository at this point in the history
  • Loading branch information
dabhicusp committed Mar 6, 2024
1 parent 282d3c5 commit f5d68b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions xee/ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ def image_to_array(
Returns:
An numpy array containing the pixels computed based on the given image.
"""
image = image.toFloat()
image = (
ee.Image(self.mask_value)
.rename([image.bandNames().get(0)])
Expand Down
1 change: 1 addition & 0 deletions xee/ext_integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def setUp(self):
'2017-01-01', '2017-01-03'
),
n_images=64,
mask_value=-99999,
)
self.lnglat_store = xee.EarthEngineStore(
ee.ImageCollection.fromImages([ee.Image.pixelLonLat()]),
Expand Down

0 comments on commit f5d68b4

Please sign in to comment.