nc3to4

版本 1.2.0.1 (2.1 KB) 作者: Ashish Uthama
Create a NetCDF4 classic model file from an existing NetCDF 3 (classic) file.
367.0 次下载
更新时间 2016/9/1

查看许可证

**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)]);

引用格式

Ashish Uthama (2024). nc3to4 (https://www.mathworks.com/matlabcentral/fileexchange/31183-nc3to4), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2011a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 NetCDF 的更多信息
标签 添加标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.2.0.1

Updated license

1.2.0.0

Fix typo in name

1.1.0.0

Fix typo in name.

1.0.0.0