資源簡介
讀取jason系列測高衛星基本參數matlab代碼,function文件
代碼片段和文件信息
function?par_fun1=Fun1_Read_ncfiles_given_names(nc_file_pathpart_nc_name)
dbstop?if?error;
cd(nc_file_path);
length_file=size(part_nc_name1);%nc文件夾nc文件總個數par_fun1{1}
length_point=zeros(length_file1);%存儲每個nc文件的1hz采樣點個數矩陣,par_fun1{4}
data_time=cell(length_file1);%存儲每個nc文件1hz采樣點的時間矩陣,par_fun1{5}
for?ii=1:length_file
????data_time{ii}=ncread(part_nc_name(ii:)‘time‘);
????length_point(ii)=length(data_time{ii});
end
max_point_num=max(length_point);%所有nc文件1hz采樣點個
評論
共有 條評論