Google Earth Engine(GEE)——设置经纬格网(日本东京)

本次是在GEE上画出经纬度,本届用到的函数:

ee.Image.pixelLonLat()

Creates an image with two bands named 'longitude' and 'latitude', containing the longitude and latitude at each pixel, in degrees.

创建一个有两个带子的图像,名为 "经度 "和 "纬度",包含每个像素的经度和纬度,单位是度。

No arguments.

Returns: Image

floor()

Computes the largest integer less than or equal to the input.

计算小于或等于输入值的最大整数。

Arguments:

this:value (Image):

The image to which the operation is applied.应用该操作的图像。

Returns: Image

代码:

//使用pixelLonLat()函数绘制每没个1度的经纬线。
var img = ee.Image.pixelLonLat()//.multiply(60.0);

// 获取小数点后的部分,并检查它是否小于一个小数点。这里主要的目的就是换证为零
img = img.subtract(img.floor()).lt(0.05);

//小于delta的像素是网格,在

猜你喜欢

转载自blog.csdn.net/qq_31988139/article/details/123806975