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 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Nurul Ain Basirah Zakaria
le 18 Oct 2020
Commenté : Nurul Ain Basirah Zakaria
le 18 Oct 2020
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 commentaires
Réponse acceptée
KSSV
le 18 Oct 2020
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 commentaires
KSSV
le 18 Oct 2020
Just try this:
[m,n,p] = size(P) ;
for i = 1:p
pcolor(lon,lat,P(:,:,i)) ;
shading interp
colorbar
drawnow
end
Plus de réponses (1)
Ameer Hamza
le 18 Oct 2020
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,:,:))); %
Voir également
Catégories
En savoir plus sur Surface and Mesh Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!