【matlab程序】画海洋流场

【matlab程序】画海洋流场

clear;clc;

file =( '0227.nc');

lat=ncread(file,'latitude');

lon=ncread(file,'longitude');

u=ncread(file,'water_u');

v=ncread(file,'water_v');

x,y\]=meshgrid(lon,lat); x=x'; y=y'; interval=4; figure (1) set(gcf,'color',\[1 1 1\]) set(gcf,'position',\[150 300 500 500\]) set(0,'defaultfigurecolor','w') m_proj('Miller','lon',\[lon(1) lon(end)\],'lat',\[lat(1) lat(end)\]); m_gshhs_i('patch',\[0.6 0.6 0.6\],'edgecolor','k'); m_grid('linest','-.','color','k'); hold on m_quiver(x(1:interval:end,1:interval:end),y(1:interval:end,1:interval:end),u(1:interval:end,1:interval:end),v(1:interval:end,1:interval:end),0,'k'); title('海洋流场') print('-djpeg','-r400',\['海洋流场.jpg'\]);

相关推荐
future14121 小时前
C#学习日记
开发语言·学习·c#
king_harry1 小时前
Java程序-OceanBase Connector/J 示例
开发语言
傻啦嘿哟2 小时前
Python 办公实战:用 python-docx 自动生成 Word 文档
开发语言·c#
翻滚吧键盘2 小时前
js代码09
开发语言·javascript·ecmascript
q567315232 小时前
R语言初学者爬虫简单模板
开发语言·爬虫·r语言·iphone
rzl023 小时前
java web5(黑马)
java·开发语言·前端
时序数据说3 小时前
为什么时序数据库IoTDB选择Java作为开发语言
java·大数据·开发语言·数据库·物联网·时序数据库·iotdb
jingling5553 小时前
面试版-前端开发核心知识
开发语言·前端·javascript·vue.js·面试·前端框架
m0_687399843 小时前
写一个Ununtu C++ 程序,调用ffmpeg API, 来判断一个数字电影的视频文件mxf 是不是Jpeg2000?
开发语言·c++·ffmpeg
爱上语文4 小时前
Redis基础(5):Redis的Java客户端
java·开发语言·数据库·redis·后端