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

相关推荐
felixking1 天前
C++20 协程
开发语言·c++·协程
Zane1994121 天前
CAS 与原子类:Java 如何实现无锁编程
java·开发语言
码农颜1 天前
6.3 主函数流程剖析
开发语言·php
TheBestRucy1 天前
Python 九阳神功:从零筑基到线程飞升
服务器·开发语言·网络·人工智能·python
研☆香1 天前
聊一聊前端的常见字 关键字
开发语言·前端·javascript
草莓橙子碗1 天前
Claude 使用指南
开发语言·python
longxiaozhang61 天前
C# Array类:数组其实没那么难
开发语言·c#
互联网中的一颗神经元1 天前
06. Small 对象分配:mcache 无锁路径
开发语言·golang
PPPPickup1 天前
金证秋招笔试
java·开发语言
典典分享指南1 天前
GEO 实战:从挖搜索词到监控 AI 收录,一套内容流水线怎么搭
开发语言·青少年编程·numpy·erlang