ncwriteschema
Add netCDF schema definitions to netCDF file
Description
ncwriteschema(
creates or adds attributes, dimensions, variable definitions, and group structure defined in
filename
,schema
)schema
to the netCDF file filename
.
You can use ncwriteschema
in combination with
ncinfo
to create a netCDF file based on the schema of an existing
file.
Note
ncwriteschema
does not write variable data. Use
ncwrite
to write data to the created variables. Unlimited
dimensions have an initial size of 0 until you write data.
Note
ncwriteschema
cannot change the format of an existing file. It
cannot redefine existing variables or dimensions in filename
. If
schema
contains attributes, dimensions, variable definitions, or
a group structure that already exist in the file, ncwriteschema
issues a warning but continues processing.
Examples
Input Arguments
Version History
Introduced in R2011a