{ } Raw JSON

bundles / scipy 1.17.1 / scipy / io / _netcdf / netcdf_file / createDimension

function

scipy.io._netcdf:netcdf_file.createDimension

source: /scipy/io/_netcdf.py :329

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