You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just found a VERY weird behavior in eemont 0.2.5. Before importing the eemont, the following code excerpt works perfectly:
import ee
ee.Initialize()
image = ee.ImageCollection("COPERNICUS/S2_SR").first().set("lon",5.9053, "lat",31.6585)
poi = ee.Geometry.Point([image.getNumber("lon"), image.getNumber("lat")]) # A list of two [x,y] coordinates.
print(poi.getInfo())
poi = ee.Geometry.Point(image.getNumber("lon"), image.getNumber("lat")) # varargs.
print(poi.getInfo())
>>>
{'type': 'Point', 'coordinates': [5.9053, 31.6585]}
{'type': 'Point', 'coordinates': [5.9053, 31.6585]}
However, after importing eemont, the last two sentences will prompts the error of "EEException: Invalid argument specified for ee.Number(): <object object at 0x2b9f90c8ed80>":
import eemont
poi = ee.Geometry.Point([image.getNumber("lon"), image.getNumber("lat")]) # A list of two [x,y] coordinates.
print(poi.getInfo())
poi = ee.Geometry.Point(image.getNumber("lon"), image.getNumber("lat")) # varargs.
print(poi.getInfo())
I spent a couple of hours to identify the root of this weird, hard-to-be-spotted issue, so would like to let you and others know about it, although I am not sure if this still exists in the latest version of the eemont. Also not sure if this issue goes to other functions that accept varargs.
All the best,
Fei
The text was updated successfully, but these errors were encountered:
@davemlz I have also spent the last hours trying to calculate my indices and no matter what I do they don't seem to be added as new bands. the code runs but when i do zonal statistics they are not there! Is the package offline or maybe i am missing something.
Thank you
S2_HARMONIZED is not yet included in the current version of eemont (0.3.4), but it will be in the following days with the upcoming version (0.3.5). Please see #68. Thank you!
Hi @davemlz !
I just found a VERY weird behavior in
eemont 0.2.5
. Before importing theeemont
, the following code excerpt works perfectly:However, after importing
eemont
, the last two sentences will prompts the error of "EEException: Invalid argument specified for ee.Number(): <object object at 0x2b9f90c8ed80>":I spent a couple of hours to identify the root of this weird, hard-to-be-spotted issue, so would like to let you and others know about it, although I am not sure if this still exists in the latest version of the
eemont
. Also not sure if this issue goes to other functions that acceptvarargs
.All the best,
Fei
The text was updated successfully, but these errors were encountered: