- Timestamp:
- Jul 1, 2013, 9:12:25 PM (11 years ago)
- Location:
- trunk/src/series
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/civ_input.m
r651 r656 206 206 CivInputData.MinIndex_i=MinIndex_i; 207 207 CivInputData.MinIndex_j=MinIndex_j; 208 if ~isfield(Param.IndexRange,'first_j') 208 if ~isfield(Param.IndexRange,'first_j')||isequal(MaxIndex_j,MinIndex_j)% no possibility of j pairs 209 209 set(handles.ListPairMode,'Value',1) 210 210 set(handles.ListPairMode,'String',{'series(Di)'}) … … 1083 1083 select=ones(size(1:nbpair));%flag for displayed pairs =1 for display 1084 1084 testpair=0; 1085 % RootPath=get(handles.RootPath,'String');1086 % RootFile=get(handles.Civ2_ImageB,'String');1087 1085 nbpair=200; %default 1088 % if index==1 % case civ11089 % if ~get(handles.CheckCiv1,'Value') %1090 % if ~exist(fullfile(RootPath,subdir_civ1),'dir')1091 % errormsg=['no civ1 file available: subdirectory ' subdir_civ1 ' does not exist'];1092 % set(handles.ListPairCiv1,'String',{});1093 % return1094 % end1095 % for ipair=1:nbpair1096 % filename=fullfile_uvmat(RootPath,subdir_civ1,RootFile,'.nc',nom_type_nc,...1097 % ref_i+displ_num(3,ipair),ref_i+displ_num(4,ipair),ref_j+displ_num(1,ipair),ref_j+displ_num(2,ipair));1098 % select(ipair)=exist(filename,'file')==2;% put flag to 0 if the file does not exist1099 % end1100 % % case of no displayed pair1101 % if isequal(select,zeros(size(1:nbpair)))1102 % if isfield(browse,'incr_pair') && ~isequal(browse.incr_pair,[0 0])1103 % num_i1=ref_i-floor(browse.incr_pair(1)/2);1104 % num_i2=ref_i+ceil(browse.incr_pair(1)/2);1105 % num_j1=ref_j-floor(browse.incr_pair(2)/2);1106 % num_j2=ref_j+ceil(browse.incr_pair(2)/2);1107 % filename=fullfile_uvmat(RootPath,subdir_civ1,RootFile,'.nc',nom_type_nc,num_i1,num_i2,num_j1,num_j2);1108 % select(1)=exist(filename,'file')==2;1109 % testpair=1;1110 % else1111 % % if isequal(mode,'series(Dj)')% | isequal(mode,'st_series(Dj)')1112 % % errormsg=['no civ1 file available for the selected reference index j=' num2str(ref_j) ' and subdirectory ' subdir_civ1];1113 % % else1114 % errormsg=['no civ1 file available for the selected reference indices (i,j)= ' num2str(ref_i) ', ' num2str(ref_j) ' and subdirectory ' subdir_civ1];1115 % % end1116 % set(handles.ListPairCiv1,'String',{''});1117 % %COMPLETER CAS STEREO1118 % return1119 % end1120 % end1121 % end1122 % else %case civ2 alone1123 % if ~get(handles.CheckCiv2,'Value') && ~get(handles.CheckCiv1,'Value') && ~get(handles.CheckFix1,'Value') && ~get(handles.CheckPatch1,'Value')1124 % if ~exist(fullfile(RootPath,subdir_civ2),'dir')1125 % msgbox_uvmat('ERROR',['no civ2 file available: subdirectory ' subdir_civ2 ' does not exist'])1126 % set(handles.ListPairCiv2,'Value',1);1127 % set(handles.ListPairCiv2,'String',{''});1128 % return1129 % end1130 % for ipair=1:nbpair1131 % filename=fullfile_uvmat(RootPath,subdir_civ1,RootFile,'.nc',nom_type_nc,...1132 % ref_i+displ_num(3,ipair),ref_i+displ_num(4,ipair),ref_j+displ_num(1,ipair),ref_j+displ_num(2,ipair));1133 % select(ipair)=exist(filename,'file')==2;1134 % end1135 % if isequal(select,zeros(size(1:nbpair)))1136 % if isfield(browse,'incr_pair')1137 % num_i1=ref_i-floor(browse.incr_pair(1)/2);1138 % num_i2=ref_i+floor((browse.incr_pair(1)+1)/2);1139 % num_j1=ref_j-floor(browse.incr_pair(2)/2);1140 % num_j2=ref_j+floor((browse.incr_pair(2)+1)/2);1141 % filename=fullfile_uvmat(RootPath,subdir_civ2,RootFile,'.nc',nom_type_nc,num_i1,num_i2,num_j1,num_j2);1142 % select(1)=exist(filename,'file')==2;1143 % else1144 % if isequal(mode,'series(Dj)')% | isequal(mode,'st_series(Dj)')1145 % errormsg=['no civ2 file available for the selected reference index j=' num2str(ref_j) ' and subdirectory ' subdir_civ2];1146 % else1147 % errormsg=['no civ2 file available for the selected reference index i=' num2str(ref_i) ' and subdirectory ' subdir_civ2];1148 % end1149 % set(handles.ListPairCiv2,'Value',1);1150 % set(handles.ListPairCiv2,'String',{''});1151 % return1152 % end1153 % end1154 % end1155 % end1156 1086 1157 1087 %% determine the menu display in .ListPairCiv1 -
trunk/src/series/time_series.m
r647 r656 138 138 % EDIT FROM HERE 139 139 140 %% check the validity of ctinput file types 141 if CheckImage{1} 142 FileExtOut='.png'; % write result as .png images for image inputs 143 elseif CheckNc{1} 144 FileExtOut='.nc';% write result as .nc files for netcdf inputs 145 else 140 %% check the validity of the input file types 141 if ~CheckImage{1}&&~CheckNc{1} 146 142 displ_uvmat('ERROR',['invalid file type input ' FileType{1}],checkrun) 147 143 return … … 153 149 154 150 %% settings for the output file 151 FileExtOut='.nc';% write result as .nc files for netcdf inputs 155 152 NomTypeOut=nomtype2pair(NomType{1});% determine the index nomenclature type for the output file 156 153 first_i=i1_series{1}(1);
Note: See TracChangeset
for help on using the changeset viewer.