当前位置:网站首页>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 !!
边栏推荐
- Leetcode-934: the shortest Bridge
- Some introduction and precautions about XML
- Key detection and sinusoidal signal output developed by Arduino
- Shell implements basic file operations (SED edit, awk match)
- Initial order of pointer (basic)
- In the first half of 2022, there are 10 worth seeing, and each sentence can bring you strength!
- Solve the cache problem of reactnative using WebView
- Array common operation methods sorting (including ES6) and detailed use
- 全志A40i/T3如何通过SPI转CAN
- leetcode-871:最低加油次数
猜你喜欢
飞凌搭载TI AM62x的ARM核心板/开发板首发上市,亮相Embedded World 2022
数学建模之线性规划(含MATLAB代码)
leetcode-2280:表示一个折线图的最少线段数
First hand evaluation of Reza electronics rz/g2l development board
研发一款国产ARM智能边缘计算网关需要什么
Advanced pointer (I)
Rk3568 development board evaluation (II): development environment construction
[love crash] neglected details of gibaro
百度智能云牵头打造智能云综合标准化平台
Vulkan-性能及精细化
随机推荐
The arm core board / development board of Feiling equipped with Ti am62x made its debut in embedded world 2022
Lex & yacc & bison & flex configuration problems
12_微信小程序之微信视频号滚动自动播放视频效果实现
Problèmes de configuration lex & yacc & Bison & Flex
[AUTOSAR eight OS]
465. 最优账单平衡 DFS 回溯
leetcode-934:最短的桥
Extension of flutter
【案例分享】让新时代教育发展与“数”俱进
Leetcode-224: basic calculator
Meaning of Tencent cloud free SSL certificate extension file
Vulkan-实践第一弹
MySQL multi table joint deletion
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
【AutoSAR 九 C/S原理架构】
About qbytearray storage hexadecimal and hexadecimal conversion
How to find out the currently running version of Solr- How do I find out version of currently running Solr?
tail -f 、tail -F、tailf的区别
【AutoSAR 一 概述】
[love crash] neglected details of gibaro