画像の出力 メモ

画像

Image.getThumbURL(params, callback)

Image 型のメソッド.

// ex.1
params1 = {
 region: geom, // ee.Geometry
 scale: 300,
 format: 'png'
}
print(img.getThumbURL(params1));

// ex.2
params2 = {
  region: geom, // ee.Geometry
  dimensions: '600x600',
  format: 'png',
}
print(img.getThumbURL(params2));


動画

ImageCollection.getVideoThumbURL(params, callback)

ImageCollection 型のメソッド. gif を生成してその URL が戻り値.
print で URL が Console に出てくる.

// Define GIF visualization parameters.
var gifParams = {
  'region': geom,
  'dimensions': 450,
  'crs': 'EPSG:3857',
  'framesPerSecond': 10,
};

// Print the GIF URL to the console.
print(visualizedCollection.getVideoThumbURL(gifParams));


Export.video.toDrive

avi ファイルで動画にするとき.

Export.video.toDrive({
 collection: visualizedCollection, // ImageCollection
 description: 'exported_video',
 scale: 10000,    // Resolution in meters per pixel. Defaults to 1000.
 dimensions: 720,
 framesPerSecond: 5,
 region: geom, // ee.Geometry
});

Tasks に生成された動画が出てくる.そこから選択すると Google Drive に avi が保存される.


Front page   Edit Diff Attach Copy Rename Reload   New List of pages Search Recent changes   Help   RSS of recent changes
Last-modified: 2022-07-13 (Wed) 04:28:25 (643d)