Changeset 668 for trunk/src/series/time_series.m
- Timestamp:
- Jul 15, 2013, 2:50:47 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/time_series.m
r656 r668 104 104 for iview=1:nbview 105 105 if ~exist(filecell{iview,1}','file') 106 disp l_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) 107 107 return 108 108 end … … 122 122 diff_time=max(max(diff(time))); 123 123 if diff_time>0 124 disp l_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) 125 125 end 126 126 time=time(1,:);% choose the time data from the first sequence … … 140 140 %% check the validity of the input file types 141 141 if ~CheckImage{1}&&~CheckNc{1} 142 disp l_uvmat('ERROR',['invalid file type input ' FileType{1}],checkrun)142 disp_uvmat('ERROR',['invalid file type input ' FileType{1}],checkrun) 143 143 return 144 144 end 145 145 if nbview==2 && ~isequal(CheckImage{1},CheckImage{2}) 146 disp l_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) 147 147 return 148 148 end … … 182 182 [DataOut,tild,errormsg] = read_field(filecell{1,1},FileType{1},InputFields{1},1); 183 183 if ~isempty(errormsg) 184 disp l_uvmat('ERROR',['error reading ' filecell{1,1} ': ' errormsg],checkrun)184 disp_uvmat('ERROR',['error reading ' filecell{1,1} ': ' errormsg],checkrun) 185 185 return 186 186 end … … 278 278 % stop program if the first field reading is in error 279 279 if ~isempty(errormsg) 280 disp l_uvmat('ERROR',['time_series / sub_field / ' errormsg],checkrun)280 disp_uvmat('ERROR',['time_series / sub_field / ' errormsg],checkrun) 281 281 return 282 282 end … … 285 285 nbvar=length(Field.ListVarName); 286 286 if nbvar==0 287 disp l_uvmat('ERROR','no input variable selected',checkrun)287 disp_uvmat('ERROR','no input variable selected',checkrun) 288 288 return 289 289 end … … 294 294 var_role=Field.VarAttribute{ivar}.Role;%'role' of the variable 295 295 if isequal(var_role,'errorflag') 296 disp l_uvmat('ERROR','do not handle error flags in time series',checkrun)296 disp_uvmat('ERROR','do not handle error flags in time series',checkrun) 297 297 return 298 298 end … … 332 332 if isequal(Param.ProjObject.ProjMode,'inside')% take the average in the domain for 'inside' mode 333 333 if isempty(VarVal) 334 disp l_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) 335 335 return 336 336 end … … 345 345 VarInit=DataOut.(VarName); 346 346 if isempty(errormsg) && ~isequal(VarVal,VarInit) 347 disp l_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) 348 348 return 349 349 end … … 414 414 % display nbmissing 415 415 if ~isequal(nbmissing,0) 416 disp l_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) 417 417 end 418 418 … … 423 423 display([OutputFile ' written']) 424 424 else 425 disp l_uvmat('ERROR',['error in Series/struct2nc: ' errormsg],checkrun)425 disp_uvmat('ERROR',['error in Series/struct2nc: ' errormsg],checkrun) 426 426 end 427 427
Note: See TracChangeset
for help on using the changeset viewer.