This time, the latitude and longitude are drawn on GEE. The functions used this time are:
ee.Image.pixelLonLat ()
Creates an image with two bands named 'longitude' and 'latitude', containing the longitude and latitude at each pixel, in degrees.
Creates an image with two bands, named "longitude" and "latitude", containing the longitude and latitude of each pixel in degrees.
No arguments.
Returns: Image
floor()
Computes the largest integer less than or equal to the input.
Calculates the largest integer less than or equal to the input value.
Arguments:
this:value (Image):
The image to which the operation is applied.
Returns: Image
Code:
//使用pixelLonLat()函数绘制每没个1度的经纬线。
var img = ee.Image.pixelLonLat()//.multiply(60.0);
// 获取小数点后的部分,并检查它是否小于一个小数点。这里主要的目的就是换证为零
img = img.subtract(img.floor()).lt(0.05);
//小于delta的像素是网格,在