Input examples of m_map toolbox but image is not clear
8 views (last 30 days)
Show older comments
m_proj('lambert','lon',[-10 20],'lat',[33 48]);
[CS,CH]=m_etopo2('contourf',[-5000:500:0 250:250:3000],'edgecolor','none');
m_grid('linestyle','none','tickdir','out','linewidth',3);
colormap([ m_colmap('blues',80); m_colmap('gland',48)]);
brighten(.5);
ax=m_contfbar(1,[.5 .8],CS,CH);
title(ax,{'Level/m',''}); % Move up by inserting a blank line
Input the code in Matlab and the picture is serrate.

But the example in https://www.eoas.ubc.ca/~rich/map.html#7._Lambert_Conformal_Projection_with_Med is

If someone have any ideas to look at. Thank You!
0 Comments
Answers (1)
Arnav
on 29 Nov 2024
I was able to reproduce the issue you mentioned after installing the m_map toolbox. This might be due to the m_etopo2 function using a default dataset as indicated by this warning i encountered:
Warning: Cannot open /ocean/rich/more/mmapbase/etopo1/etopo2 !! \n Have you installed the Etopo2
database correctly?\n This (optional) database must be installed separately - see the M_Map user's
guide for instructions\n ----Using default elevation database instead
> In m_etopo2 (line 94)
In EEB551_LAB2 (line 2)
You can try installing the Etopo2 database to see if it resolves the low resolution image.
0 Comments
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!