1 function h=read_wrfout_sel(files,vars)
2 % h=readsel_wfout(files,vars)
3 % read selected time levels from wrfouts
5 % files cell array of file names
6 % vars cell array of variable names
8 % h structure with the selected variables
12 [f,dims]=nc2struct(files{k},vars,{});
18 n=length(dims.(field));
19 h.(field)=cat(n,h.(field),f.(field));