Changeset 259 for trunk/src/series/time_series.m
- Timestamp:
- Jun 1, 2011, 11:19:00 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/time_series.m
r228 r259 84 84 %determine image type 85 85 hhh=which('mmreader'); 86 testnetcdf=0; 86 87 for iview=1:nbview 87 88 if isequal(FileExt{iview},'.nc')||isequal(FileExt{iview},'.cdf') 88 89 FileType{iview}='netcdf'; 90 testnetcdf=1; 89 91 elseif isequal(lower(FileExt{iview}),'.avi') 90 92 if ~isequal(hhh,'')&& mmreader.isPlatformSupported() … … 121 123 else 122 124 FieldName={''}; 125 end 126 if isequal(FieldName,{''}) && testnetcdf 127 msgbox_uvmat('ERROR','A field must be defined as input') 128 return 123 129 end 124 130 if isequal(FieldName,{'get_field...'}) … … 339 345 end 340 346 end 341 if testcivx 347 if testcivx && ~isequal(FieldName,{''}) 342 348 Data{iview}=calc_field(FieldName,Data{iview});%calculate field (vort..) 343 349 end … … 481 487 482 488 %name of result file 489 % RecordData 490 % RecordData.VarDimName{1} 491 % RecordData.VarDimName{2} 492 % RecordData.VarDimName{3} 493 % RecordData.VarDimName{4} 494 % RecordData.VarDimName{5} 495 % RecordData.VarDimName{6} 483 496 [filemean]=... 484 497 name_generator(filebase_out,num_i1{1}(i_slice),num_j1{1}(i_slice),'.nc','_i1-i2_j1-j2',1,num_i2{end}(ifile),num_j2{end}(ifile),subdir_result); … … 487 500 display([filemean ' written']) 488 501 else 489 msgbox_uvmat('ERROR',['error in Series/struct2nc ' errormsg])502 msgbox_uvmat('ERROR',['error in Series/struct2nc: ' errormsg]) 490 503 end 491 504 end
Note: See TracChangeset
for help on using the changeset viewer.