フィルターのクリア

How to better plot flood map/ flood depth in MATLAB?

3 ビュー (過去 30 日間)
Raihan
Raihan 2024 年 3 月 27 日
回答済み: Taylor 2024 年 3 月 28 日
Hi, I am trying to plot a map showing the flood depth. I am using geoscatter to plot it, but it doesn't look as good. The figure isn't smooth and you can see the dots/markers of the plot. Is there any way to have a better plot that's smoother? I have attached an example code below too.
cMap = interp1([0;1],[0 1 0; 1 0 0],linspace(0,1,256));
cMap = cMap(85:end, :);
fh = figure(Name = files(i).name, Visible="off");
fig = geoscatter(reshaped_lat_1, reshaped_lon_1, [], reshaped_depth, 'filled', 'SizeData',0.75);
% Plot the flood depth using the code above
geolimits([23.6469707489014 25.2043075561525],[90.4624176025393 92.5047302246097]);
geobasemap('topographic');
colormap(cMap);
colorbar;
%saveas(fig, destination{1})
exportgraphics(fh, destination{1}, 'Resolution', 350)
  2 件のコメント
Dyuman Joshi
Dyuman Joshi 2024 年 3 月 27 日
We can't run your code as there are undefined parameters in it.
Raihan
Raihan 2024 年 3 月 27 日
編集済み: Raihan 2024 年 3 月 27 日
I have modified the code now. unfortunately i cannot shared the files due to work reason but here's the descripion of the variabiles:
reshaped_lat_1 is the latitude reshaped
reshaped_lon_1 is the longitude
reshaped_depth is the depth of the flood
I basically just want to know what other matlab function that i could use to plot this.

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

回答 (1 件)

Taylor
Taylor 2024 年 3 月 28 日
geodensityplot sounds like a good candidate here. This example show show to implement it.

カテゴリ

Help Center および File ExchangeGeographic Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by