Changeset 233 for trunk/src/read_field.m
- Timestamp:
- Apr 6, 2011, 11:54:15 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/read_field.m
r227 r233 41 41 end 42 42 test_civx=0; 43 ParamIn44 43 if ~strcmp(ParamIn.FieldName,'get_field...')% if get_field is not requested, look for Civx data 45 44 FieldList=calc_field;%list of possible fields for Civx data … … 47 46 field_index=strcmp(ParamOut.FieldName,FieldList);%look for ParamOut.FieldName in the list 48 47 if isempty(find(field_index,1))% ParamOut.FieldName is not in the list, check whether Civx data exist 49 'TESTnc1' 50 Data=nc2struct(ObjectName,'ListGlobalAttribute','absolut_time_T0','civ') 48 Data=nc2struct(ObjectName,'ListGlobalAttribute','absolut_time_T0','civ'); 51 49 if ~isempty(Data.absolut_time_T0)&& ~isequal(Data.civ,0) 52 50 ParamOut.FieldName='velocity';%Civx data found, set .FieldName='velocity' by default
Note: See TracChangeset
for help on using the changeset viewer.