TransWikia.com

Check if Google Earth Engine Python API is initialized

Geographic Information Systems Asked on January 23, 2021

In Google Earth Engine Python API, you need to start with an initialization :

import ee

ee.Initialize()

Is there a way to check if the ee has already been Initialized ?

One Answer

during the init, the API will check and add your credentials and they are accecible so you can just use :

import ee 

if not ee.data._credentials:
    ee.Initialize()

Correct answer by Pierrick Rambaud on January 23, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP