Changeset 1193 for trunk


Ignore:
Timestamp:
Feb 8, 2026, 7:10:57 PM (13 days ago)
Author:
sommeria
Message:

bug repaired in series.m

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series.m

    r1191 r1193  
    744744%% Look for file relabeling option
    745745[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]);
    748748Param.Relabel=false;%no file relabeling by default
    749749XmlData=[];
     
    26112611
    26122612%% 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
     2616iview_civ=[];
     2617iview_netcdf=[];
     2618for 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
     2625end
     2626
    26182627FieldList=get(handles.FieldName,'String'); % previous list as default
    26192628if ~iscell(FieldList),FieldList={FieldList};end
     
    26232632handles_coord=[handles.Coord_x handles.Coord_y handles.Coord_z handles.Coord_x_title handles.Coord_y_title handles.Coord_z_title];
    26242633if VelTypeRequest && numel(iview_civ)>=1
    2625     menu=set_veltype_display(SeriesData.FileInfo{iview_civ(1)}.CivStage,SeriesData.FileType{iview_civ(1)});
     2634    menu=set_veltype_display(SeriesData.FileInfo{iview_civ(1)}.CivStage,SeriesData.FileInfo{iview_civ(1)}.FileType);
    26262635    set(handles.VelType,'Value',1)% set first choice by default
    26272636    set(handles.VelType,'String',[{'*'};menu])
Note: See TracChangeset for help on using the changeset viewer.