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的像素是网格,在
  • 3
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

此星光明

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值