前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >GEE(Google Earth Engine)投影的使用方法和分辨率的确定

GEE(Google Earth Engine)投影的使用方法和分辨率的确定

作者头像
此星光明
发布2024-02-01 19:56:43
1530
发布2024-02-01 19:56:43
举报

projection()

Returns the default projection of an Image. Throws an error if the bands of the image don't all have the same projection.

代码语言:javascript
复制
返回图像的默认投影。如果图像的条带不都具有相同的投影,则会引发错误。
Arguments:

this:image (Image):

The image from which to get the projection.

Returns: Projection

这是我通过打印获得到当前影像投影

crs:EPSG:32610这个就代表坐标系,具体参数可以去百度就能知道名称

 第二个要介绍的:

nominalScale()

Returns the linear scale in meters of the units of this projection, as measured at the point of true scale.这个就是告诉你他的名义分辨率是多少,也就是影像的分辨率这里Landsat8是30米

Arguments:

this:proj (Projection)

Returns: Float

第三个方法:

bandNames()

Returns a list containing the names of the bands of an image.

代码语言:javascript
复制
返回一个包含图像波段名称的列表。
Arguments:

this:image (Image):

The image from which to get band names.

Returns: List

代码:

代码语言:javascript
复制
var image = ee.Image('LANDSAT/LC8_L1T/LC80440342014077LGN00')
  .select(['B2', 'B3', 'B4', 'B5', 'B6', 'B7', 'B10', 'B11']);
var scale = image.projection().nominalScale();
var bandNames = image.bandNames();
print("scale",scale)
print("bandNames",bandNames)
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2024-02-01,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Arguments:
  • Returns: Projection
  • Arguments:
  • Returns: Float
  • Arguments:
  • Returns: List
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档