Changeset 517 for trunk/src/read_civdata.m
- Timestamp:
- Aug 17, 2012, 11:47:16 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/read_civdata.m
r516 r517 47 47 % 'nc2struct': reads a netcdf file 48 48 49 function [Field,VelTypeOut,errormsg]=read_civdata(filename,FieldNames,VelType ,CivStage)49 function [Field,VelTypeOut,errormsg]=read_civdata(filename,FieldNames,VelType) 50 50 51 51 %% default input … … 77 77 78 78 %% reading data 79 [varlist,role,VelTypeOut]=varcivx_generator(FieldRequest,VelType,CivStage); 79 Data=nc2struct(filename,'ListGlobalAttribute','CivStage'); 80 [varlist,role,VelTypeOut]=varcivx_generator(FieldRequest,VelType,Data.CivStage); 80 81 if isempty(varlist) 81 82 erromsg=['error in read_civdata: unknow velocity type ' VelType];
Note: See TracChangeset
for help on using the changeset viewer.