当前位置:网站首页>Google Earth Engine——给影像添加一个属性对于单景的时间序列并返回影像
Google Earth Engine——给影像添加一个属性对于单景的时间序列并返回影像
2022-08-01 09:48:00 【此星光明】
这里我们遇到一个问题:
我有一个带有“published_date”作为属性之一的图像集合,我正在尝试根据此属性的 startDate 和 endDate 过滤 IC,而不是 ee.Filter.date 的“system:time_start”属性通常有效上。有没有办法做到这一点?
我曾尝试使用 ee.filter.lte 等,但这当然行不通。
我也想过使用 ee.Date.difference 但这仅适用于单个图像日期,不适用于图像集合,因此在过滤器中没有用。
请问大家对此有什么建议或想法吗? 这里有一个简答的方式,就是我们首先将获取这个波段中的影像时间然后转化成为时间属性,然后让影像的返回值设定系统的时间,然后将时间的的毫秒来进行还原原有的时间序列。
var newCollection = collection.map(function(image){
var date = ee.Date(image.get("publish_date"))
return image.set({"system:time_start":date.millis()})
})上面这个函数我们就可以通过影像获取时间,然后返回值给到影像,然后后续这个集合中就有了影像的时间,这里就可以实现后续长时序影像的分析做出相应的折线图即可。
边栏推荐
- sql server, FULL mode, dbcc shrinkfile(2,1) can not shrink the transaction log, or the original size, why?
- node 格式化时间的传统做法与高级做法(moment)
- Get the Token from the revised version of Qubutu Bed
- sql server, FULL模式, dbcc shrinkfile(2,1) 不能收缩事务日志,还是原来的大小,是为什么?
- Change Servlet project to SSM project
- In the background of the GBase 8c database, what command is used to perform the master-slave switchover operation for the gtm and dn nodes
- 三子棋(C语言实现)
- CTO strongly banning the use of the Calendar, that in what?
- 淘宝商品详情又见淘宝详情,升级高级版 API
- What are the common API security flaws?
猜你喜欢
随机推荐
Dataset之mpg:mpg数据集的简介、下载、使用方法之详细攻略
灵魂发问:MySQL是如何解决幻读的?
Leicester Weekly 304 6135. The longest ring in the picture Inward base ring tree
Comprehensive experiment BGP
SkiaSharp 之 WPF 自绘 五环弹动球(案例版)
How programmers learn open source projects, this article tells you
rpm and yum
ASP.NET Core 6框架揭秘实例演示[30]:利用路由开发REST API
How to implement deep copy in js?
7. SAP ABAP OData 服务如何支持 $orderby (排序)操作
ASP.NET Core 6 Framework Revealing Instance Demonstration [30]: Develop REST API with Routing
sqlserver怎么查询一张表中同人员的交叉日期
【数据集】各类绝缘子、鸟巢及防震锤数据集汇总
笔记。。。。
STM32个人笔记-嵌入式C语言优化
线上问题排查常用命令,总结太全了,建议收藏!!
Introduction to ADAS
Three chess (C language implementation)
Lsky Pro 企业版手动升级、优化教程
Prime Ring Problem






![ASP.NET Core 6框架揭秘实例演示[30]:利用路由开发REST API](/img/b3/0167c22f14b97eb0206696495af7b5.png)


