How to plot values of respective longitude and latitude coordinates with M_maps package?

4 次查看(过去 30 天)
Hello everybody,
I am currently trying to plot some simple values onto their respective lon/lat coordinates, for a global (hammer aitoff) projection. So far I've been using M_scatter, but I run into some problems when going too much north / south, because the lon/lat values get too close to each other due to the curvature of the Earth, and the "bubbles" of the scatterplot begin overlapping.
I am working with 3 vectors, the first 2 are latitude and longitude vectors (data(:,1) & data(:,2)) of size 64800 (180x360 coordinates) each, and the third vector is the vector containing the data values data(:,3), also of size 64800. So, so far I've been trying to plot it like this:
m_scatter(data(:,1),data(:,2),100,data(:,3))
and then some m_grid, etc. on top of it.
Is there a way to plot these values, with this projection, without facing this problem and being dependant on the bubblesize of the scatter plot? I tried looking at m_pcolor with an interpolation, but this is wrong because I will end up oversampling my signal.
Sincerely, Jonathan Gundorph

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Geographic Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by