source: trunk/src/series/merge_proj_polar.m @ 939

Last change on this file since 939 was 939, checked in by sommeria, 8 years ago

extract corrected and merge_proj_polar added

File size: 21.9 KB
Line 
1%'merge_proj': concatene several fields from series, can project them on a regular grid in phys coordinates
2%------------------------------------------------------------------------
3% function ParamOut=merge_proj(Param)
4%------------------------------------------------------------------------
5%%%%%%%%%%% GENERAL TO ALL SERIES ACTION FCTS %%%%%%%%%%%%%%%%%%%%%%%%%%%
6%
7%OUTPUT
8% ParamOut: sets options in the GUI series.fig needed for the function
9%
10%INPUT:
11% In run mode, the input parameters are given as a Matlab structure Param copied from the GUI series.
12% In batch mode, Param is the name of the corresponding xml file containing the same information
13% when Param.Action.RUN=0 (as activated when the current Action is selected
14% in series), the function ouput paramOut set the activation of the needed GUI elements
15%
16% Param contains the elements:(use the menu bar command 'export/GUI config' in series to
17% see the current structure Param)
18%    .InputTable: cell of input file names, (several lines for multiple input)
19%                      each line decomposed as {RootPath,SubDir,Rootfile,NomType,Extension}
20%    .OutputSubDir: name of the subdirectory for data outputs
21%    .OutputDirExt: directory extension for data outputs
22%    .Action: .ActionName: name of the current activated function
23%             .ActionPath:   path of the current activated function
24%             .ActionExt: fct extension ('.m', Matlab fct, '.sh', compiled   Matlab fct
25%             .RUN =0 for GUI input, =1 for function activation
26%             .RunMode='local','background', 'cluster': type of function  use
27%             
28%    .IndexRange: set the file or frame indices on which the action must be performed
29%    .FieldTransform: .TransformName: name of the selected transform function
30%                     .TransformPath:   path  of the selected transform function
31%    .InputFields: sub structure describing the input fields withfields
32%              .FieldName: name(s) of the field
33%              .VelType: velocity type
34%              .FieldName_1: name of the second field in case of two input series
35%              .VelType_1: velocity type of the second field in case of two input series
36%              .Coord_y: name of y coordinate variable
37%              .Coord_x: name of x coordinate variable
38%    .ProjObject: %sub structure describing a projection object (read from ancillary GUI set_object)
39%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
40
41%=======================================================================
42% Copyright 2008-2016, LEGI UMR 5519 / CNRS UGA G-INP, Grenoble, France
43%   http://www.legi.grenoble-inp.fr
44%   Joel.Sommeria - Joel.Sommeria (A) legi.cnrs.fr
45%
46%     This file is part of the toolbox UVMAT.
47%
48%     UVMAT is free software; you can redistribute it and/or modify
49%     it under the terms of the GNU General Public License as published
50%     by the Free Software Foundation; either version 2 of the license,
51%     or (at your option) any later version.
52%
53%     UVMAT is distributed in the hope that it will be useful,
54%     but WITHOUT ANY WARRANTY; without even the implied warranty of
55%     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
56%     GNU General Public License (see LICENSE.txt) for more details.
57%=======================================================================
58
59function ParamOut=merge_proj_polar(Param)
60
61%% set the input elements needed on the GUI series when the function is selected in the menu ActionName or InputTable refreshed
62if isstruct(Param) && isequal(Param.Action.RUN,0)
63    ParamOut.AllowInputSort='on';% allow alphabetic sorting of the list of input file SubDir (options 'off'/'on', 'off' by default)
64    ParamOut.WholeIndexRange='off';% prescribes the file index ranges from min to max (options 'off'/'on', 'off' by default)
65    ParamOut.NbSlice='off'; %nbre of slices ('off' by default)
66    ParamOut.VelType='one';% menu for selecting the velocity type (options 'off'/'one'/'two',  'off' by default)
67    ParamOut.FieldName='one';% menu for selecting the field (s) in the input file(options 'off'/'one'/'two', 'off' by default)
68    ParamOut.FieldTransform = 'on';%can use a transform function
69    ParamOut.TransformPath=fullfile(fileparts(which('uvmat')),'transform_field');% path to transform functions (needed for compilation only)
70    ParamOut.ProjObject='off';%can use projection object(option 'off'/'on',
71    ParamOut.Mask='off';%can use mask option   (option 'off'/'on', 'off' by default)
72    ParamOut.OutputDirExt='.polar';%set the output dir extension
73    ParamOut.OutputFileMode='NbInput';% '=NbInput': 1 output file per input file index, '=NbInput_i': 1 file per input file index i, '=NbSlice': 1 file per slice
74      %check the input files
75    ParamOut.CheckOverwriteVisible='on'; % manage the overwrite of existing files (default=1)
76    first_j=[];
77    if isfield(Param.IndexRange,'first_j'); first_j=Param.IndexRange.first_j; end
78    PairString='';
79    if isfield(Param.IndexRange,'PairString'); PairString=Param.IndexRange.PairString; end
80    [i1,i2,j1,j2] = get_file_index(Param.IndexRange.first_i,first_j,PairString);
81    FirstFileName=fullfile_uvmat(Param.InputTable{1,1},Param.InputTable{1,2},Param.InputTable{1,3},...
82        Param.InputTable{1,5},Param.InputTable{1,4},i1,i2,j1,j2);
83    if ~exist(FirstFileName,'file')
84        msgbox_uvmat('WARNING',['the first input file ' FirstFileName ' does not exist'])
85    end
86    return
87end
88
89%%%% specific input parameters
90% calculate the positions on which to interpolate
91radius_ref=450;% radius of the mountain top
92radius_shifted=-120:2:120;% radius shifted by the radius of the origin at the topography summit
93radius=radius_ref+radius_shifted;%radius from centre of the tank
94azimuth_arclength=(-120:2:500);%azimuth in arc length at origin position
95azimuth=pi/2-azimuth_arclength/radius_ref;%azimuth in radian
96[Radius,Azimuth]=meshgrid(radius,azimuth);
97XI=Radius.*cos(Azimuth);% set of x axis of the points where interpolqtion needs to be done
98YI=Radius.*sin(Azimuth)-radius_ref;% set of y axis of the points where interpolqtion needs to be done
99FieldNames={'vec(U,V)';'curl(U,V)';'div(U,V)'};
100HeadData.ListVarName= {'radius','azimuth'} ;
101HeadData.VarDimName={'radius','azimuth'};
102HeadData.VarAttribute={'coord_y','coord_x'} ;
103HeadData.radius=radius_shifted;
104HeadData.azimuth=azimuth_arclength;   
105
106%%%%%%%%%%%% STANDARD PART (DO NOT EDIT) %%%%%%%%%%%%
107ParamOut=[]; %default output
108RUNHandle=[];
109WaitbarHandle=[];
110%% read input parameters from an xml file if input is a file name (batch mode)
111checkrun=1;
112if ischar(Param)
113    Param=xml2struct(Param);% read Param as input file (batch case)
114    checkrun=0;
115else
116    hseries=findobj(allchild(0),'Tag','series');
117    RUNHandle=findobj(hseries,'Tag','RUN');%handle of RUN button in GUI series
118    WaitbarHandle=findobj(hseries,'Tag','Waitbar');%handle of waitbar in GUI series
119end
120
121%% define the directory for result file (with path=RootPath{1})
122OutputDir=[Param.OutputSubDir Param.OutputDirExt];% subdirectory for output files
123
124if ~isfield(Param,'InputFields')
125    Param.InputFields.FieldName='';
126end
127
128%% root input file type
129RootPath=Param.InputTable(:,1);
130RootFile=Param.InputTable(:,3);
131SubDir=Param.InputTable(:,2);
132%NomType=Param.InputTable(:,4);
133FileExt=Param.InputTable(:,5);
134[filecell,i1_series,i2_series,j1_series,j2_series]=get_file_series(Param);
135%%%%%%%%%%%%
136% The cell array filecell is the list of input file names, while
137% filecell{iview,fileindex}:
138%        iview: line in the table corresponding to a given file series
139%        fileindex: file index within  the file series,
140% i1_series(iview,ref_j,ref_i)... are the corresponding arrays of indices i1,i2,j1,j2, depending on the input line iview and the two reference indices ref_i,ref_j
141% i1_series(iview,fileindex) expresses the same indices as a 1D array in file indices
142%%%%%%%%%%%%
143% NbSlice=1;%default
144% if isfield(Param.IndexRange,'NbSlice')&&~isempty(Param.IndexRange.NbSlice)
145%     NbSlice=Param.IndexRange.NbSlice;
146% end
147NbView=numel(i1_series);%number of input file series (lines in InputTable)
148NbField_j=size(i1_series{1},1); %nb of fields for the j index (bursts or volume slices)
149NbField_i=size(i1_series{1},2); %nb of fields for the i index
150NbField=NbField_j*NbField_i; %total number of fields
151
152%% determine the file type on each line from the first input file
153ImageTypeOptions={'image','multimage','mmreader','video'};
154NcTypeOptions={'netcdf','civx','civdata'};
155for iview=1:NbView
156    if ~exist(filecell{iview,1}','file')
157        disp_uvmat('ERROR',['the first input file ' filecell{iview,1} ' does not exist'],checkrun)
158        return
159    end
160    [FileInfo{iview},MovieObject{iview}]=get_file_info(filecell{iview,1});
161    FileType{iview}=FileInfo{iview}.FileType;
162    CheckImage{iview}=~isempty(find(strcmp(FileType{iview},ImageTypeOptions)));% =1 for images
163    if CheckImage{iview}
164        ParamIn{iview}=MovieObject{iview};
165    else
166        ParamIn{iview}=Param.InputFields;
167    end
168    CheckNc{iview}=~isempty(find(strcmp(FileType{iview},NcTypeOptions)));% =1 for netcdf files
169    if ~isempty(j1_series{iview})
170        frame_index{iview}=j1_series{iview};
171    else
172        frame_index{iview}=i1_series{iview};
173    end
174end
175if NbView >1 && max(cell2mat(CheckImage))>0 && ~isfield(Param,'ProjObject')
176    disp_uvmat('ERROR','projection on a common grid is needed to concatene images: use a Projection Object of type ''plane'' with ProjMode=''interp_lin''',checkrun)
177    return
178end
179
180%% calibration data and timing: read the ImaDoc files
181[XmlData,NbSlice_calib,time,errormsg]=read_multimadoc(RootPath,SubDir,RootFile,FileExt,i1_series,i2_series,j1_series,j2_series);
182if size(time,1)>1
183    diff_time=max(max(diff(time)));
184    if diff_time>0
185        disp_uvmat('WARNING',['times of series differ by (max) ' num2str(diff_time) ': the mean time is chosen in result'],checkrun)
186    end   
187end
188if ~isempty(errormsg)
189    disp_uvmat('WARNING',errormsg,checkrun)
190end
191time=mean(time,1); %averaged time taken for the merged field
192
193%% height z
194    % position of projection plane
195   
196ProjObjectCoord=XmlData{1}.GeometryCalib.SliceCoord;
197CoordUnit=XmlData{1}.GeometryCalib.CoordUnit;
198for iview =2:numel(XmlData)
199    if ~(isfield(XmlData{iview},'GeometryCalib')&& isequal(XmlData{iview}.GeometryCalib.SliceCoord,ProjObjectCoord))...
200        disp('error: geometric calibration missing')
201        return
202    end
203end
204
205
206%% coordinate transform or other user defined transform
207transform_fct='';%default fct handle
208if isfield(Param,'FieldTransform')&&~isempty(Param.FieldTransform.TransformName)
209        currentdir=pwd;
210        cd(Param.FieldTransform.TransformPath)
211        transform_fct=str2func(Param.FieldTransform.TransformName);
212        cd (currentdir)
213        if isfield(Param,'TransformInput')
214            for iview=1:NbView
215            XmlData{iview}.TransformInput=Param.TransformInput;
216            end
217        end       
218end
219%%%%%%%%%%%% END STANDARD PART  %%%%%%%%%%%%
220 % EDIT FROM HERE
221
222%% check the validity of  input file types
223for iview=1:NbView
224    if ~isequal(CheckNc{iview},1)
225        disp_uvmat('ERROR','input files needs to be in netcdf (extension .nc)',checkrun)
226        return
227    end
228end
229
230%% output file type
231FileExtOut='.nc'; %netcdf output
232if isempty(j1_series{1})
233    NomTypeOut='_1';
234else
235    NomTypeOut='_1_1';
236end
237RootFileOut=RootFile{1};
238for iview=2:NbView
239    if ~strcmp(RootFile{iview},RootFile{1})
240        RootFileOut='mproj';
241        break
242    end
243end
244
245
246%% MAIN LOOP ON FIELDS
247%%%%%%%%%%%%% STANDARD PART (DO NOT EDIT) %%%%%%%%%%%%
248% for i_slice=1:NbSlice
249%     index_slice=i_slice:NbSlice:NbField;% select file indices of the slice
250%     NbFiles=0;
251%     nbmissing=0;
252
253%%%%%%%%%%%%%%%% loop on field indices %%%%%%%%%%%%%%%%
254tstart=tic; %used to record the computing time
255CheckOverwrite=1;%default
256if isfield(Param,'CheckOverwrite')
257    CheckOverwrite=Param.CheckOverwrite;
258end
259for index=1:NbField
260    update_waitbar(WaitbarHandle,index/NbField)
261    if ~isempty(RUNHandle) && ~strcmp(get(RUNHandle,'BusyAction'),'queue')
262        disp('program stopped by user')
263        return
264    end
265   
266    %% generating the name of the merged field
267    i1=i1_series{1}(index);
268    if ~isempty(i2_series{end})
269        i2=i2_series{end}(index);
270    else
271        i2=i1;
272    end
273    j1=1;
274    j2=1;
275    if ~isempty(j1_series{1})
276        j1=j1_series{1}(index);
277        if ~isempty(j2_series{end})
278            j2=j2_series{end}(index);
279        else
280            j2=j1;
281        end
282    end
283    OutputFile=fullfile_uvmat(RootPath{1},OutputDir,RootFileOut,FileExtOut,NomTypeOut,i1,i2,j1,j2);
284    if ~CheckOverwrite && exist(OutputFile,'file')
285        disp(['existing output file ' OutputFile ' already exists, skip to next field'])
286        continue% skip iteration if the mode overwrite is desactivated and the result file already exists
287    end
288   
289    %% z position
290       ZIndex=mod(i1_series{1}(index)-1,NbSlice_calib{1})+1;%Zindex for phys transform
291       ZPos=ProjObjectCoord(ZIndex,3);
292       % radius of the topography section at z pos
293       TopoRadius=0;
294       ind_mask=[];
295       if ZPos<20
296    TopoRadius=40*sin(acos((20+ZPos)/40));
297       ind_mask=(XI'.*XI'+YI'.*YI')<TopoRadius*TopoRadius;% indidces of data to mask
298       end
299       
300    %%%%%%%%%%%%%%%% loop on views (input lines) %%%%%%%%%%%%%%%%
301    Data=cell(1,NbView);%initiate the set Data
302    timeread=zeros(1,NbView);
303    for iview=1:NbView
304        %% reading input file(s)
305        [Data{iview},tild,errormsg] = read_field(filecell{iview,index},FileType{iview},ParamIn{iview},frame_index{iview}(index));
306        if ~isempty(errormsg)
307            disp_uvmat('ERROR',['ERROR in merge_proj/read_field/' errormsg],checkrun)
308            return
309        end
310       
311        ListVar=Data{iview}.ListVarName;
312        for ilist=1:numel(ListVar)
313            Data{iview}.(ListVar{ilist})=double(Data{iview}.(ListVar{ilist}));% transform all fields in double before all operations
314        end
315        % get the time defined in the current file if not already defined from the xml file
316        if ~isempty(time) && isfield(Data{iview},'Time')
317            timeread(iview)=Data{iview}.Time;
318        end
319        if ~isempty(NbSlice_calib)
320            Data{iview}.ZIndex=mod(i1_series{iview}(index)-1,NbSlice_calib{iview})+1;%Zindex for phys transform
321        end
322       
323        %% transform the input field (e.g; phys) if requested (no transform involving two input fields)
324        if ~isempty(transform_fct)
325            if nargin(transform_fct)>=2
326                Data{iview}=transform_fct(Data{iview},XmlData{iview});
327            else
328                Data{iview}=transform_fct(Data{iview});
329            end
330        end
331       
332        %% calculate tps coefficients
333        Data{iview}=tps_coeff_field(Data{iview},1);
334       
335        %% projection on the polar grid
336        [DataOut,VarAttribute,errormsg]=calc_field_tps(Data{iview}.Coord_tps,Data{iview}.NbCentre,Data{iview}.SubRange,...
337            cat(3,Data{iview}.U_tps,Data{iview}.V_tps),FieldNames,cat(3,XI,YI));
338        ListVarName=(fieldnames(DataOut))';
339        ProjData{iview}=HeadData;
340        ProjData{iview}.ListVarName= [ProjData{iview}.ListVarName ListVarName];
341        ProjData{iview}.VarDimName={'radius','azimuth'};
342        ProjData{iview}.VarAttribute=[{'coord_x'} {'coord_y'} VarAttribute];
343        for ivar=1:numel(ListVarName)
344            ProjData{iview}.VarDimName{ivar+2}={'radius','azimuth'};
345            ProjData{iview}.(ListVarName{ivar})=(DataOut.(ListVarName{ivar}))';
346        end
347        %% mask
348        %         if Param.CheckMask && ~isempty(MaskData{iview})
349        %              [Data{iview},errormsg]=mask_proj(Data{iview},MaskData{iview});
350        %         end
351    end
352    %%%%%%%%%%%%%%%% END LOOP ON VIEWS %%%%%%%%%%%%%%%%
353   
354    %% merge the NbView fields
355    [MergeData,errormsg]=merge_field(ProjData);
356    if ~isempty(errormsg)
357        disp_uvmat('ERROR',errormsg,checkrun);
358        return
359    end
360   
361    %% time of the merged field: take the average of the different views
362    if ~isempty(time)
363        timeread=time(index);
364    elseif ~isempty(find(timeread))% time defined from ImaDoc
365        timeread=mean(timeread(timeread~=0));% take average over times form the files (when defined)
366    else
367        timeread=index;% take time=file index
368    end
369   
370    %% rotating the velocity vectors to the local axis of the polatr coordinates
371    Unew=MergeData.U.*sin(Azimuth')-MergeData.V.*cos(Azimuth');
372    MergeData.V=MergeData.U.*cos(Azimuth')+MergeData.V.*sin(Azimuth');
373    MergeData.U=Unew;
374    if ~isempty(ind_mask)
375        MergeData.U(ind_mask)=NaN;
376        MergeData.V(ind_mask)=NaN;
377        MergeData.curl(ind_mask)=NaN;
378        MergeData.div(ind_mask)=NaN;
379    end
380   
381    %% recording the merged field
382   
383    MergeData.ListGlobalAttribute={'Conventions','Project','InputFile_1','InputFile_end','NbCoord','NbDim','CoordUnit','ZPos'};
384    MergeData.Conventions='uvmat';
385    MergeData.NbCoord=2;
386    MergeData.NbDim=2;
387    MergeData.CoordUnit=CoordUnit;
388    MergeData.ZPos=ZPos;
389    % time interval of PIV
390    Dt=[];
391    if isfield(Data{1},'Dt')&& isnumeric(Data{1}.Dt)
392        Dt=Data{1}.Dt;
393    end
394    for iview =2:numel(Data)
395        if ~(isfield(Data{iview},'Dt')&& isequal(Data{iview}.Dt,Dt))
396            Dt=[];%dt not the same for all fields
397        end
398    end
399    if ~isempty(timeread)
400        MergeData.ListGlobalAttribute=[MergeData.ListGlobalAttribute {'Time'}];
401        MergeData.Time=timeread;
402    end
403
404    % time unit
405    if isfield(Data{1},'TimeUnit')
406        TimeUnit=Data{1}.TimeUnit;
407        for iview =2:numel(Data)
408            if ~(isfield(Data{iview},'TimeUnit')&& isequal(Data{iview}.TimeUnit,TimeUnit))
409                TimeUnit=[];%TimeUnit not the same for all fields
410            end
411        end
412        if ~isempty(TimeUnit)
413            MergeData.ListGlobalAttribute=[MergeData.ListGlobalAttribute {'TimeUnit'}];
414            MergeData.TimeUnit=TimeUnit;
415        end
416    end
417    error=struct2nc(OutputFile,MergeData);%save result file
418    if isempty(error)
419        disp(['output file ' OutputFile ' written'])
420    else
421        disp(error)
422    end
423end
424
425ellapsed_time=toc(tstart);
426disp(['total ellapsed time ' num2str(ellapsed_time/60,2) ' minutes'])
427disp([ num2str(ellapsed_time/(60*NbField),3) ' minutes per iteration'])
428
429%'merge_field': concatene fields
430%------------------------------------------------------------------------
431function [MergeData,errormsg]=merge_field(Data)
432%% default output
433if isempty(Data)||~iscell(Data)
434    MergeData=[];
435    return
436end
437errormsg='';
438MergeData=Data{1};% merged field= first field by default, reproduces the global attributes of the first field
439NbView=length(Data);
440if NbView==1% if there is only one field, just reproduce it in MergeData
441    return
442end
443
444%% group the variables (fields of 'Data') in cells of variables with the same dimensions
445[CellInfo,NbDim,errormsg]=find_field_cells(Data{1});
446if ~isempty(errormsg)
447    return
448end
449
450%LOOP ON GROUPS OF VARIABLES SHARING THE SAME DIMENSIONS
451for icell=1:length(CellInfo)
452    if NbDim(icell)~=1 % skip field cells which are of dim 1
453        switch CellInfo{icell}.CoordType
454            case 'scattered'  %case of input fields with unstructured coordinates: just concatene data
455                for ivar=CellInfo{icell}.VarIndex %  indices of the selected variables in the list FieldData.ListVarName
456                    VarName=Data{1}.ListVarName{ivar};
457                    for iview=2:NbView
458                        MergeData.(VarName)=[MergeData.(VarName); Data{iview}.(VarName)];
459                    end
460                end
461            case 'grid'        %case of fields defined on a structured  grid
462                FFName='';
463                if isfield(CellInfo{icell},'VarIndex_errorflag') && ~isempty(CellInfo{icell}.VarIndex_errorflag)
464                    FFName=Data{1}.ListVarName{CellInfo{icell}.VarIndex_errorflag};% name of errorflag variable
465                    MergeData.ListVarName(CellInfo{icell}.VarIndex_errorflag)=[];%remove error flag variable in MergeData (will use NaN instead)
466                    MergeData.VarDimName(CellInfo{icell}.VarIndex_errorflag)=[];
467                    MergeData.VarAttribute(CellInfo{icell}.VarIndex_errorflag)=[];
468                end
469                % select good data on each view
470                for ivar=CellInfo{icell}.VarIndex  %  indices of the selected variables in the list FieldData.ListVarName
471                    VarName=Data{1}.ListVarName{ivar};
472                    for iview=1:NbView
473                        if isempty(FFName)
474                            check_bad=isnan(Data{iview}.(VarName));%=0 for NaN data values, 1 else
475                        else
476                            check_bad=isnan(Data{iview}.(VarName)) | Data{iview}.(FFName)~=0;%=0 for NaN or error flagged data values, 1 else
477                        end
478                        Data{iview}.(VarName)(check_bad)=0; %set to zero NaN or data marked by error flag
479                        if iview==1
480                            %MergeData.(VarName)=Data{1}.(VarName);% initiate MergeData with the first field
481                            MergeData.(VarName)(check_bad)=0; %set to zero NaN or data marked by error flag
482                            NbAver=~check_bad;% initiate NbAver: the nbre of good data for each point
483                        elseif size(Data{iview}.(VarName))~=size(MergeData.(VarName))
484                            errormsg='sizes of the input matrices do not agree, need to interpolate on a common grid using a projection object';
485                            return
486                        else                             
487                            MergeData.(VarName)=MergeData.(VarName) +double(Data{iview}.(VarName));%add data
488                            NbAver=NbAver + ~check_bad;% add 1 for good data, 0 else
489                        end
490                    end
491                    MergeData.(VarName)(NbAver~=0)=MergeData.(VarName)(NbAver~=0)./NbAver(NbAver~=0);% take average of defined data at each point
492                    MergeData.(VarName)(NbAver==0)=NaN;% set to NaN the points with no good data
493                end
494        end
495%         if isempty(FFName)
496%             FFName='FF';
497%         end
498%         MergeData.(FFName)(NbAver~=0)=0;% flag to 1 undefined summed data
499%         MergeData.(FFName)(NbAver==0)=1;% flag to 1 undefined summed data
500    end
501end
502
503
504   
Note: See TracBrowser for help on using the repository browser.