Closed navidboy70 closed 2 years ago
Hi @navidboy70!
I tried the code that you sent (with another ROI since I don't have access to the one you're using) and everything works fine in VS Code, JN, and Colab. Please try the following:
preprocess
method was created for eemont>=0.2.0
. Check you are actually using eemont
with a version greater or equal to 0.2.0
. You can check the version with eemont.__version__
. You can update eemont
with pip install -U eemont
.preprocess
method is actually a short method for object.maskClouds().scaleAndOffset()
: You shouldn't use these methods after calling preprocess
.If the problem persists, please paste here the complete code with a screenshot of the error.
Best,
David
Hi David, I managed to fix the problem. Thank you very much. Unfortunately, I have faced another problem with your library in the google earth engine code editor. I write your spectral code : 'var spectral = require("users/dmlmont/spectral:spectral");', but it causes an error : 'In users/dmlmont/spectral:spectral-constants Line 51: None is not defined'
I did not have problem with it since 2 days ago, but now it does not work. I will be really thankful, if you response it. best regards, Navid
On Wed, Sep 14, 2022 at 7:49 PM David Montero Loaiza < @.***> wrote:
Hi @navidboy70 https://github.com/navidboy70!
I tried the code that you sent (with another ROI since I don't have access to the one you're using) and everything works fine in VS Code, JN, and Colab. Please try the following:
- The preprocess method was created for eemont>=0.2.0. Check you are actually using eemont with a version greater or equal to 0.2.0. You can check the version with eemont.version. You can update eemont with pip install -U eemont.
- The preprocess method is actually a short method for object.maskClouds().scaleAndOffset(): You shouldn't use these methods after calling preprocess.
If the problem persists, please paste here the complete code with a screenshot of the error.
Best,
David
— Reply to this email directly, view it on GitHub https://github.com/davemlz/eemont/issues/78#issuecomment-1246927968, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2DIWAMFWSQ4EQUU75DAZETV6HUILANCNFSM6AAAAAAQI4GGVM . You are receiving this because you were mentioned.Message ID: @.***>
Sorry, it was an error when translating from Python to JavaScript. It has been fixed! :)
Bets regards,
David
thank you David.
On Sun, Oct 9, 2022 at 3:45 PM David Montero Loaiza < @.***> wrote:
Closed #78 https://github.com/davemlz/eemont/issues/78 as completed.
— Reply to this email directly, view it on GitHub https://github.com/davemlz/eemont/issues/78#event-7549325933, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2DIWAN2ZWJ7DWHOCUUBNTTWCKZOLANCNFSM6AAAAAAQI4GGVM . You are receiving this because you were mentioned.Message ID: @.***>
Hello David, I am using your library 'eemont' in python environment (VSCode), when I use '.preprocess()' method in my code it faces an error 'ee.ee_exception.EEException: Request payload size exceeds the limit: 10485760 bytes.' . However, without it, it prints the output. ' S2_1 = ( eemont.ee.ImageCollection(dataset) .filterBounds(state) .filterDate('2021-09-23','2021-10-23') .preprocess())
' KeyboardInterrupt ^C (venv) D:\python_projects\GEE_classification>d:/python_projects/GEE_classification/venv/Scripts/python.exe d:/python_projects/GEE_classification/classification.py Traceback (most recent call last): File "d:\python_projects\GEE_classification\venv\lib\site-packages\ee\data.py", line 328, in _execute_cloud_call return call.execute(num_retries=num_retries) File "d:\python_projects\GEE_classification\venv\lib\site-packages\googleapiclient_helpers.py", line 134, in positional_wrapper return wrapped(*args, **kwargs) File "d:\python_projects\GEE_classification\venv\lib\site-packages\googleapiclient\http.py", line 915, in execute raise HttpError(resp, content, uri=self.uri) googleapiclient.errors.HttpError: <HttpError 400 when requesting https://earthengine.googleapis.com/v1alpha/projects/earthengine-legacy/value:compute?prettyPrint=false&alt=json returned "Request payload size exceeds the limit: 10485760 bytes.". Details: "Request payload size exceeds the limit: 10485760 bytes.">
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "d:/python_projects/GEE_classification/classification.py", line 73,
in
On Sun, Oct 9, 2022 at 3:56 PM Navid Zed @.***> wrote:
thank you David.
On Sun, Oct 9, 2022 at 3:45 PM David Montero Loaiza < @.***> wrote:
Closed #78 https://github.com/davemlz/eemont/issues/78 as completed.
— Reply to this email directly, view it on GitHub https://github.com/davemlz/eemont/issues/78#event-7549325933, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2DIWAN2ZWJ7DWHOCUUBNTTWCKZOLANCNFSM6AAAAAAQI4GGVM . You are receiving this because you were mentioned.Message ID: @.***>
Describe the bug I am trying to use geemap,eemont and ee to derive some indices from sentinel-2 dataset from GEE python API in VSCode. the problem is that some methods and modules can not be recognized by python and I face error. I also copied the exact scripts from your tutorials, but the problem still exists.
To Reproduce import ee, eemont, geemap
AttributeError: 'ImageCollection' object has no attribute 'preprocess'
Screenshots If applicable, add screenshots to help explain your problem.
Setup (please complete the following information):
Additional context Add any other context about the problem here.