当前位置:网站首页>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 !!
边栏推荐
- Callback event after the antv X6 node is dragged onto the canvas (stepping on a big hole record)
- How SQLSEVER removes data with duplicate IDS
- Advanced pointer (I)
- Attributeerror: 'tuple' object has no attribute 'layer' problem solving
- 【小程序项目开发-- 京东商城】uni-app之自定义搜索组件(中)-- 搜索建议
- How to convert Quanzhi a40i/t3 to can through SPI
- 2022.2.14 resumption
- Liad: the consumer end of micro LED products is first targeted at TVs above 100 inches. At this stage, it is still difficult to enter a smaller size
- Machine learning: numpy version linear regression predicts Boston house prices
- 1038 Recover the Smallest Number
猜你喜欢
Win10 多种方式解决无法安装.Net3.5的问题
(C语言)数据的存储
RISA rz/g2l processor introduction | frame diagram | power consumption | schematic diagram and hardware design guide
[applet project development -- JD mall] user defined search component of uni app (middle) -- search suggestions
【AutoSAR 六 描述文件】
How to systematically learn machine learning
【AutoSAR 八 OS】
1.12 - Instructions
The difference between tail -f, tail -f and tail
matlab将数字矩阵保存为地理空间数据出错,显示下标索引必须为正整数类型或逻辑类型,解决
随机推荐
Array common operation methods sorting (including ES6) and detailed use
【AutoSAR 十一 通信相关机制】
Set up nacos2 X cluster steps and problems encountered
【C语言】分支和循环语句(上)
[AUTOSAR I overview]
Advanced pointer (I)
Vulkan-实践第一弹
Attributeerror: 'tuple' object has no attribute 'layer' problem solving
数组与集合性能比较
研发一款国产ARM智能边缘计算网关需要什么
Initial order of pointer (basic)
2022 list of manufacturers of Chinese 3D vision enterprises (guided positioning and sorting scenes)
How to find out the currently running version of Solr- How do I find out version of currently running Solr?
kubernetes资源对象介绍及常用命令(五)-(NFS&PV&PVC)
Leetcode-2280: represents the minimum number of line segments of a line graph
【AutoSAR 四 BSW概述】
解决ReactNative使用webView存在缓存问题
[AUTOSAR 11 communication related mechanism]
Lex & yacc & bison & flex configuration problems
Foundations of data science is free to download