【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']);

相关推荐
吾爱星辰2 小时前
Kotlin 处理字符串和正则表达式(二十一)
java·开发语言·jvm·正则表达式·kotlin
ChinaDragonDreamer2 小时前
Kotlin:2.0.20 的新特性
android·开发语言·kotlin
IT良2 小时前
c#增删改查 (数据操作的基础)
开发语言·c#
Kalika0-03 小时前
猴子吃桃-C语言
c语言·开发语言·数据结构·算法
_.Switch3 小时前
Python Web 应用中的 API 网关集成与优化
开发语言·前端·后端·python·架构·log4j
代码雕刻家3 小时前
课设实验-数据结构-单链表-文教文化用品品牌
c语言·开发语言·数据结构
一个闪现必杀技3 小时前
Python入门--函数
开发语言·python·青少年编程·pycharm
Fan_web3 小时前
jQuery——事件委托
开发语言·前端·javascript·css·jquery
龙图:会赢的3 小时前
[C语言]--编译和链接
c语言·开发语言
XKSYA(小巢校长)5 小时前
NatGo我的世界联机篇
开发语言·php