Changeset 380 for trunk/src/read_field.m


Ignore:
Timestamp:
Jan 29, 2012, 2:31:56 PM (12 years ago)
Author:
sommeria
Message:

reading of civ data, new format, improved: bugs for reading u and v repairedd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/read_field.m

    r379 r380  
    5656            field_index=strcmp(ParamIn.FieldName,FieldList);%look for ParamIn.FieldName in the list of possible fields for Civx data
    5757            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');
    5959                % case of new civdata conventions
    6060                if isequal(Data.Conventions,'uvmat/civdata')
     
    6262                    ParamOut.ColorVar='ima_cor';
    6363                    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);
    6565                    test_civx=Field.CivStage;
    6666                    %case of old civx conventions
Note: See TracChangeset for help on using the changeset viewer.