フィルターのクリア

How plot lat/long map using a .grd file?

9 ビュー (過去 30 日間)
Guilherme Weber Sampaio de Melo
Guilherme Weber Sampaio de Melo 2023 年 11 月 22 日
コメント済み: Dyuman Joshi 2023 年 11 月 22 日
Hello Is there some method to play a lat/long map from a grd file (with x,y,z information)? It would be a bathymetric map. I have a grd referent to the bathy and onother one of the slope. I use GMT package commonly. But it is separated of MATLAB. Then, I would like to do some automatization to plot on MATLAB after some data process done on my code. I am grateful for any example.
  3 件のコメント
Guilherme Weber Sampaio de Melo
Guilherme Weber Sampaio de Melo 2023 年 11 月 22 日
編集済み: Guilherme Weber Sampaio de Melo 2023 年 11 月 22 日
Hi, ok. I was trying this command:
[X_bathy,Y_bathy, Z_bathy]=grdread2('bathy.grd');
[xLon, yLat] = meshgrid(X_bathy,Y_bathy);
figure()
Z_bathy_elements=numel(Z_bathy);
colororder(parula(Z_bathy_elements));
surf(xLon, yLat, Z_bathy);
view(2);
colormap parula
but all the figure was black color without shows the bathy variation. Do you know why?
Dyuman Joshi
Dyuman Joshi 2023 年 11 月 22 日
No, I do not know yet.
Could you please share the data file? Use the paperclip button to attach.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeMap Display についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by