- 积分
- 71
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2013-12-24
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
function [area,arealonx,arealaty]=SUBAREA(x,lonx,laty,westb,eastb,northb,southb);
% Program for the area you need only
% x is input data to divide, lonx is the zonal form of x,laty is the meridional form of x,westb,eastb,northb,southb are the boundaries of the area
%format :: x [lon lay time]
%area :: is the area you need
%找到东西南北四个边界所在位置
[Cw,Iw]=min(abs(lonx(:)-westb));
[Ce,Ie]=min(abs(lonx(:)-eastb));
[Cn,In]=min(abs(laty(:)-northb));
[Cs,Is]=min(abs(laty(:)-southb));
area(:,:,:)=x(Iw:Ie,Is:In,:);
arealonx(:,1)=lonx(Iw:Ie,1);
arealaty(:,1)=laty(Is:In,1);
只需要输入待截取变量,待截取变量的经纬度分布、所需区域的东、西、南、北四个边界即可
|
-
-
SUBAREA.m
601 Bytes, 阅读权限: 10, 下载次数: 6, 下载积分: 金钱 -5
售价: 1 贡献 [记录]
MATLAB运行文件
评分
-
查看全部评分
|