Changeset 1164 for trunk/src/series/civ_input.m
- Timestamp:
- Jul 29, 2024, 9:43:17 AM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/civ_input.m
r1163 r1164 101 101 NomTypeImaA=NomTypeInput; 102 102 iview_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 103 if ismember( FileType,{'civdata','civdata_3D'}) 109 104 NomTypeNc=NomTypeInput; 110 105 ind_opening=SeriesData.FileInfo{1}.CivStage; … … 120 115 end 121 116 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 126 118 if isfield(Data,'Civ2_ImageA') 127 119 ImageName=Data.Civ2_ImageA; 128 120 elseif isfield(Data,'Civ1_ImageA') 129 121 ImageName=Data.Civ1_ImageA; 122 else 123 msgbox_uvmat('ERROR','no original image defined in netcdf input file ') 124 return 130 125 end 131 series('display_file_name',hhseries,ImageName, 1);%append the image series to the input list126 series('display_file_name',hhseries,ImageName,'append');%append the image series to the input list 132 127 [~,~,~,~,~,~,~,~,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 147 131 end 148 132 … … 162 146 return 163 147 end 148 164 149 MaxIndex_i=Param.IndexRange.MaxIndex_i(1); 165 150 MinIndex_i=Param.IndexRange.MinIndex_i(1);
Note: See TracChangeset
for help on using the changeset viewer.