当前位置:网站首页>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 !!
边栏推荐
- Web2.0的巨头纷纷布局VC,Tiger DAO VC或成抵达Web3捷径
- 2022.2.14 resumption
- mysql 多表联合删除
- Lu Zhe, chief scientist of Shiping information: building data and personnel centered security capabilities
- 腾讯云免费SSL证书扩展文件含义
- Baidu AI Cloud takes the lead in building a comprehensive and standardized platform for smart cloud
- Leetcode-871: minimum refueling times
- [shutter] image component (cached_network_image network image caching plug-in)
- 深度剖析数据在内存中的存储
- Tensorflow 2.x(keras)源码详解之第十五章:迁移学习与微调
猜你喜欢
![[flutter] icons component (load the built-in icon of flutter | display the material design icon completely)](/img/f5/3ec22f1480227f33a1c8ac457155ed.jpg)
[flutter] icons component (load the built-in icon of flutter | display the material design icon completely)

Key detection and sinusoidal signal output developed by Arduino

1.12 - 指令

图解网络:什么是虚拟路由器冗余协议 VRRP?
![[introduction to AUTOSAR seven tool chain]](/img/cf/ed0ccf39d38e0b4fc3d97d4fd58a7e.png)
[introduction to AUTOSAR seven tool chain]

Web2.0的巨头纷纷布局VC,Tiger DAO VC或成抵达Web3捷径

Vulkan-性能及精细化

2022 list of manufacturers of Chinese 3D vision enterprises (guided positioning and sorting scenes)

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

【AutoSAR 一 概述】
随机推荐
Baidu AI Cloud takes the lead in building a comprehensive and standardized platform for smart cloud
In the first half of 2022, there are 10 worth seeing, and each sentence can bring you strength!
[flutter] icons component (load the built-in icon of flutter | display the material design icon completely)
Meaning of Tencent cloud free SSL certificate extension file
[AUTOSAR eight OS]
[AUTOSAR twelve mode management]
[jetcache] jetcache configuration description and annotation attribute description
Kubernetes resource object introduction and common commands (V) - (NFS & PV & PVC)
瑞萨电子RZ/G2L开发板上手评测
Understanding and distinguishing of some noun concepts in adjustment / filtering
465. 最优账单平衡 DFS 回溯
Basic use of sringcloud & use of component Nacos
RISA rz/g2l processor introduction | frame diagram | power consumption | schematic diagram and hardware design guide
Leetcode-224: basic calculator
Callback event after the antv X6 node is dragged onto the canvas (stepping on a big hole record)
KingbaseES ALTER TABLE 中 USING 子句的用法
[AUTOSAR five methodology]
Tensorflow 2. Chapter 15 of X (keras) source code explanation: migration learning and fine tuning
图解网络:什么是虚拟路由器冗余协议 VRRP?
[AUTOSAR I overview]