- Timestamp:
- Feb 8, 2026, 7:10:57 PM (13 days ago)
- File:
-
- 1 edited
-
trunk/src/series.m (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series.m
r1191 r1193 744 744 %% Look for file relabeling option 745 745 [FilePath,RootFile,FileExt]=fileparts(InputFile); 746 [RootPath,SubDir ]=fileparts(FilePath);747 [XmlFileName,Rank]=find_imadoc(RootPath, SubDir);746 [RootPath,SubDir,SubDirExt]=fileparts(FilePath); 747 [XmlFileName,Rank]=find_imadoc(RootPath,[SubDir SubDirExt]); 748 748 Param.Relabel=false;%no file relabeling by default 749 749 XmlData=[]; … … 2611 2611 2612 2612 %% Detect the types of input files and set menus and default options in 'VelType' 2613 if ~isfield(SeriesData,'FileType') 2614 SeriesData.FileType={'none'}; 2615 end 2616 iview_civ=find( strcmp('civx',SeriesData.FileType)|strcmp('civdata',SeriesData.FileType)); 2617 iview_netcdf=find(strcmp('netcdf',SeriesData.FileType)|strcmp('civx',SeriesData.FileType)|strcmp('civdata',SeriesData.FileType)); % all nc files, icluding civ 2613 % if ~isfield(SeriesData,'FileType') 2614 % SeriesData.FileType={'none'}; 2615 % end 2616 iview_civ=[]; 2617 iview_netcdf=[]; 2618 for iview=1:numel(SeriesData.FileInfo) 2619 if strcmp(SeriesData.FileInfo{iview}.FileType,'civx')||strcmp(SeriesData.FileInfo{iview}.FileType,'civdata') 2620 iview_civ=[iview_civ iview]; 2621 iview_netcdf=[iview_netcdf iview];% all nc files, icluding civ 2622 elseif strcmp(SeriesData.FileInfo{iview}.FileType,'netcdf') 2623 iview_netcdf=[iview_netcdf iview]; 2624 end 2625 end 2626 2618 2627 FieldList=get(handles.FieldName,'String'); % previous list as default 2619 2628 if ~iscell(FieldList),FieldList={FieldList};end … … 2623 2632 handles_coord=[handles.Coord_x handles.Coord_y handles.Coord_z handles.Coord_x_title handles.Coord_y_title handles.Coord_z_title]; 2624 2633 if VelTypeRequest && numel(iview_civ)>=1 2625 menu=set_veltype_display(SeriesData.FileInfo{iview_civ(1)}.CivStage,SeriesData.File Type{iview_civ(1)});2634 menu=set_veltype_display(SeriesData.FileInfo{iview_civ(1)}.CivStage,SeriesData.FileInfo{iview_civ(1)}.FileType); 2626 2635 set(handles.VelType,'Value',1)% set first choice by default 2627 2636 set(handles.VelType,'String',[{'*'};menu])
Note: See TracChangeset
for help on using the changeset viewer.
