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 the ncwriteschema
function in combination with the
ncinfo
function
to create a netCDF file based on the schema of an existing file.
Note
The ncwriteschema
function does not write variable data. Use
the ncwrite
function to write data to the created variables.
Unlimited dimensions have an initial size of 0 until you write data.
Note
The ncwriteschema
function 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,
then the ncwriteschema
function issues a warning but continues
processing.
Examples
Input Arguments
Version History
Introduced in R2011a