Line | |
---|
1 | function new_data = nc_archive_buffer ( input_buffer, ncfile, record_variable ) |
---|
2 | % NC_ARCHIVE_BUFFER: Tacks on new data from simple matlab structure to an unlimited-dimension netcdf file |
---|
3 | % |
---|
4 | % This function is deprecated. Please use nc_addnewrecs.m instead. All |
---|
5 | % this function really does is call nc_addnewrecs anyway. |
---|
6 | |
---|
7 | |
---|
8 | warning ( 'SNCTOOLS:NC_ARCHIVE_BUFFER:deprecated', ... |
---|
9 | '%s is deprecated and may be removed in a future version of SNCTOOLS.',... |
---|
10 | upper(mfilename)); |
---|
11 | |
---|
12 | new_data = []; |
---|
13 | |
---|
14 | error(nargchk(2,3,nargin,'struct')); |
---|
15 | |
---|
16 | switch nargin |
---|
17 | case 2 |
---|
18 | new_data = nc_addnewrecs ( ncfile, input_buffer ); |
---|
19 | case { 3, 4 } |
---|
20 | new_data = nc_addnewrecs ( ncfile, input_buffer, record_variable ); |
---|
21 | end |
---|
22 | |
---|
23 | |
---|
24 | return; |
---|
25 | |
---|
26 | |
---|
27 | |
---|
Note: See
TracBrowser
for help on using the repository browser.