How can plot precipitation data with latitude longitude information? I have matrix of precipitation over the time,latitude and longitude all are in 470*160*140 dimensions.
조회 수: 2 (최근 30일)
이전 댓글 표시
How can plot precipitation data with latitude longitude information? I have matrix of precipitation over the time,latitude and longitude all are in 470*160*140 dimensions.
Thank you in advance!
댓글 수: 0
채택된 답변
KSSV
2020년 10월 18일
Let lon, lat, P be your matrices of size 470*160*140.
[m,n,p] = size(P) ;
for i = 1:p
pcolor(lon(:,:,i),lat(:,:,i),P(:,:,i)) ;
shading interp
colorbar
drawnow
end
You can also use surf, contour, countourf.
댓글 수: 5
KSSV
2020년 10월 18일
Just try this:
[m,n,p] = size(P) ;
for i = 1:p
pcolor(lon,lat,P(:,:,i)) ;
shading interp
colorbar
drawnow
end
추가 답변 (1개)
Ameer Hamza
2020년 10월 18일
For a specific time-value, the you can use several functions, such as contour(), contourf(), mesh(), surf(), pcolor() to plot the information. For example
M; % 470*160*140 matrix
contourf(squeeze(M(1,:,:))); %
참고 항목
카테고리
Help Center 및 File Exchange에서 Animation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!