1. GEE について知る
API ドキュメントのアドレス: https://developers.google.com/earth-engine/apidocs/ee-image
(1) 大量のリモートセンシングデータを処理できる。
(2) 多くのアルゴリズムを統合する。
(3)リモートセンシング画像の大規模処理。
2. 基本的なデータ型
(1)イメージ
(2)画像コレクション
(3)一覧
3. 画像
3.1 イメージのビルド
(1) 方法 1: 画像 ID を使用する
//load image through image ID
var loadedImage = ee.Image("JAXA/ALOS/AW3D30/V2_2");
print("loadedImage:",loadedImage)
(2) 方法 2: ImageCollection を使用する
//load image through ImageCollection
var first = ee.ImageCollection("COPERNICUS/S2_SR")
.filterBounds(ee.Geometry.Point(-70.48,43.3631))
.filterDate("2019-01-01","2019-12-31")
.sort("CLOUDY_PIXEL_PERCENTAGE")
.first();
Map.centerObject(first,11);
Map.addLayer(first,{bands:["B4","B3","B2"],min:0,max:2000},"first")
print("first",first);
(3) 方法 3: 自分で作成する
//Create a constant image.
var image1 = ee.Image(1);
print(image1);
Map.addLayer(image1,null,"image1")
//Concatenate two images into one multi-band image.
var image2 = ee.Image(2);
var image3 = ee.Image.cat([image1,image2])
print("image3",image3)
var imgTotal = ee.Image(1);
for(var num=2;num<11;num++){
var tmpImage = ee.Image(num)
var imgTotal = ee.Image.cat([imgTotal,tmpImage])
}
print("imgTotal",imgTotal);
3.2 画像の読み込み
// Load an image.
var image = ee.Image('LANDSAT/LC08/C01/T1_TOA/LC08_044034_20140318');
// Define the visualization parameters.
var vizParams = {
bands: ['B4', 'B3', 'B2'],
min: 0,
max: 0.5,
gamma: [0.95, 1.1, 1]
};
// Center the map and display the image.
Map.setCenter(-122.1899, 37.5010, 10); // San Francisco Bay
Map.addLayer(image, vizParams, 'false color composite&