| 1 | function [nIt,rList,tim,vvA,listV]=read_StD(namF,sufx,listV); | function [nIt,rList,tim,vvA,listV,kList]=read_StD(namF,sufx,listV); | 
| 2 | % [nIt,rList,tim,vvA,listV]=read_StD(namF,sufx,listV); | % [nIt,rList,tim,vvA,listV,kList]=read_StD(namF,sufx,listV); | 
| 3 | % | % | 
| 4 | % read ASCII stat-Diags output files (after splitted by script extract_StD) | % read ASCII stat-Diags output files (after splitted by script extract_StD) | 
| 5 | % | % | 
| 11 | %  rList    = list of region number | %  rList    = list of region number | 
| 12 | %  tim(:,1) = iterations number ; tim(:,2) = time in simulation | %  tim(:,1) = iterations number ; tim(:,2) = time in simulation | 
| 13 | %  listV    = list of fields | %  listV    = list of fields | 
| 14 |  | %  kList    = list of levels number | 
| 15 | %  vvA      = 5 dims output array: | %  vvA      = 5 dims output array: | 
| 16 | %           ( kLev, time_rec, region_rec, [ave,std,min,max,vol], var_rec ) | %           ( kLev, time_rec, region_rec, [ave,std,min,max,vol], var_rec ) | 
| 17 |  |  | 
| 18 | % $Header$ | % $Header$ | 
| 19 | % $Name$ | % $Name$ | 
| 20 |  |  | 
| 21 |  | %- Remove insignificant whitespace: | 
| 22 |  | sufx=strtrim(char(sufx)); | 
| 23 | namfhd=[namF,'_head','.',sufx]; | namfhd=[namF,'_head','.',sufx]; | 
| 24 | namfil=[namF,'_Iter','.',sufx]; | namfil=[namF,'_Iter','.',sufx]; | 
| 25 | fprintf(['read ',sufx,' :']); | fprintf(['read ',sufx,' :']); |