nc3to4
**Needs R2011a or later**
NC3TO4 Create a NetCDF4 classic model file from an existing NetCDF 3 (classic) file.
NC3TONC4(NC3FILE, NC4FILE) creates a new NetCDF4 classic model file,
NC4FILE, from an existing NetCDF 3 (classic) file, NC3FILE.
NC3TONC4(NC3FILE, NC4FILE, DEFLATELEVEL) creates a new NetCDF4 classic
model file, NC4FILE, from an existing NetCDF 3 (classic) file,
NC3FILE. DEFLATELEVEL is a numeric value specifying the compression
setting for the deflate filter. LEVEL should be between 0 (least) and
9 (most).
Note: The chunk size is selected automatically by the NetCDF library.
Example:
% Create a sample NetCDF 3 (classic) file, with very simple data
nccreate('nc3.nc','Ones',...
'Dimensions',{'r' 200 'c' 200},...
'Format','classic');
ncwrite('nc3.nc','Ones',ones(200));
finfo3 = dir('nc3.nc');
disp(['NetCDF 3 (Classic) size: ' num2str(finfo3.bytes)]);
% Conver to NetCDF4 Classic format.
nc3to4('nc3.nc','nc4.nc',9);
finfo4 = dir('nc4.nc');
disp(['NetCDF 4 (Classic model) size: ' num2str(finfo4.bytes)]);
Cita come
Ashish Uthama (2024). nc3to4 (https://www.mathworks.com/matlabcentral/fileexchange/31183-nc3to4), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.