Google Earth Engine(GEE)——创建、添加多波段影像和合成
【摘要】
In addition to loading images by ID, you can also create images from constants, lists or other suitable Earth Engine objects. The following illustrates methods for creat...
In addition to loading images by ID, you can also create images from constants, lists or other suitable Earth Engine objects. The following illustrates methods for creating images, getting band subsets, and manipulating bands:
如果你不想通过id导入影像,那么你也可以通过创建目录、列表或者其他能让GEE识别的对象来获取,今天的案例就是通过创造影像获取波段获取波段子集和操作波段的方法:
代码:
-
// 创建一个影像目录
-
var image1 = ee.Image(1);
-
print(image1);
-
-
// 将两个影像融入称为一个多波段影像这里用到了cat合并
-
//第二个影像是将影像创建了两个波段
-
//打印出来的影像就是三个波段
-
var image2 = ee.Image(2);
-
var image3 = ee.Image.cat([image1, image2]);
-
print(image3);
-
-
// 创建一个多波段影像,这里就是
-
var multiband = ee.Image([1, 2, 3]);
-
print(multiband);
-
-
// 给多波段影像重新命名,相当于是先给原来波段['
文章来源: blog.csdn.net,作者:此星光明2021年博客之星云计算Top3,版权归原作者所有,如需转载,请联系作者。
原文链接:blog.csdn.net/qq_31988139/article/details/119547117
【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)