How can I get the sea ice concentration data corresponding to the latitude and longitude from the geotiff file?

조회 수: 1 (최근 30일)
Hello,
I got daily sea ice concentration data from https://nsidc.org/data/G02135/versions/3(please see attachment), but the file is in geotiff format, and I don’t know about geotiff format. I don't know how to get sea ice concentration data corresponding to longitude and latitude from geotiff?
Hope to get your help! Thank you very much!
Bei.

채택된 답변

KSSV
KSSV 2021년 10월 18일
filename = 'N_20180101_concentration_v3.0.tif' ;
[A,R] = readgeoraster(filename) ; % If not try geotiffread
[m,n] = size(A) ;
x = linspace(R.XWorldLimits(1),R.XIntrinsicLimits(2),n) ;
y = linspace(R.YWorldLimits(1),R.YIntrinsicLimits(2),m) ;
[X,Y] = meshgrid(x,y) ;
figure(1)
mapshow(A,R)
figure(2)
pcolor(X,Y,A);
shading interp ;
  댓글 수: 6
Bei JIANG
Bei JIANG 2021년 10월 18일
Now I know the projection is “NSIDC Polar Stereographic Projection", and I also know this link provided transformations to geographic coordinates from map coordinates: polar stereographic coordinate transformation (map to lat/lon) - File Exchange - MATLAB Central (mathworks.cn)
However, I dont konw if the X,Y in this command (below) is the XY you provided me in [X,Y] = meshgrid(x,y)?[LAT,LON]=POLARSTEREO_INV(X,Y,EARTHRADIUS,ECCENTRICITY,LAT_TRUE,LON_POSY)
I look forward to hearing from you very much, it is very important to me. Thank you very much !
Bei JIANG
Bei JIANG 2021년 10월 19일
There are two lines wrong in your answer, corrected as follows :
filename = 'N_20180101_concentration_v3.0.tif' ;
[A,R] = readgeoraster(filename) ; % If not try geotiffread
[m,n] = size(A) ;
x = linspace(R.XWorldLimits(1),R.XWorldLimits(2),n) ;
y = linspace(R.YWorldLimits(1),R.YWorldLimits(2),m) ;
[X,Y] = meshgrid(x,y) ;
figure(1)
mapshow(A,R)
figure(2)
pcolor(X,Y,A);
shading interp ;

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Geographic Plots에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by