My geotiffinfo command is not working suddenly. How to correct the error?

조회 수: 7 (최근 30일)
I was using the "geotiffinfo" command to read the lat and lon of a geotiff file. It was working well till last night but suddenly it is giving an error. How to rectify it? The error is like this:
info=geotiffinfo("E:\MODIS 8 Day GPP Data\MODISp05File.tif"); % 0.05 degrees resolution
Error using tifflib
Unable to open TIFF file "E:\MODIS 8 Day GPP Data\MODISp05File.tif".
Error in Tiff (line 660)
obj.FileID = tifflib('open',filename,mode);
Error in geotiffinfo>tiffinfo (line 305)
t = Tiff(filename);
Error in geotiffinfo>readinfo (line 271)
tiff_info = tiffinfo(filename);
Error in geotiffinfo (line 258)
info = readinfo(filename);
  댓글 수: 2
Walter Roberson
Walter Roberson 2022년 5월 15일
First check whether the file exists.
Second, check whether the file is busy, held open in some program.
Third, check to see whether the file is readable in other programs, see if it is corrupt.
Abhishek Chakraborty
Abhishek Chakraborty 2022년 5월 15일
Thanks, it worked. I just restarted the computer and the same code started working suddenly.

댓글을 달려면 로그인하십시오.

답변 (0개)

제품


릴리스

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by