フィルターのクリア

How to plot the coastline on a map ?

135 ビュー (過去 30 日間)
Vidz
Vidz 2019 年 7 月 26 日
コメント済み: Carlo Grillenzoni 2023 年 8 月 14 日
Hi,
I am trying to plot tasmania coastline on a map. I am trying to plot variable ctt with lonxlat in southern hemisphere.
I have been doing this:
pcolor(lon, lat, ctt);hold on
shading flat
load coastlines
axesm('eqaconic','MapLatLimit',[-57 -43],'MapLonLimit',[130 160])
plotm(coastlat,coastlon)
However, this is not working. I want to show the coastline with map on top.
Thanks.
  1 件のコメント
Yuehua Li
Yuehua Li 2019 年 9 月 26 日
Try 'plot(coastlat,coastlon)' instead of plotm.

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

回答 (1 件)

MathWorks Support Team
MathWorks Support Team 2023 年 7 月 11 日
To plot the coastlines, the map needs to be created first. This can be done by calling axesm first, and then plotting using pcolorm and geoshow:
load coastlines
axesm("eqaconic","MapLatLimit",[-57 -43],"MapLonLimit",[130 160])
pcolorm(lat,lon,ctt)
geoshow(coastlat,coastlon)
Alternatively, the array ‘ctt’ can be plotted using geoshow instead of pcolorm:
geoshow(lat,lon,ctt,"DisplayType","surface")
  1 件のコメント
Carlo Grillenzoni
Carlo Grillenzoni 2023 年 8 月 14 日
ok, is it possible to improve the spatial resolution of the Coastlines data base ?

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

タグ

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by