Changeset 273 for trunk/src/read_field.m
- Timestamp:
- Nov 17, 2011, 7:01:18 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/read_field.m
r254 r273 49 49 if isempty(find(field_index,1))% ParamIn.FieldName is not in the list, check whether Civx data exist 50 50 Data=nc2struct(ObjectName,'ListGlobalAttribute','Conventions','absolut_time_T0','civ'); 51 % case of new civdata conventions 51 52 if isequal(Data.Conventions,'uvmat/civdata') 52 53 ParamOut.FieldName='velocity';%Civx data found, set .FieldName='velocity' by default … … 55 56 [Field,ParamOut.VelType]=read_civdata(ObjectName,InputField,ParamIn.VelType); 56 57 test_civx=Field.CivStage; 58 %case of old civx conventions 57 59 elseif ~isempty(Data.absolut_time_T0)&& ~isequal(Data.civ,0) 58 60 ParamOut.FieldName='velocity';%Civx data found, set .FieldName='velocity' by default … … 62 64 test_civx=Field.CivStage; 63 65 ParamOut.CivStage=Field.CivStage; 64 else % not cvix file, fields will be chosen through the GUI get_field 66 % not cvix file, fields will be chosen through the GUI get_field 67 else 65 68 ParamOut.FieldName='get_field...'; 66 69 hget_field=findobj(allchild(0),'Name',GUIName);%find the get_field... GUI
Note: See TracChangeset
for help on using the changeset viewer.