当前位置:网站首页>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 !!
边栏推荐
- [shutter] image component (cached_network_image network image caching plug-in)
- 【AutoSAR 十二 模式管理】
- How to systematically learn machine learning
- [introduction to AUTOSAR seven tool chain]
- 1038 Recover the Smallest Number
- Problèmes de configuration lex & yacc & Bison & Flex
- Leetcode-2115: find all the dishes that can be made from the given raw materials
- Understanding and distinguishing of some noun concepts in adjustment / filtering
- 【AutoSAR 九 C/S原理架构】
- [AUTOSAR XIII NVM]
猜你喜欢

File operation io-part2

Hdu3507 (slope DP entry)
![[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)
![[AUTOSAR XIII NVM]](/img/38/805ab70f199e2cfad4d9dae0e2c1ff.png)
[AUTOSAR XIII NVM]
![[applet project development -- JD mall] user defined search component of uni app (middle) -- search suggestions](/img/ea/ee1ad50a497478b9d080bb5e4bdfb5.png)
[applet project development -- JD mall] user defined search component of uni app (middle) -- search suggestions

antv x6节点拖拽到画布上后的回调事件(踩大坑记录)

12_微信小程序之微信视频号滚动自动播放视频效果实现

Sentry developer contribution Guide - configure pycharm

Is there a free text to speech tool to help recommend?

【AutoSAR 九 C/S原理架构】
随机推荐
cordova-plugin-device获取设备信息插件导致华为审核不通过
Meaning of Tencent cloud free SSL certificate extension file
[daily training] 871 Minimum refueling times
How to systematically learn machine learning
递归处理组织的几种情况
How SQLSEVER removes data with duplicate IDS
About qbytearray storage hexadecimal and hexadecimal conversion
Nacos+openfeign error reporting solution
Arduino开发之按键检测与正弦信号输出
【案例分享】让新时代教育发展与“数”俱进
leetcode-934:最短的桥
leetcode-849:到最近的人的最大距离
Win10 多种方式解决无法安装.Net3.5的问题
瑞萨RZ/G2L 处理器简介|框架图|功耗|原理图及硬件设计指南
The difference between tail -f, tail -f and tail
mysql 多表联合删除
【AutoSAR 一 概述】
研发一款国产ARM智能边缘计算网关需要什么
[shutter] image component (configure local GIF image resources | load placeholder with local resources)
Vulkan practice first bullet