plotting data with m_map Interrupted Mollweide Projection

5 vues (au cours des 30 derniers jours)
Chris ODonnell
Chris ODonnell le 26 Juin 2012
Hi, I want to plot some global data using an Interrupted Mollweide Projection (M-Map)
I can produce a nice example from the helpfiles......
Slongs=[-100 43;-75 20; 20 145;43 100;145 295;100 295];
Slats= [ 0 90;-90 0;-90 0; 0 90;-90 0; 0 90];
for l=1:6,
m_proj('mollweide','long',Slongs(l,:),'lat',Slats(l,:));
m_grid('fontsize',6,'xticklabels',[],'xtick',[-180:30:360],...
'ytick',[-80:20:80],'yticklabels',[],'linest','-','color','k');
m_coast('patch',[.6 .6 .6]);
end;
xlabel('Interrupted Mollweide Projection of World Oceans');
set(gca,'xlimmode','auto','ylimmode','auto');
... but I dont know how to plot data on this projection, for example:
lats= -89:90;
longs= -180:179;
q=randi(10,180,360);
How do I get the data (q) to display on this projection??
Thanks in advance...

Réponses (0)

Catégories

En savoir plus sur Oceanography and Hydrology dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by