This is documentation for an old release of SciPy (version 0.17.1). Read this page in the documentation of the latest stable release (version 1.15.1).
scipy.io.netcdf_file.createDimension¶
- netcdf_file.createDimension(name, length)[source]¶
Adds a dimension to the Dimension section of the NetCDF data structure.
Note that this function merely adds a new dimension that the variables can reference. The values for the dimension, if desired, should be added as a variable using createVariable, referring to this dimension.
Parameters: name : str
Name of the dimension (Eg, ‘lat’ or ‘time’).
length : int
Length of the dimension.
See also