当前位置:网站首页>Google Earth Engine(GEE)——将字符串的转化为数字并且应用于时间搜索( ee.Date.fromYMD)
Google Earth Engine(GEE)——将字符串的转化为数字并且应用于时间搜索( ee.Date.fromYMD)
2022-06-30 12:57:00 【此星光明】
之前写过一篇关于如何将字符串转化为时间的,但是没有提到应用,这一次,当我们想使用一个字符串中提供的信息,用于切割的时候,我们就可以有效的将字符串转化为数字类型。
问题:
Date (Error)
Number.int8, argument 'input': Invalid type. Expected type: Number. Actual type: String. Actual value: 1

原有代码:
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边栏推荐
- All the abnormal knowledge you want is here
- 商品服务-平台属性
- DNS 解析之家庭网络接入 Public DNS 实战
- Package based on thinkphp5 -tronapi- wave field interface - source code without encryption - can be opened twice - interface document attached - detailed guidance of the author - June 30, 2022 08:45:2
- [the path of system analyst] Chapter V software engineering (software process improvement)
- Basic syntax of unity script (5) - vector
- 深度长文探讨Join运算的简化和提速
- STM32 porting the fish component of RT thread Standard Edition
- 60 个神级 VS Code 插件!!
- [KALI] KALI系统、软件更新(附带镜像源)
猜你喜欢

Assertions of regular series

Apache Doris Compaction优化百科全书

SQL attendance statistics monthly report

【招聘(广州)】成功易(广州).Net Core中高级开发工程师

【刷题篇】供暖器

How can I protect my private key?

【刷题篇】避免洪水泛滥

商品服务-平台属性

The independent station is Web3.0. The national "14th five year plan" requires enterprises to build digital websites!

Resource realization applet opening wechat official small store tutorial
随机推荐
MySQL queries the data within the radius according to the longitude and latitude, and draws a circle to query the database
golang基础 —— 切片和数组的区别
深度长文探讨Join运算的简化和提速
SQL考勤统计月报表
发生QQ大规模盗号事件,暴露出什么网络安全问题?
Inexplicable error occurred in unity's frequent switching branch result model
Kubeedge's core philosophy
get请求与post提交区别的简易理解
一篇文章读懂关于企业IM的所有知识点
Knowledge dissemination cannot replace professional learning!
Package tronapi wave field interface based on thinkphp5 PHP version -- interface document attached -20220627
(8)JMeter元件详解之 Once only Controller 仅一次控制器
Data Lake (11): Iceberg table data organization and query
Basics of golang -- the difference between slicing and array
Waving flags and shouting for basic language
kaniko官方文档 - Build Images In Kubernetes
Basic syntax of unity script (4) - access to other game objects
Lucky hash quiz system development (source code deployment) fun investment hash game play development (case requirements)
损失函数:DIOU loss手写实现
Product manager professional knowledge 50 (7) - how to establish a complete set of user growth system?