Changeset 404 for trunk/src/read_field.m
- Timestamp:
- Apr 30, 2012, 6:46:45 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/read_field.m
r397 r404 50 50 GUIName=ParamIn.GUIName; 51 51 end 52 test_civx=0;52 CivStage=0; 53 53 if ~strcmp(ParamIn.FieldName,'get_field...')% if get_field is not requested, look for Civx data 54 54 FieldList=calc_field;%list of possible fields for Civx data … … 63 63 InputField=[{ParamOut.FieldName} {ParamOut.ColorVar}]; 64 64 [Field,ParamOut.VelType,errormsg]=read_civdata(ObjectName,InputField,ParamIn.VelType,Data.CivStage); 65 test_civx=Field.CivStage;65 CivStage=Field.CivStage; 66 66 %case of old civx conventions 67 67 elseif ~isempty(Data.absolut_time_T0)&& ~isequal(Data.civ,0) … … 70 70 InputField=[{ParamOut.FieldName} {ParamOut.ColorVar}]; 71 71 [Field,ParamOut.VelType]=read_civxdata(ObjectName,InputField,ParamIn.VelType); 72 test_civx=Field.CivStage;72 CivStage=Field.CivStage; 73 73 ParamOut.CivStage=Field.CivStage; 74 74 % not cvix file, fields will be chosen through the GUI get_field … … 90 90 return 91 91 end 92 test_civx=Field.CivStage;92 CivStage=Field.CivStage; 93 93 ParamOut.CivStage=Field.CivStage; 94 94 end 95 95 end 96 if ~test_civx% read the field names on the interface get_field. 96 ParamOut.FieldList=[{'image'};FieldList;{'get_field...'}]; 97 if CivStage==0% read the field names on the interface get_field. 97 98 hget_field=findobj(allchild(0),'Name',GUIName);%find the get_field... GUI 98 99 if isempty(hget_field)% open the GUI get_field if it is not found … … 140 141 ParamOut.TimeValue=Field.TimeValue; 141 142 end 142 end143 if test_civx144 ParamOut.FieldList=[{'image'};FieldList;{'get_field...'}];145 else146 143 ParamOut.FieldList={'get_field...'}; 147 144 end 148 145 % if CivStage~=0 146 % ParamOut.FieldList=[{'image'};FieldList;{'get_field...'}]; 147 % else 148 % % ParamOut.FieldList={'get_field...'}; 149 % end 149 150 case 'video' 150 151 try
Note: See TracChangeset
for help on using the changeset viewer.