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

2024-02-01 19:56:43 浏览数 (1)

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)

0 人点赞