当前位置:网站首页>Matlab saves the digital matrix as geospatial data, and the display subscript index must be of positive integer type or logical type. Solve the problem
Matlab saves the digital matrix as geospatial data, and the display subscript index must be of positive integer type or logical type. Solve the problem
2022-07-03 00:58:00 【Shrimp he thermal infrared quantitative remote sensing】
matlab Error saving digital matrix as geospatial data , solve !!!
Error is as follows :
Show : Subscript index must be of positive integer type or logical type ( The key is afternoon 6 It can work normally before o'clock , I made a mistake after eating ). I checked my code repeatedly , My matrix size ( The size is 3678×6067), No errors found , I debugged it from beginning to end !! dizzy ... Wasted an hour ,, Then I tried , Write the longitude and latitude directly . The code is posted below , be it so , Make a note of ,!!!!!
1、 Error code ( It has been used before , I don't know where I moved , I've been reporting mistakes all the time )
lon = [96.99102628183385, 102.441105110587];
lat = [26.80715876614666, 30.11116238113826];
data = flipud(emiss_soil_convert_L9);%% Turn north-south
% R = georasterref('RasterSize', size(data1),'Latlim', [double(min(lat)) double(max(lat))], 'Lonlim', [double(min(lon)) double(max(lon))]);
geotiffwrite(['C:\Users\HZW\Desktop\FVC\', 'emiss_soil_convert_L9_new.tif'], data, R);
2、 Code that works ( It seems that nothing has been changed , Is to write the range of longitude and latitude directly , It's ready to run )
data = flipud(emiss_soil_convert_L9);%% Turn north-south
R = georasterref('RasterSize', size(data),'Latlim', [26.80715876614666, 30.11116238113826], 'Lonlim', [96.99102628183385, 102.441105110587]);
geotiffwrite(['C:\Users\HZW\Desktop\FVC\', 'emiss_soil_convert_L9_new.tif'], data, R);
!!!!!!!!!!!!!!
be it so , Students who know what the wrong code is , You can tell me , thank !!
边栏推荐
- Understanding and distinguishing of some noun concepts in adjustment / filtering
- leetcode-241:为运算表达式设计优先级
- [overview of AUTOSAR four BSW]
- 2022 list of manufacturers of Chinese 3D vision enterprises (guided positioning and sorting scenes)
- How to convert Quanzhi a40i/t3 to can through SPI
- 1038 Recover the Smallest Number
- Baidu AI Cloud takes the lead in building a comprehensive and standardized platform for smart cloud
- 瑞萨RZ/G2L 处理器简介|框架图|功耗|原理图及硬件设计指南
- Cordova plugin device obtains the device information plug-in, which causes Huawei to fail the audit
- Foundations of data science is free to download
猜你喜欢

In the first half of 2022, there are 10 worth seeing, and each sentence can bring you strength!

【AutoSAR 七 工具链简介】

AEM: Nanlin fan Ben et al. - plant rhizosphere growth promoting bacteria control soybean blight

Linux Software: how to install redis service

The difference between tail -f, tail -f and tail
![[shutter] image component (the placeholder | transparent_image transparent image plug-in is loaded into the memory)](/img/73/19e2e0fc5ea6f05e34584ba40a452d.jpg)
[shutter] image component (the placeholder | transparent_image transparent image plug-in is loaded into the memory)

Baidu AI Cloud takes the lead in building a comprehensive and standardized platform for smart cloud

matlab将数字矩阵保存为地理空间数据出错,显示下标索引必须为正整数类型或逻辑类型,解决

leetcode-849:到最近的人的最大距离

Illustrated network: what is virtual router redundancy protocol VRRP?
随机推荐
[AUTOSAR + IO Architecture]
Shell implements basic file operations (SED edit, awk match)
(C language) data storage
Vulkan-实践第一弹
飞凌搭载TI AM62x的ARM核心板/开发板首发上市,亮相Embedded World 2022
全志A40i/T3如何通过SPI转CAN
数组与集合性能比较
[Luogu p4320] road meets (round square tree)
线程的启动与优先级
[overview of AUTOSAR three RTE]
Win10 多种方式解决无法安装.Net3.5的问题
Tensorflow 2.x(keras)源码详解之第十五章:迁移学习与微调
The difference between tail -f, tail -f and tail
Rust ownership (very important)
这不平凡的两年,感谢我们一直在一起!
KingbaseES ALTER TABLE 中 USING 子句的用法
[love crash] neglected details of gibaro
[jetcache] jetcache configuration description and annotation attribute description
Unity learns from spaceshooter to record the difference between fixedupdate and update in unity for the second time
Use Jenkins II job