Input examples of m_map toolbox but image is not clear
조회 수: 7 (최근 30일)
이전 댓글 표시
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
답변 (1개)
Arnav
2024년 11월 29일
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
참고 항목
카테고리
Help Center 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!