Ignore:
Timestamp:
Jul 29, 2024, 9:43:17 AM (2 months ago)
Author:
sommeria
Message:

civ3D updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series/civ_input.m

    r1163 r1164  
    101101NomTypeImaA=NomTypeInput;
    102102iview_image=1;%line # for the input images
    103 switch FileType
    104     case 'civdata'
    105         if ~strcmp(Param.Action.ActionName,'civ_series')
    106             msgbox_uvmat('ERROR','bad input data file: open an image or a nc file from civ_series')
    107             return
    108         end
     103if ismember( FileType,{'civdata','civdata_3D'})
    109104        NomTypeNc=NomTypeInput;
    110105        ind_opening=SeriesData.FileInfo{1}.CivStage;
     
    120115        end
    121116       
    122         if size(Param.InputTable,1)==1
    123            
    124             Param.InputTable(2,:)=Param.InputTable(1,:);
    125               set(hhseries.InputTable,'Data',Param.InputTable)
     117        if size(Param.InputTable,1)==1     
    126118             if isfield(Data,'Civ2_ImageA')
    127119                 ImageName=Data.Civ2_ImageA;
    128120             elseif isfield(Data,'Civ1_ImageA')
    129121                 ImageName=Data.Civ1_ImageA;
     122             else
     123                  msgbox_uvmat('ERROR','no original image defined in netcdf input file ')
     124            return
    130125             end
    131             series('display_file_name',hhseries,ImageName,1);%append the image series to the input list
     126            series('display_file_name',hhseries,ImageName,'append');%append the image series to the input list
    132127                    [~,~,~,~,~,~,~,~,NomTypeImaA]=fileparts_uvmat(ImageName);
    133      
    134 %              elseif isfield(Data,'Civ2_ImageA')
    135 %                  series('display_file_name',hhseries,Data.Civ2_ImageA,'append');%append the image series to the input list
    136 %                          [~,~,~,~,~,~,~,~,NomTypeImaA]=fileparts_uvmat(Data.Civ2_ImageA);
    137 %     
    138 %              end
    139         end
    140 
    141         iview_image=1;%line # for the input images
    142     otherwise
    143         % if ~strcmp(FileType,'image')
    144         % msgbox_uvmat('ERROR','civ_series needs images, scalar fields in netcdf format, or civ data as input')
    145         % return
    146         % end
     128        end
     129
     130        iview_image=2;%line # for the input images
    147131end
    148132       
     
    162146     return
    163147end
     148
    164149MaxIndex_i=Param.IndexRange.MaxIndex_i(1);
    165150MinIndex_i=Param.IndexRange.MinIndex_i(1);
Note: See TracChangeset for help on using the changeset viewer.