Line | |
---|
1 | function actData = test_readFullFloatVariableNc4_tmw ( ncfile ) |
---|
2 | try |
---|
3 | actData = nc_varget ( ncfile, 'latitude' ); |
---|
4 | catch me |
---|
5 | switch(me.identifier) |
---|
6 | case 'MATLAB:Java:GenericException' |
---|
7 | warning ( 'Could not read an NC4 file, make sure you have >= version 4.0 of toolsUI installed.\n' ); |
---|
8 | return |
---|
9 | |
---|
10 | case 'MATLAB:netcdf:open:notANetcdfFile' |
---|
11 | warning ( 'Netcdf-4 files not currently supported with native matlab package.\n' ); |
---|
12 | return |
---|
13 | |
---|
14 | otherwise |
---|
15 | error(eid,emsg); |
---|
16 | end |
---|
17 | |
---|
18 | |
---|
19 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.