matlab datain,科学网—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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值