source: Roms_tools/mexcdf/snctools/nc_archive_buffer.m @ 1

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

import Roms_Agrif

File size: 709 bytes
Line 
1function 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
8warning ( 'SNCTOOLS:NC_ARCHIVE_BUFFER:deprecated', ...
9    '%s is deprecated and may be removed in a future version of SNCTOOLS.',...
10    upper(mfilename));
11
12new_data = [];
13
14error(nargchk(2,3,nargin,'struct'));
15
16switch nargin
17case 2
18        new_data = nc_addnewrecs ( ncfile, input_buffer );
19case { 3, 4 }
20        new_data = nc_addnewrecs ( ncfile, input_buffer, record_variable );
21end
22
23
24return;
25
26
27
Note: See TracBrowser for help on using the repository browser.