gshhs matlab,科学网—Matlab: use GSHHS/GSHHG coastline data in M_Map - 刘洋洋的博文

1. Download GSHHS coastline bin data archive with the name starting at gshhg-bin from NOAA (美国国家海洋和大气管理局): http://www.ngdc.noaa.gov/mgg/shorelines/data/gshhg/latest/

2. Uncompress the data archive in the folder /Applications/MATLAB_R2015a.app/toolbox/m_map/private

3. Use it.

e.g.  m_gshhs_i('patch',[.5 .5 .5]);

m_gshhs_f- full resolution;

m_gshhs_h - high resolution;

m_gshhs_i - intermediate resolution;

m_gshhs_l - low resolution;

m_gshhs_c - crude resolution.

26f65033bbd956e0016fcffc4869f628.png

As distributed, GSHHS consists of a hierarchical set ofdatabasesat different resolutions. The lowest or "crude" resolution is not as good as the M_Map database, although it contains many more inland lakes. The"high" resolution consists of points about 200m apart. There is also an even finer "full" resolution. You can install part or all of the database(depending on how much disk space you have available). The "full"resolution occupies 90Mb of disk space, and successively coarserresolutions are smaller by about 1/4. Thus "high" resolution occupies 21Mb, "intermediate" uses 6Mb, and "low" uses 1.1Mb (one reason for notalways using "high" resolutionis that the entire 90Mb database must be read and processed each call,which may take some time).

他人观点:https://wislab.net/archives/384.html

关于图像平滑

MATLAB 绘图时默认启用图像平滑功能,故输出的海岸线会被平滑(抗锯齿)处理。如果需要输出精确海岸线图像,可使用命令 set(gcf,'GraphicsSmoothing','off');关闭平滑功能。

转载本文请联系原作者获取授权,同时请注明本文来自刘洋洋科学网博客。

链接地址:http://blog.sciencenet.cn/blog-3031432-1001318.html

上一篇:Matlab: install M_Map in mac

下一篇:Python: operators

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
MATLAB中,GSHHS(Global Self-consistent, Hierarchical, High-resolution Shorelines)是一个用于绘制地图海岸线的库。默认情况下,MATLAB会启用图像平滑功能来处理输出的海岸线图像。如果需要输出更精确的海岸线图像,可以通过在代码中加入以下命令来关闭平滑功能: set(gcf,'GraphicsSmoothing','off'); 此命令将禁用平滑功能,从而保持海岸线的精确性。 如果在使用MATLAB时遇到无法保存修改m_gshhs文件的问题,可能是因为需要管理员权限。解决方法是将MATLAB重新安装到具有管理员权限的路径中,或者将m_gshhs文件移到具有写入权限的路径中以进行修改。 如果你想使用GSHHS库,你需要将zip文件解压缩到MATLAB安装路径下的toolbox\m_map\private文件夹中。然后尝试运行程序,如果没有报错,就可以正常使用了。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [MATLAB使用m_gshhs报错解决方法](https://blog.csdn.net/weixin_47011923/article/details/129965439)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* [科学网Matlab: use GSHHS/GSHHG coastline data in M_Map - 洋洋博文](https://blog.csdn.net/weixin_29529733/article/details/115892312)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值