⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 plot_alb.m

📁 大气模型计算
💻 M
字号:
% PLOT_ALB Plot albedo data.
%
% h = plot_alp(albedo [,type])
%
% albedo is a matrix. Optional parameter type is 'p' for 3D
% plot or 's' for spherical. Default is 'p'.
%
% $Id: plot_alb.m,v 1.12 2006/05/17 14:39:17 danji Exp $

function h = plot_alb(albedo,type,cbar);

if nargin > 1 && strcmp(type,'s')
  if nargin > 2
    plot_alb_sphere(albedo,cbar);
  else
    plot_alb_sphere(albedo);
  end
	return;
end

[sy sx] = size(albedo);
dy = 180/sy;
dx = 360/sx;

lat = [-90+dy/2:dy:90-dy/2]';
lon = [-180+dx/2:dx:180-dx/2]';

hp = surf(lon,lat,albedo);
view(0,90);
axis([-180+dx 180-dx -90+dy 90-dy]);
shading('interp');
title('Albedo');
xlabel('Longitude [deg]');
ylabel('Latitude [deg]');
zlabel('Irradiance [W/m^2]');
colormap(pink);

if ~(nargin > 2)
  % Add colorbar
  oldh = gca;
  cbhandle = colorbar;
  axes(cbhandle);
  ylabel('Irradiance [W/m^2]');
  axes(oldh);
end

% return handles, if requested
if nargout > 0
    h = gcf;
end

return

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -