Changeset 273 for trunk/src/read_field.m


Ignore:
Timestamp:
Nov 17, 2011, 7:01:18 PM (12 years ago)
Author:
sommeria
Message:

GUI civ renovated with panels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/read_field.m

    r254 r273  
    4949        if isempty(find(field_index,1))% ParamIn.FieldName is not in the list, check whether Civx data exist
    5050            Data=nc2struct(ObjectName,'ListGlobalAttribute','Conventions','absolut_time_T0','civ');
     51            % case of new civdata conventions
    5152            if isequal(Data.Conventions,'uvmat/civdata')
    5253                ParamOut.FieldName='velocity';%Civx data found, set .FieldName='velocity' by default
     
    5556                [Field,ParamOut.VelType]=read_civdata(ObjectName,InputField,ParamIn.VelType);
    5657                test_civx=Field.CivStage;
     58            %case of old civx conventions
    5759            elseif ~isempty(Data.absolut_time_T0)&& ~isequal(Data.civ,0)
    5860                ParamOut.FieldName='velocity';%Civx data found, set .FieldName='velocity' by default
     
    6264                test_civx=Field.CivStage;
    6365                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
    6568                ParamOut.FieldName='get_field...';
    6669                hget_field=findobj(allchild(0),'Name',GUIName);%find the get_field... GUI
Note: See TracChangeset for help on using the changeset viewer.