当前位置:网站首页>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 !!
边栏推荐
- Some introduction and precautions about XML
- Is there a free text to speech tool to help recommend?
- [flutter] icons component (load the built-in icon of flutter | display the material design icon completely)
- Thank you for being together for these extraordinary two years!
- 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
- Callback event after the antv X6 node is dragged onto the canvas (stepping on a big hole record)
- Hdu3507 (slope DP entry)
- 12_微信小程序之微信视频号滚动自动播放视频效果实现
- Infrared thermography temperature detection system based on arm rk3568
- Nacos+openfeign error reporting solution
猜你喜欢

Rust string slicing, structs, and enumeration classes

Thank you for being together for these extraordinary two years!
![[AUTOSAR nine c/s principle Architecture]](/img/59/ce32c0ff58ef5d8385fe950136175b.png)
[AUTOSAR nine c/s principle Architecture]

Key detection and sinusoidal signal output developed by Arduino

The difference between tail -f, tail -f and tail

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

【AutoSAR 二 AppL概述】

Basic use of sringcloud & use of component Nacos

Kubernetes resource object introduction and common commands (V) - (NFS & PV & PVC)

How SQLSEVER removes data with duplicate IDS
随机推荐
Thread start and priority
[AUTOSAR 11 communication related mechanism]
Vulkan-性能及精细化
Illustrated network: what is virtual router redundancy protocol VRRP?
MySQL multi table joint deletion
[AUTOSAR twelve mode management]
这不平凡的两年,感谢我们一直在一起!
Rk3568 development board evaluation (II): development environment construction
【AutoSAR 十三 NVM】
机器学习:numpy版本线性回归预测波士顿房价
Nacos+openfeign error reporting solution
Rust string slicing, structs, and enumeration classes
【AutoSAR 五 方法论】
leetcode-224:基本计算器
First hand evaluation of Reza electronics rz/g2l development board
Vulkan is not a "panacea"“
Attributeerror: 'tuple' object has no attribute 'layer' problem solving
瑞萨RZ/G2L 处理器简介|框架图|功耗|原理图及硬件设计指南
利亚德:Micro LED 产品消费端首先针对 100 英寸以上电视,现阶段进入更小尺寸还有难度
Array and collection performance comparison