Ignore:
Timestamp:
Jul 15, 2013, 2:50:47 PM (11 years ago)
Author:
sommeria
Message:

a few bugs corrected.
multimask introduced in merge_proj
displ_uvmat transformed into disp_uvmat

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series/check_peaklock.m

    r592 r668  
    110110for iview=1:nbview
    111111    if ~exist(filecell{iview,1}','file')
    112         displ_uvmat('ERROR',['the first input file ' filecell{iview,1} ' does not exist'],checkrun)
     112        disp_uvmat('ERROR',['the first input file ' filecell{iview,1} ' does not exist'],checkrun)
    113113        return
    114114    end
     
    146146[DataOut,tild,errormsg] = read_field(filecell{1,1},FileType{1},InputFields{1},1);
    147147if ~isempty(errormsg)
    148     displ_uvmat('ERROR',['error reading ' filecell{1,1} ': ' errormsg],checkrun)
     148    disp_uvmat('ERROR',['error reading ' filecell{1,1} ': ' errormsg],checkrun)
    149149    return
    150150end
     
    211211                % stop program if the first field reading is in error
    212212                if ~isempty(errormsg)
    213                     displ_uvmat('ERROR',['time_series / sub_field / ' errormsg],checkrun)
     213                    disp_uvmat('ERROR',['time_series / sub_field / ' errormsg],checkrun)
    214214                    return
    215215                end
     
    218218                nbvar=length(Field.ListVarName);
    219219                if nbvar==0
    220                     displ_uvmat('ERROR','no input variable selected',checkrun)
     220                    disp_uvmat('ERROR','no input variable selected',checkrun)
    221221                    return
    222222                end
     
    227227                            var_role=Field.VarAttribute{ivar}.Role;%'role' of the variable
    228228                            if isequal(var_role,'errorflag')
    229                                 displ_uvmat('ERROR','do not handle error flags in time series',checkrun)
     229                                disp_uvmat('ERROR','do not handle error flags in time series',checkrun)
    230230                                return
    231231                            end
     
    265265                        if isequal(Param.ProjObject.ProjMode,'inside')% take the average in the domain for 'inside' mode
    266266                            if isempty(VarVal)
    267                                 displ_uvmat('ERROR',['empty result at frame index ' num2str(i1_series{iview}(index))],checkrun)
     267                                disp_uvmat('ERROR',['empty result at frame index ' num2str(i1_series{iview}(index))],checkrun)
    268268                                return
    269269                            end
     
    278278                    VarInit=DataOut.(VarName);
    279279                    if isempty(errormsg) && ~isequal(VarVal,VarInit)
    280                         displ_uvmat('ERROR',['time series requires constant coordinates ' VarName],checkrun)
     280                        disp_uvmat('ERROR',['time series requires constant coordinates ' VarName],checkrun)
    281281                        return
    282282                    end
     
    331331% display nbmissing
    332332if ~isequal(nbmissing,0)
    333     displ_uvmat('WARNING',[num2str(nbmissing) ' files skipped: missing files or bad input, see command window display'],checkrun)
     333    disp_uvmat('WARNING',[num2str(nbmissing) ' files skipped: missing files or bad input, see command window display'],checkrun)
    334334end
    335335
     
    340340    display([OutputFile ' written'])
    341341else
    342     displ_uvmat('ERROR',['error in Series/struct2nc: ' errormsg],checkrun)
     342    disp_uvmat('ERROR',['error in Series/struct2nc: ' errormsg],checkrun)
    343343end
    344344
Note: See TracChangeset for help on using the changeset viewer.