m_gshhs_h('patch',[0.6 0.6 0.6],'edgecolor','k'); m_grid('linest','-.','color','k','xtick',[10:1:17],'xticklabel',[10:1:17],'ytick',[53:0.5:56],'yticklabel',[53:0.5:56]) m_grid('linest','-.','color','k','xtick',[12:0.5:14],'xticklabel',[12:0.5:14...
m_proj('albers equal-area','lat',[40 54],'long',[-80 -55],'rect','on'); m_gshhs_c('patch',[.2 .8 .2]); m_grid('linest','none','linewidth',2,'tickdir','out','xaxisloc','top'); m_text(-80,52.5,'GSHHS\_C (crude)','color','m','fontweight','bold','fontsiz...
m_contourf(x,y,sst,20,'linestyle','none'); hold on [c,h]=m_contour(x,y,sst,6:2:30,'color','k','showtext','on'); clabel(c,h,'fontsize',10,'fontname','time news roman','fontweight','bold'); col=load('color.mat'); m_gshhs_f('patch',col.color_list_temp,'edgecolor...
需要注意:第一,程序使用的mat格式的EOT20海洋潮汐模型已经添加到了stide工具包里,但是只有四大主要分潮的 第二,调用了m-map工具包里的 m_gshhs_i 函数绘制岸线,如果没有该工具包需要额外添加,百度即可。 第三,纬度-90到90,经度0到360
1. 数据下载 gshhs函数只能读取*.b文件,下载地址http://www.soest.hawaii.edu/wessel/gshhg/,解压后可得到*.b文件。gshhs函数不能处理*.shp文件,虽然*.shp文件也包含海岸线数据,但这些数据不区分陆地与海洋,也就无法实现填色。 2. Matlab代码 %% Read shoreline and border data shorelines=gshhs('D:\工作\...
% 生成m_map的project m_proj('Equidistant Cylindrical', 'long', [110 160], 'lat', [5 45]); % 绘制地图背景 m_gshhs_i('patch', [237 239 218]/255); % 高精度海岸线 % 绘制台风路径(与之前相同) hold on; for i = 1:size(position, 1) colorIndex = find(intensities == intensities(...
I'm trying to run m map, I have downloaded this and made it part of the pathway on matlab, I then run this line: m_proj('utm','lat',[29 19],'lon',[-82 -97]) then: m_gshhs_i('patch',[0.5 0.5 0.5]); but get given this error: ...
% Plotclose all;figure;m_proj('mill', 'lon',[4 9.5],'lat',[52 57]);m_pcolor(x,y,ssh_filled, 'shading','interp');m_gshhs_f('patch',[0.85 0.75 0.65]);m_grid('box','on');colorbar;cmap = load('colormore_2.txt');colormap(flip(cmap));caxis([-0.3 0.3]);title...
m_proj('lambert','long',long_rang,'lat',lat_rang); m_gshhs_i('patch',[.7 1 .7],'edgecolor','k'); % High Resolution Coastline... m_grid('linestyle','none','box','fancy','tickdir','in','fontsize',8); m_line(lon,lat,'linewi',1.5,'color','r'); title('航迹图','...
对于高分辨率海岸线,m_gshhs.m函数默认存储在./private文件夹,可以通过在命令窗口输入并右键选择open selection查看。若想使用自定义的etopo1文件夹,只需将其路径更改为解压后的文件夹地址,确保以'/'结尾。海岸线配置完成后,同样可以进行水深配置,只需替换默认路径即可。所有相关代码和详细教程已上传至...