This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / io / _netcdf / netcdf_file / createDimension

function

scipy.io._netcdf:netcdf_file.createDimension

source: build-install/usr/lib/python3.14/site-packages/scipy/io/_netcdf.py:323

Signature

def createDimension(self, name, length)

Summary

Adds a dimension to the Dimension section of the NetCDF data structure.

Extended Summary

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

createVariable

Aliases

  • scipy.io.netcdf_file.createDimension