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/time_series.m

    r656 r668  
    104104for iview=1:nbview
    105105    if ~exist(filecell{iview,1}','file')
    106         displ_uvmat('ERROR',['the first input file ' filecell{iview,1} ' does not exist'],checkrun)
     106        disp_uvmat('ERROR',['the first input file ' filecell{iview,1} ' does not exist'],checkrun)
    107107        return
    108108    end
     
    122122    diff_time=max(max(diff(time)));
    123123    if diff_time>0
    124         displ_uvmat('WARNING',['times of series differ by (max) ' num2str(diff_time)],checkrun)
     124        disp_uvmat('WARNING',['times of series differ by (max) ' num2str(diff_time)],checkrun)
    125125    end
    126126    time=time(1,:);% choose the time data from the first sequence
     
    140140%% check the validity of  the input file types
    141141if ~CheckImage{1}&&~CheckNc{1}
    142     displ_uvmat('ERROR',['invalid file type input ' FileType{1}],checkrun)
     142    disp_uvmat('ERROR',['invalid file type input ' FileType{1}],checkrun)
    143143    return
    144144end
    145145if nbview==2 && ~isequal(CheckImage{1},CheckImage{2})
    146     displ_uvmat('ERROR','input must be two image series or two netcdf file series',checkrun)
     146    disp_uvmat('ERROR','input must be two image series or two netcdf file series',checkrun)
    147147    return
    148148end
     
    182182[DataOut,tild,errormsg] = read_field(filecell{1,1},FileType{1},InputFields{1},1);
    183183if ~isempty(errormsg)
    184     displ_uvmat('ERROR',['error reading ' filecell{1,1} ': ' errormsg],checkrun)
     184    disp_uvmat('ERROR',['error reading ' filecell{1,1} ': ' errormsg],checkrun)
    185185    return
    186186end
     
    278278            % stop program if the first field reading is in error
    279279            if ~isempty(errormsg)
    280                 displ_uvmat('ERROR',['time_series / sub_field / ' errormsg],checkrun)
     280                disp_uvmat('ERROR',['time_series / sub_field / ' errormsg],checkrun)
    281281                return
    282282            end
     
    285285            nbvar=length(Field.ListVarName);
    286286            if nbvar==0
    287                 displ_uvmat('ERROR','no input variable selected',checkrun)
     287                disp_uvmat('ERROR','no input variable selected',checkrun)
    288288                return
    289289            end
     
    294294                        var_role=Field.VarAttribute{ivar}.Role;%'role' of the variable
    295295                        if isequal(var_role,'errorflag')
    296                             displ_uvmat('ERROR','do not handle error flags in time series',checkrun)
     296                            disp_uvmat('ERROR','do not handle error flags in time series',checkrun)
    297297                            return
    298298                        end
     
    332332                    if isequal(Param.ProjObject.ProjMode,'inside')% take the average in the domain for 'inside' mode
    333333                        if isempty(VarVal)
    334                             displ_uvmat('ERROR',['empty result at frame index ' num2str(i1_series{iview}(index))],checkrun)
     334                            disp_uvmat('ERROR',['empty result at frame index ' num2str(i1_series{iview}(index))],checkrun)
    335335                            return
    336336                        end
     
    345345                VarInit=DataOut.(VarName);
    346346                if isempty(errormsg) && ~isequal(VarVal,VarInit)
    347                     displ_uvmat('ERROR',['time series requires constant coordinates ' VarName ': use projection mode interp'],checkrun)
     347                    disp_uvmat('ERROR',['time series requires constant coordinates ' VarName ': use projection mode interp'],checkrun)
    348348                    return
    349349                end
     
    414414% display nbmissing
    415415if ~isequal(nbmissing,0)
    416     displ_uvmat('WARNING',[num2str(nbmissing) ' files skipped: missing files or bad input, see command window display'],checkrun)
     416    disp_uvmat('WARNING',[num2str(nbmissing) ' files skipped: missing files or bad input, see command window display'],checkrun)
    417417end
    418418
     
    423423    display([OutputFile ' written'])
    424424else
    425     displ_uvmat('ERROR',['error in Series/struct2nc: ' errormsg],checkrun)
     425    disp_uvmat('ERROR',['error in Series/struct2nc: ' errormsg],checkrun)
    426426end
    427427
Note: See TracChangeset for help on using the changeset viewer.