source: Roms_tools/mexcdf/snctools/tests/private/test_readFullFloatVariableNc4_tmw.m @ 1

Last change on this file since 1 was 1, checked in by cholod, 13 years ago

import Roms_Agrif

File size: 555 bytes
Line 
1function actData = test_readFullFloatVariableNc4_tmw ( ncfile )
2try
3    actData = nc_varget ( ncfile, 'latitude' );
4catch 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
19end
Note: See TracBrowser for help on using the repository browser.