Changeset 1153 for trunk/src/read_civdata.m
- Timestamp:
- Jul 5, 2024, 9:00:14 AM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/read_civdata.m
r1135 r1153 191 191 if iscell(vel_type),vel_type=vel_type{1}; end%transform cell to string if needed 192 192 errormsg=''; 193 if CivStage>=6 194 CivStage=6; 195 end 193 196 194 197 %% select the priority order for automatic vel_type selection 195 if strcmp(vel_type,'civ2') && strcmp(ProjModeRequest,'derivatives') 196 vel_type='filter2'; 197 elseif strcmp(vel_type,'civ1') && strcmp(ProjModeRequest,'derivatives') 198 vel_type='filter1'; 198 if strcmp(ProjModeRequest,'derivatives')&& numel(vel_type)>=3 && strcmp(vel_type(1:3),'civ') 199 vel_type=['filter' vel_type(4:end)]; 199 200 end 200 201 if isempty(vel_type)||strcmp(vel_type,'*') 201 202 vel_type='filter2';% case CivStage >=6 202 203 switch CivStage 204 case {1,2}% civ1 available but not filter1 205 vel_type='civ1'; 206 case 3 207 vel_type='filter1'; 208 203 209 case {4,5}% civ2 available but not filter2 204 210 if strcmp(ProjModeRequest,'derivatives')% derivatives needed … … 207 213 vel_type='civ2'; 208 214 end 209 case 3210 vel_type='filter1';211 case {1,2}% civ1 available but not filter1212 vel_type='civ1';213 215 end 214 216 end
Note: See TracChangeset
for help on using the changeset viewer.