geetools.ComputedObject.open#
- static geetools.ComputedObject.open(path)#
Open a .gee file as a ComputedObject.
- Parameters:
path (geetools.types.pathlike) – The path to the file to open.
- Returns:
The ComputedObject instance.
- Return type:
ee.ComputedObject
Examples
import ee, geetools from tempfile import TemporaryDirectory from pathlib import Path ee.Initialize() img = ee.Image("COPERNICUS/S2/20151128T112653_20151128T135750_T29SND") with TemporaryDirectory() as tmp: file = Path(tmp) / "test.gee" img.geetools.save(file) obj = ee.Image.open(file) print(obj)