nc3to4

Create a NetCDF4 classic model file from an existing NetCDF 3 (classic) file.
367 download
Aggiornato 1 set 2016

Visualizza la licenza

**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
Creato con R2011a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Tag Aggiungi tag

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
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