Home [GEE] Python API
Post
Cancel

[GEE] Python API

Python API 활용 방법

1
2
3
4
import ee
from google.auth.transport.requests import AuthorizedSession
ee.Authenticate()  #  or !earthengine authenticate --auth_mode=gcloud
session = AuthorizedSession(ee.data.get_persistent_credentials())
1
ee.Initialize()
1
2
Map = geemap.Map()
Map

image

1
2
3
# "" 안에 이미지 입력
image = ee.Image("")
print(image.getInfo())
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{'bands': [{'crs': 'EPSG:32652',
'crs_transform': [0.06415149669355084,
-0.5992946744683894,
273556.7841501166,
-0.5992946744683978,
-0.06415149669356095,
3841252.1478648423],

'data_type': {'max': 255,
'min': 0,
'precision': 'int',
'type': 'PixelType'},
'dimensions': [6640, 6639],
'id': 'b1'}],
'id': 'projects/mrv-poc-practice/assets/2023-07-06-01-02-32_UMBRA-05',
'properties': {'system:asset_size': 47204960,
'system:footprint': {'coordinates': [[126.49053822328602,
34.6477593487759],
[126.49053913086848,
34.647759400947876],
[126.5337944059228,
34.65248134371928],
[126.53379704464895,
34.65248386985626],
[126.53380009567597,
34.652486033507095],
...
34.6477593487759]],

'type': 'LinearRing'}},
'type': 'Image',
'version': 1690204818489588}
1
Map.addLayer(image)

image

This post is licensed under CC BY 4.0 by the author.