open#
- static geetools.ee_computed_object.open(path)#
Open a .gee file as a ComputedObject.
- Parameters:
path (os.PathLike) – The path to the file to open.
- Returns:
The ComputedObject instance.
- Return type:
ee.ComputedObject
Examples
from tempfile import TemporaryDirectory from pathlib import Path import ee, geetools from geetools.utils import initialize_documentation initialize_documentation() img = ee.Image("COPERNICUS/S2_SR_HARMONIZED/20200101T100319_20200101T100321_T32TQM") with TemporaryDirectory() as tmp: file = Path(tmp) / "test.gee" img.save(file) obj = ee.Image.open(file) print(obj.getInfo())
{'type': 'Image', 'bands': [{'id': 'B1', 'data_type': {'type': 'PixelType', 'precision': 'int', 'min': 0, 'max': 65535}, 'dimensions': [1830, 1830], 'crs': 'EPSG:32632', 'crs_transform': [60, 0, 699960, 0, -60, 4700040]}, {'id': 'B2', 'data_type': {'type': 'PixelType', 'precision': 'int', 'min': 0, 'max': 65535}, 'dimensions': [10980, 10980], 'crs': 'EPSG:32632', 'crs_transform': [10, 0, 699960, 0, -10, 4700040]}, {'id': 'B3', 'data_type': {'type': 'PixelType', 'precision': 'int', 'min': 0, 'max': 65535}, 'dimensions': [10980, 10980], 'crs': 'EPSG:32632', 'crs_transform': [10, 0, 699960, 0, -10, 4700040]}, {'id': 'B4', 'data_type': {'type': 'PixelType', 'precision': 'int', 'min': 0, 'max': 65535}, 'dimensions': [10980, 10980], 'crs': 'EPSG:32632', 'crs_transform': [10, 0, 699960, 0, -10, 4700040]}, {'id': 'B5', 'data_type': {'type': 'PixelType', 'precision': 'int', 'min': 0, 'max': 65535}, 'dimensions': [5490, 5490], 'crs': 'EPSG:32632', 'crs_transform': [20, 0, 699960, 0, -20, 4700040]}, {'id': 'B6', 'data_type': {'type': 'PixelType', 'precision': 'int', 'min': 0, 'max': 65535}, 'dimensions': [5490, 5490], 'crs': 'EPSG:32632', 'crs_transform': [20, 0, 699960, 0, -20, 4700040]}, {'id': 'B7', 'data_type': {'type': 'PixelType', 'precision': 'int', 'min': 0, 'max': 65535}, 'dimensions': [5490, 5490], 'crs': 'EPSG:32632', 'crs_transform': [20, 0, 699960, 0, -20, 4700040]}, {'id': 'B8', 'data_type': {'type': 'PixelType', 'precision': 'int', 'min': 0, 'max': 65535}, 'dimensions': [10980, 10980], 'crs': 'EPSG:32632', 'crs_transform': [10, 0, 699960, 0, -10, 4700040]}, {'id': 'B8A', 'data_type': {'type': 'PixelType', 'precision': 'int', 'min': 0, 'max': 65535}, 'dimensions': [5490, 5490], 'crs': 'EPSG:32632', 'crs_transform': [20, 0, 699960, 0, -20, 4700040]}, {'id': 'B9', 'data_type': {'type': 'PixelType', 'precision': 'int', 'min': 0, 'max': 65535}, 'dimensions': [1830, 1830], 'crs': 'EPSG:32632', 'crs_transform': [60, 0, 699960, 0, -60, 4700040]}, {'id': 'B11', 'data_type': {'type': 'PixelType', 'precision': 'int', 'min': 0, 'max': 65535}, 'dimensions': [5490, 5490], 'crs': 'EPSG:32632', 'crs_transform': [20, 0, 699960, 0, -20, 4700040]}, {'id': 'B12', 'data_type': {'type': 'PixelType', 'precision': 'int', 'min': 0, 'max': 65535}, 'dimensions': [5490, 5490], 'crs': 'EPSG:32632', 'crs_transform': [20, 0, 699960, 0, -20, 4700040]}, {'id': 'AOT', 'data_type': {'type': 'PixelType', 'precision': 'int', 'min': 0, 'max': 65535}, 'dimensions': [10980, 10980], 'crs': 'EPSG:32632', 'crs_transform': [10, 0, 699960, 0, -10, 4700040]}, {'id': 'WVP', 'data_type': {'type': 'PixelType', 'precision': 'int', 'min': 0, 'max': 65535}, 'dimensions': [10980, 10980], 'crs': 'EPSG:32632', 'crs_transform': [10, 0, 699960, 0, -10, 4700040]}, {'id': 'SCL', 'data_type': {'type': 'PixelType', 'precision': 'int', 'min': 0, 'max': 255}, 'dimensions': [5490, 5490], 'crs': 'EPSG:32632', 'crs_transform': [20, 0, 699960, 0, -20, 4700040]}, {'id': 'TCI_R', 'data_type': {'type': 'PixelType', 'precision': 'int', 'min': 0, 'max': 255}, 'dimensions': [10980, 10980], 'crs': 'EPSG:32632', 'crs_transform': [10, 0, 699960, 0, -10, 4700040]}, {'id': 'TCI_G', 'data_type': {'type': 'PixelType', 'precision': 'int', 'min': 0, 'max': 255}, 'dimensions': [10980, 10980], 'crs': 'EPSG:32632', 'crs_transform': [10, 0, 699960, 0, -10, 4700040]}, {'id': 'TCI_B', 'data_type': {'type': 'PixelType', 'precision': 'int', 'min': 0, 'max': 255}, 'dimensions': [10980, 10980], 'crs': 'EPSG:32632', 'crs_transform': [10, 0, 699960, 0, -10, 4700040]}, {'id': 'MSK_CLDPRB', 'data_type': {'type': 'PixelType', 'precision': 'int', 'min': 0, 'max': 255}, 'dimensions': [5490, 5490], 'crs': 'EPSG:32632', 'crs_transform': [20, 0, 699960, 0, -20, 4700040]}, {'id': 'MSK_SNWPRB', 'data_type': {'type': 'PixelType', 'precision': 'int', 'min': 0, 'max': 255}, 'dimensions': [5490, 5490], 'crs': 'EPSG:32632', 'crs_transform': [20, 0, 699960, 0, -20, 4700040]}, {'id': 'QA10', 'data_type': {'type': 'PixelType', 'precision': 'int', 'min': 0, 'max': 65535}, 'dimensions': [10980, 10980], 'crs': 'EPSG:32632', 'crs_transform': [10, 0, 699960, 0, -10, 4700040]}, {'id': 'QA20', 'data_type': {'type': 'PixelType', 'precision': 'int', 'min': 0, 'max': 4294967295}, 'dimensions': [5490, 5490], 'crs': 'EPSG:32632', 'crs_transform': [20, 0, 699960, 0, -20, 4700040]}, {'id': 'QA60', 'data_type': {'type': 'PixelType', 'precision': 'int', 'min': 0, 'max': 65535}, 'dimensions': [1830, 1830], 'crs': 'EPSG:32632', 'crs_transform': [60, 0, 699960, 0, -60, 4700040]}, {'id': 'MSK_CLASSI_OPAQUE', 'data_type': {'type': 'PixelType', 'precision': 'int', 'min': 0, 'max': 255}, 'crs': 'EPSG:4326', 'crs_transform': [1, 0, 0, 0, 1, 0]}, {'id': 'MSK_CLASSI_CIRRUS', 'data_type': {'type': 'PixelType', 'precision': 'int', 'min': 0, 'max': 255}, 'crs': 'EPSG:4326', 'crs_transform': [1, 0, 0, 0, 1, 0]}, {'id': 'MSK_CLASSI_SNOW_ICE', 'data_type': {'type': 'PixelType', 'precision': 'int', 'min': 0, 'max': 255}, 'crs': 'EPSG:4326', 'crs_transform': [1, 0, 0, 0, 1, 0]}], 'version': 1738760552041958, 'id': 'COPERNICUS/S2_SR_HARMONIZED/20200101T100319_20200101T100321_T32TQM', 'properties': {'DATATAKE_IDENTIFIER': 'GS2B_20200101T100319_014734_N02.13', 'AOT_RETRIEVAL_ACCURACY': 0, 'SPACECRAFT_NAME': 'Sentinel-2B', 'SATURATED_DEFECTIVE_PIXEL_PERCENTAGE': 0, 'MEAN_INCIDENCE_AZIMUTH_ANGLE_B8A': 105.286977335, 'CLOUD_SHADOW_PERCENTAGE': 0.594454, 'MEAN_SOLAR_AZIMUTH_ANGLE': 163.498071935, 'system:footprint': {'type': 'LinearRing', 'coordinates': [[11.4305932797911, 42.42693675629298], [11.430588861231122, 42.42692209647226], [11.411734981674966, 41.93299631138351], [11.39334736629802, 41.43902872595767], [11.393394653411233, 41.438986291397505], [11.393434405781855, 41.438939708234], [11.393453978850287, 41.43893646927237], [12.705328573482387, 41.40413235000518], [12.705385904770354, 41.404167087103], [12.705448583504145, 41.40419618586291], [12.705453229621417, 41.404210862056495], [12.719575735360277, 41.650906916085454], [12.733875046254118, 41.89758086164511], [12.748354205260403, 42.14424013652544], [12.763015731172214, 42.39088469146929], [12.76296872100827, 42.39092766251667], [12.762929428945325, 42.3909747116596], [12.762909519802353, 42.39097821279129], [11.430713967200191, 42.427001979029036], [11.430656352589919, 42.42696661247439], [11.4305932797911, 42.42693675629298]]}, 'VEGETATION_PERCENTAGE': 33.281738, 'SOLAR_IRRADIANCE_B12': 87.75, 'SOLAR_IRRADIANCE_B10': 365.41, 'SENSOR_QUALITY': 'PASSED', 'SOLAR_IRRADIANCE_B11': 247.08, 'GENERATION_TIME': 1577879127000, 'SOLAR_IRRADIANCE_B8A': 953.93, 'FORMAT_CORRECTNESS': 'PASSED', 'CLOUD_COVERAGE_ASSESSMENT': 0.134674, 'THIN_CIRRUS_PERCENTAGE': 0.01639, 'system:time_end': 1577873347042, 'WATER_VAPOUR_RETRIEVAL_ACCURACY': 0, 'system:time_start': 1577873347042, 'DATASTRIP_ID': 'S2B_OPER_MSI_L2A_DS_EPAE_20200101T114527_S20200101T100321_N02.13', 'PROCESSING_BASELINE': '02.13', 'SENSING_ORBIT_NUMBER': 122, 'NODATA_PIXEL_PERCENTAGE': 0, 'SENSING_ORBIT_DIRECTION': 'DESCENDING', 'GENERAL_QUALITY': 'PASSED', 'GRANULE_ID': 'L2A_T32TQM_A014734_20200101T100321', 'REFLECTANCE_CONVERSION_CORRECTION': 1.03411992263, 'MEDIUM_PROBA_CLOUDS_PERCENTAGE': 0.071377, 'MEAN_INCIDENCE_AZIMUTH_ANGLE_B8': 105.764234281, 'DATATAKE_TYPE': 'INS-NOBS', 'MEAN_INCIDENCE_AZIMUTH_ANGLE_B9': 105.138673036, 'MEAN_INCIDENCE_AZIMUTH_ANGLE_B6': 105.375763425, 'MEAN_INCIDENCE_AZIMUTH_ANGLE_B7': 105.335645937, 'MEAN_INCIDENCE_AZIMUTH_ANGLE_B4': 105.496067641, 'MEAN_INCIDENCE_ZENITH_ANGLE_B1': 6.19653739742, 'NOT_VEGETATED_PERCENTAGE': 7.719636, 'MEAN_INCIDENCE_AZIMUTH_ANGLE_B5': 105.441355005, 'RADIOMETRIC_QUALITY': 'PASSED', 'MEAN_INCIDENCE_AZIMUTH_ANGLE_B2': 105.877672708, 'MEAN_INCIDENCE_AZIMUTH_ANGLE_B3': 105.668195374, 'MEAN_INCIDENCE_ZENITH_ANGLE_B5': 6.02061646869, 'MEAN_INCIDENCE_AZIMUTH_ANGLE_B1': 105.186535187, 'MEAN_INCIDENCE_ZENITH_ANGLE_B4': 5.98537816071, 'MEAN_INCIDENCE_ZENITH_ANGLE_B3': 5.93064771091, 'MEAN_INCIDENCE_ZENITH_ANGLE_B2': 5.87636964277, 'MEAN_INCIDENCE_ZENITH_ANGLE_B9': 6.24974203269, 'MEAN_INCIDENCE_ZENITH_ANGLE_B8': 5.89978964849, 'MEAN_INCIDENCE_ZENITH_ANGLE_B7': 6.10176723695, 'DARK_FEATURES_PERCENTAGE': 4.269651, 'HIGH_PROBA_CLOUDS_PERCENTAGE': 0.046908, 'MEAN_INCIDENCE_ZENITH_ANGLE_B6': 6.05942903654, 'UNCLASSIFIED_PERCENTAGE': 3.150965, 'MEAN_SOLAR_ZENITH_ANGLE': 66.7084248035, 'MEAN_INCIDENCE_ZENITH_ANGLE_B8A': 6.14732976402, 'RADIATIVE_TRANSFER_ACCURACY': 0, 'MGRS_TILE': '32TQM', 'CLOUDY_PIXEL_PERCENTAGE': 0.134674, 'PRODUCT_ID': 'S2B_MSIL2A_20200101T100319_N0213_R122_T32TQM_20200101T114527', 'MEAN_INCIDENCE_ZENITH_ANGLE_B10': 5.96122076727, 'SOLAR_IRRADIANCE_B9': 817.58, 'SNOW_ICE_PERCENTAGE': 0.000182, 'DEGRADED_MSI_DATA_PERCENTAGE': 0, 'MEAN_INCIDENCE_ZENITH_ANGLE_B11': 6.05373000015, 'MEAN_INCIDENCE_ZENITH_ANGLE_B12': 6.15862317756, 'SOLAR_IRRADIANCE_B6': 1291.13, 'MEAN_INCIDENCE_AZIMUTH_ANGLE_B10': 105.639926547, 'SOLAR_IRRADIANCE_B5': 1425.78, 'MEAN_INCIDENCE_AZIMUTH_ANGLE_B11': 105.505879446, 'SOLAR_IRRADIANCE_B8': 1041.28, 'MEAN_INCIDENCE_AZIMUTH_ANGLE_B12': 105.369450008, 'SOLAR_IRRADIANCE_B7': 1175.57, 'SOLAR_IRRADIANCE_B2': 1959.75, 'SOLAR_IRRADIANCE_B1': 1874.3, 'SOLAR_IRRADIANCE_B4': 1512.79, 'GEOMETRIC_QUALITY': 'PASSED', 'SOLAR_IRRADIANCE_B3': 1824.93, 'system:asset_size': 1396009871, 'WATER_PERCENTAGE': 50.848699, 'system:index': '20200101T100319_20200101T100321_T32TQM'}}