フィルターのクリア

plot matrix of grid data with lat and lon

3 ビュー (過去 30 日間)
Shakir Hussain
Shakir Hussain 2018 年 10 月 11 日
編集済み: Shakir Hussain 2018 年 10 月 12 日
We can plot the grid with lat long by different ways e.g map/geoshow, contour, image e.t.c but how we can make matrix of such plot.
I have 860*952*14 data and want to make matrix plot via mapshow, could anyone here help me? The attached map may give some relevant idea Thank you in advance

採用された回答

KSSV
KSSV 2018 年 10 月 11 日
Let lon and lat be your spatial data. Let A be your 860*952*14 matrix.
for i = 1:14
pcolor(lon,lat,A(:,:,i)') ;
shading interp ; colorbar
drawnow
end
If you have shape files of the boundaries, you can plot them too.
  2 件のコメント
Shakir Hussain
Shakir Hussain 2018 年 10 月 12 日
編集済み: Shakir Hussain 2018 年 10 月 12 日
Thank you KSSV It worked well, I want to make matrix plot rather than overlapping plot.More over how we can add shapfiles of outer and inner boundaries, could we also apply some sattistics e.g mean, difference e.t.c
Edit; I mean to matrix plot is smilier to attached one, the above code overlay the plot over each other. e.g
for i = 1:14
subplot(4,4,i);
pcolor(lon,lat,A(:,:,i)') ;
shading interp ; colorbar
drawnow
end
#Here I want to display XY lable only one extreme left and down corner.
How we can add shapfile here?
KSSV
KSSV 2018 年 10 月 12 日
make matrix plot rather than overlapping plot. The above code makes matrix plot only.
how we can add shapfiles of outer and inner boundaries If you have shape files, read them using shaperead and plot.
could we also apply some sattistics e.g mean, difference e.t.c Very much you can apply.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by