11985
|
1 function test_netcdf() |
|
2 |
11909
|
3 import_netcdf |
|
4 |
11988
|
5 tests = {'test_netcdf_constant',... |
|
6 'test_netcdf_create'... |
|
7 'test_netcdf_low_level_interface'... |
|
8 'test_netcdf_datatypes'... |
|
9 'test_netcdf_scalar_variable'... |
|
10 'test_netcdf_attributes'... |
11989
|
11 'test_netcdf_high_level_interface'... |
11988
|
12 'test_netcdf_ncwriteschema'... |
|
13 'test_netcdf_ncwriteschema_unlim'... |
|
14 'test_netcdf_ncwriteschema_chunking'... |
|
15 'test_netcdf_ncwriteschema_group'... |
|
16 }; |
|
17 |
11989
|
18 libver = netcdf.inqLibVers(); |
|
19 fprintf('Using NetCDF library version "%s"\n',libver) |
|
20 |
11988
|
21 for iindex=1:length(tests); |
|
22 |
11989
|
23 fprintf('run %34s: ',tests{iindex}); |
11988
|
24 try |
|
25 eval(tests{iindex}); |
|
26 disp(' OK '); |
|
27 catch |
|
28 disp(' FAIL '); |
|
29 disp(lasterr) |
|
30 end |
|
31 end |
|
32 |
11985
|
33 |
11909
|
34 |
11985
|
35 |