M
maohaitaocumtb maohaitaocumtb
Guest
maohaitaocumtb maohaitaocumtb Asks: About getInfo use in earthengine-api (Python)
When I write the an algorithm in Google Earth Engine using JavaScript by using the Code Editor, it works fast. After thatif I use the
However, after I translate the algorithm into the version of Python with the earthengine-api and I want to get some intermediate results, I need to use the
How can I address this issue in Python?
When I write the an algorithm in Google Earth Engine using JavaScript by using the Code Editor, it works fast. After thatif I use the
Map.addLayer()
, the result of algorithm can show in the map quickly.However, after I translate the algorithm into the version of Python with the earthengine-api and I want to get some intermediate results, I need to use the
.getInfo()
function. According to the official tutorial, you shouldn't use getInfo()
unless you absolutely need to. If you call getInfo()
in your code, Earth Engine will open the container and tell you what's inside, but it will block the rest of your code until that's done. So this function will slow down my program.How can I address this issue in Python?
SolveForum.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, solveforum.