Changeset 380 for trunk/src/read_field.m
- Timestamp:
- Jan 29, 2012, 2:31:56 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/read_field.m
r379 r380 56 56 field_index=strcmp(ParamIn.FieldName,FieldList);%look for ParamIn.FieldName in the list of possible fields for Civx data 57 57 if isempty(find(field_index,1))% ParamIn.FieldName is not in the list, check whether Civx data exist 58 Data=nc2struct(ObjectName,'ListGlobalAttribute','Conventions','absolut_time_T0','civ' );58 Data=nc2struct(ObjectName,'ListGlobalAttribute','Conventions','absolut_time_T0','civ','CivStage'); 59 59 % case of new civdata conventions 60 60 if isequal(Data.Conventions,'uvmat/civdata') … … 62 62 ParamOut.ColorVar='ima_cor'; 63 63 InputField=[{ParamOut.FieldName} {ParamOut.ColorVar}]; 64 [Field,ParamOut.VelType,errormsg]=read_civdata(ObjectName,InputField,ParamIn.VelType );64 [Field,ParamOut.VelType,errormsg]=read_civdata(ObjectName,InputField,ParamIn.VelType,Data.CivStage); 65 65 test_civx=Field.CivStage; 66 66 %case of old civx conventions
Note: See TracChangeset
for help on using the changeset viewer.