当前位置:网站首页>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()})
})
上面这个函数我们就可以通过影像获取时间,然后返回值给到影像,然后后续这个集合中就有了影像的时间,这里就可以实现后续长时序影像的分析做出相应的折线图即可。
边栏推荐
- C language game - minesweeper
- 【Untitled】
- Custom Types - Enums, Unions
- AC与瘦AP的WLAN组网实验
- SQL Server database schema and objects related knowledge notes
- Go-Excelize API source code reading (8) - GroupSheets(sheets []string), UngroupSheets()
- Shell: Conditional test action
- 三子棋(C语言实现)
- C语言小游戏——扫雷
- Static Pod, Pod Creation Process, Container Resource Limits
猜你喜欢
随机推荐
《时代》杂志:元宇宙时代将改变世界
CTO strongly banning the use of the Calendar, that in what?
Taobao commodity details and details on taobao, senior upgrade version of the API
Detailed explanation of JVM runtime data area and JMM memory model
Leicester Weekly 304 6135. The longest ring in the picture Inward base ring tree
优炫数据库支持Oracle哪几种时间及日期类型
How to query database configuration parameters in GBase 8c, such as datestyle
Three chess (C language implementation)
Intensive reading of ACmix papers, and analysis of its model structure
redis
50.【动态二维数组的运用】
Idea 常用插件
Ogg synchronizes oracle to mysql, there may be characters that need to be escaped in the field, how to configure escape?
Redis middleware (from building to refuse pit)
笔记。。。。
UXDB如何返回当前数据库所有表的记录数?
【应用推荐】常见资源管理器整理,含个人使用体验和产品选型推荐
shell脚本------条件测试 if语句和case分支语句
js中如何实现深拷贝?
ogg同步oracle到mysql,字段里面可能有需要转义的字符,怎么配置转义?