当前位置:网站首页>How Google earth engine realizes the arrangement and selection of our time list
How Google earth engine realizes the arrangement and selection of our time list
2022-07-30 17:11:00 【HUAWEI CLOUD】
The main purpose of this tutorial is to solve our very simple and practical function,The original problem was that this should be simple,But I didn't find a good solution.I want to create a variable that contains the earlier of two dates,But I haven't found a way to compare two dates and extract the earlier date,因为 .min() 或 .first() 不适用于列表.
This article needs to make use of several functions:
ee.Date.fromYMD(year, month, day, timeZone)
Returns a given year、月、日的Date.
参数.
年 (整数)
月 (整数)
day (整数)
timeZone (String, default: null).
时区(例如 "America/Los_Angeles");默认为UTC.
返回.日期
get(unit, timeZone)
Returns the specified unit for this date.
参数.
this:date (Date)
单位(字符串).
年"、"月"(返回1-12)、"周"(1-53)、"日"(1-31)、"小时"(0-23)、"分钟"(0-59)或 "秒"(0-59)之一.
timeZone(字符串,默认为空).
时区(例如:'America/Los_Angeles');默认为UTC.
返回.Long
sort(keys)
Sort the list in ascending order.如果提供了'keys'参数,then it will be sorted first,'list'The elements in will be in the same order.
参数.
this:list (列表).
要排序的列表.
keys (List, default: null):
Optional key value,用于排序.如果提供'keys',它的长度必须与'list'相同.
返回.列表
先看代码:
The overall solution is to merge the lists,Follow after mergingsort进行筛选,You can get a list of time series,And the list is sorted from low to high,So we just have the list merged,You can sort and choose the first one(或第 n 个)索引.If you want to keep the list separate,Then compare and find the relative position between the two lists(小于或大于),就可以了.
Our default list:
Our sorted list:
我们用get获取index,That is the position of the list,get0 It means to get the first parameter in the list:
Here time is expressed in milliseconds.
We can also acquire images in the same way,But you have to get the systemidvalue to load,Or we can use cloud images to filter for loading and so on.
这个公开的github可以查看:GitHub - jdbcode/Snazzy-EE-TS-GIF: Apps for creating Landsat time series animations
(1307条消息) Google earth engine——Display animations onlineui.Thumbnail_此星光明的博客-CSDN博客
往期推荐:
Error: Image.clipToBoundsAndScale, argument 'input': Invalid
Google Earth Engine ——Landsat 5 TOA数据集中的QA_PIXEL和QA_RADSAT波段
Google Earth Engine(GEE)——神级辅助插件(开放地球引擎扩展 (OEEex))
Google Earth Engine——1980-Worldwide so far50m pressure、2 meter temperature、Surface pressure dataset
边栏推荐
- What does a good resume look like in the eyes of a big factory interviewer?
- Go新项目-编译热加载使用和对比,让开发更自由(3)
- 代码越写越乱?那是因为你没用责任链
- 报错500,“message“: “nested exception is org.apache.ibatis.binding.BindingException: 解决记录
- web服务通过用户访问请求判断设备来源
- [NCTF2019]Fake XML cookbook-1|XXE漏洞|XXE信息介绍
- 云厂商做生态需要“真连接、真赋能”,用“技术+真金实银”发展伙伴
- 万华化学精细化工创新产品大会
- Microsoft Office 2019 软件下载安装详细教程!
- 从零开始的Multi-armed Bandit
猜你喜欢

Login Module Debugging - Getting Started with Software Debugging

Error EPERM operation not permitted, mkdir ‘Dsoftwarenodejsnode_cache_cacach两种解决办法

onenote使用

《痞子衡嵌入式半月刊》 第 59 期

疫情之下的裁员浪潮,7点建议帮你斩获心仪offer

Tensorflow中实现正则化

Security business revenue growth rate exceeds 70% 360 builds digital security leader

Win11如何把d盘空间分给c盘?Win11d盘分盘出来给c盘的方法

ERROR 2003 (HY000) Can‘t connect to MySQL server on ‘localhost3306‘ (10061)解决办法

哎,这要人老命的缓存一致问题啊
随机推荐
matlab simulink锂离子电池智能充电策略研究
【AAAI2020】阿里DMR:融合Matching思想的深度排序模型
Promise入门到精通(1.5w字详解)
Summary of String Copy, Concatenation, Comparison and Split Functions (1)
有效的括号字符串[贪心练习]
DTSE Tech Talk丨Phase 2: 1 hour in-depth interpretation of SaaS application system design
C# 跨程序传图(共享内存块传图)跨exe传图
MySQL 8.0.29 解压版安装教程(亲测有效)
PHP留言反馈管理系统源码
对话框 QDialog ( 详解 )
SQLServer下载与安装
基于stm32的shell实现
Google earth engine如何实现我们时间列表的排列和选取
腾讯专家献上技术干货,带你一览腾讯广告召回系统的演进
图注意力机制
What does a good resume look like in the eyes of a big factory interviewer?
优酷视频元素内容召回系统:多级多模态引擎探索
MySQL超详细安装教程 手把手教你安装MySQL到使用MySQL 最简单的MySQL安装方式,这种方式装,卸载也简单
Wanhua chemical fine chemical industry innovation product assembly
JMeter笔记3 | JMeter安装和环境说明


