extract data and lat/lon for tif file in matlab

조회 수: 12 (최근 30일)
Seyedeh Fardis
Seyedeh Fardis 2023년 11월 5일
답변: Udit06 2023년 11월 16일
I have attached tif file and I want to extract lat/lon and its coordinate data in matlab. Note that the matlab version I am using is R2020a. Could someone please help me with that?
  댓글 수: 2
Seyedeh Fardis
Seyedeh Fardis 2023년 11월 5일
This is a different tif file that contains data as well. I know how to extract lat and lon but not the data.

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

답변 (1개)

Udit06
Udit06 2023년 11월 16일
Hi Seyedeh,
I understand that you want to extract the data stored in .tif file using MATLAB and you already know how to extract the latitude and longitude. If you want to extract the spatial referencing information for the file along with the actual data stored in the .tif file, you can use "readgeoraster" function otherwise you can simply read the data stored using the "imread" function.
You can refer to the following MathWorks documentation to understand more about "readgeoraster" and "imread" functions respectively.
I hope this helps.

카테고리

Help CenterFile Exchange에서 Image Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by