Ignore:
Timestamp:
Aug 17, 2012, 11:47:16 PM (9 years ago)
Author:
sommeria
Message:

various bugs corrected. get_field now used in a passive way from uvmat: variable names are transferred from get_field to uvmat.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/read_civdata.m

    r516 r517  
    4747% 'nc2struct': reads a netcdf file
    4848
    49 function [Field,VelTypeOut,errormsg]=read_civdata(filename,FieldNames,VelType,CivStage)
     49function [Field,VelTypeOut,errormsg]=read_civdata(filename,FieldNames,VelType)
    5050
    5151%% default input
     
    7777
    7878%% reading data
    79 [varlist,role,VelTypeOut]=varcivx_generator(FieldRequest,VelType,CivStage);
     79Data=nc2struct(filename,'ListGlobalAttribute','CivStage');
     80[varlist,role,VelTypeOut]=varcivx_generator(FieldRequest,VelType,Data.CivStage);
    8081if isempty(varlist)
    8182    erromsg=['error in read_civdata: unknow velocity type ' VelType];
Note: See TracChangeset for help on using the changeset viewer.