当前位置:网站首页>Google Earth engine (GEE) -- converts string to number and applies it to time search (ee.date.fromymd)
Google Earth engine (GEE) -- converts string to number and applies it to time search (ee.date.fromymd)
2022-06-30 13:59:00 【This star is bright】
I wrote an article about how to convert strings into time , But there is no mention of applications , This time, , When we want to use the information provided in a string , When used for cutting , We can effectively convert strings to numeric types .
problem :
Date (Error)
Number.int8, argument 'input': Invalid type. Expected type: Number. Actual type: String. Actual value: 1

Original code :
var string1 = ee.String('daymet_11_20150101');
print('26 firstring', string1);
var yearstr = ee.Number(string1.slice(10,14));
print('29 year', yearstr);
var monthstr = ee.Number(string1.slice(14,16));
print('32 month', monthstr);
var daystr = ee.Number(string1.slice(16,18));
print('35 day', daystr);
var hrstr = string1.slice(7,9);
print('38边栏推荐
- How does MySQL merge columns?
- How can I protect my private key?
- Basic syntax of unity script (3) - accessing game object components
- Knowledge dissemination cannot replace professional learning!
- Today's sleep quality record 80 points
- 知识传播不能取代专业学习!
- Lucky hash quiz system development (source code deployment) fun investment hash game play development (case requirements)
- 正则系列之断言Assertions
- 提权扫描工具
- Rk356x u-boot Institute (command section) 3.3 env related command usage
猜你喜欢

【刷题篇】爱吃香蕉的珂珂
![[Title brushing] heater](/img/ee/70e122b1b1a406624aa7c6442fcdc1.png)
[Title brushing] heater

visualstudio 和sql

提权扫描工具

Jetpack Compose 实现完美屏幕适配
![[deep anatomy of C language] storage principle of float variable in memory & comparison between pointer variable and](/img/3d/5d7fafba4ff7903afbd51d6d58dcdf.png)
[deep anatomy of C language] storage principle of float variable in memory & comparison between pointer variable and "zero value"

Apache Doris Compaction優化百科全書

一篇文章读懂关于企业IM的所有知识点

Read all the knowledge points about enterprise im in one article

VisualStudio and SQL
随机推荐
MySQL如何将列合并?
知识传播不能取代专业学习!
STM32 porting the fish component of RT thread Standard Edition
【刷题篇】供暖器
Tencent two sides: @bean and @component are used on the same class. What happens?
Clearing TinyMCE rich text cache in elementui
Basic syntax of unity script (1) - common operations of game objects
半导体动态杂谈
表格储存中sql查询的时候,查询结果增加主键报错,查询结果超过10w行。需要对主键增加上多元索引吗?
我如何才能保护我的私钥?
golang模板(text/template)
用Unity实现Flat Shading
SQL考勤统计月报表
numpy 创建空数组 data = np.empty(shape=[1, 64,64,3])
Lucky hash quiz system development (source code deployment) fun investment hash game play development (case requirements)
What network security problems are exposed when a large-scale QQ number theft event occurs?
[scientific research data processing] [practice] frequency analysis chart of category variables, distribution chart of numerical variables and normality test (including lognormal)
[kubernetes series] k8s set mysql8 case insensitive
提权扫描工具
随着产业互联网的发展,有关互联网的落地和应用也就变得宽阔了起来