|||
% 批量读取 clc clear path = 'd:\trmm_day_data' dirOutput1=dir(fullfile(path,'*.nc4')); fileNames1={dirOutput1.name}; % 文件名 filepath = {dirOutput1.folder}; % 路径 start = [289 1061]; % 确定多少个格点 打开一个文件确定 count = [64 100]; % 确定格点的起始位置 打开一个文件确定 for i = 1:7670 pre=ncread(char(fileNames1(i)),'precipitation',start ,count); %pre(pre < 0) = NaN; % excel的名称 path1 = 'd:\trmm\' name = strcat(char(fileNames1(i)),'.xls'); fil_path = strcat(path1,name); xlswrite(fil_path,pre); end % lon1= 85.1250:0.25:109.875 % lat = 22.125:0.25:37.875
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-9-27 08:14
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社