当前位置:网站首页>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()})
})上面这个函数我们就可以通过影像获取时间,然后返回值给到影像,然后后续这个集合中就有了影像的时间,这里就可以实现后续长时序影像的分析做出相应的折线图即可。
边栏推荐
- Enterprise WeChat group: robot timing reminder function database configuration
- TiDB的真实数据库数据是存在kv和还是pd上?
- sql server, FULL mode, dbcc shrinkfile(2,1) can not shrink the transaction log, or the original size, why?
- YOLOv7-Pose尝鲜,基于YOLOv7的关键点模型测评
- Intensive reading of ACmix papers, and analysis of its model structure
- Custom Types - Enums, Unions
- [Dataset] Dataset summary of various insulators, bird's nests and anti-vibration hammers
- Redis中间件(从搭建到弃坑)
- notes....
- Lsky Pro 企业版手动升级、优化教程
猜你喜欢
随机推荐
How to get page data
C语言小游戏——扫雷
UXDB如何返回当前数据库所有表的记录数?
杨辉三角(c语言实现)
杰理AD14N/AD15N---串口中断问题
MySQL 必现之死锁
记一次 .NET 某智慧物流WCS系统CPU爆高分析
WLAN networking experiment of AC and thin AP
Message queue interview latest finishing (2022)
解决new Thread().Start导致高并发CPU 100%的问题
Intensive reading of ACmix papers, and analysis of its model structure
js中如何实现深拷贝?
ASP.NET Core 6 Framework Revealing Instance Demonstration [30]: Develop REST API with Routing
18张图,直观理解神经网络、流形和拓扑
Lsky Pro 企业版手动升级、优化教程
SkiaSharp 之 WPF 自绘 五环弹动球(案例版)
在GBase 8c数据库后台,使用什么样的命令来对gtm、dn节点进行主备切换的操作
Get the Token from the revised version of Qubutu Bed
【Untitled】
Ogg synchronizes oracle to mysql, there may be characters that need to be escaped in the field, how to configure escape?









