フィルターのクリア

plotting world map contour onto spatial data plot with different (long, lat)

3 ビュー (過去 30 日間)
Katarzyna
Katarzyna 2014 年 11 月 28 日
回答済み: Chad Greene 2015 年 2 月 9 日
I have a spatial data file of size(192 96), and latitude and longitude vectors that correspond to that data file.
For the latitude vector, numbers range from -88.5722 to 88.5722 in increments of 1.8496; size(latitude)= (96 1).
For the longitude vector, numbers range from 0 to 358.1250 in increments of of 1.8750; size(longitude)= (192 1).
I was wondering how to plot the contours of the world map (such as topo.map) using the latitudes and longitudes from my data file (so that the world map contour will be on the same axis as the spatial data plot).

回答 (1 件)

Chad Greene
Chad Greene 2015 年 2 月 9 日
Assuming you have the Mapping Toolbox,
worldmap('world') % initializes map
contourm(lat,lon,z) % plots contours
c = load('coast.mat'); % loads coastlines
plotm(c.lat,c.long) % plots coastlines

カテゴリ

Help Center および File ExchangeLighting, Transparency, and Shading についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by