bundles / scipy latest / scipy / io / _netcdf / netcdf_file / createVariable
function
scipy.io._netcdf:netcdf_file.createVariable
source: /scipy/io/_netcdf.py :355
Signature
def createVariable ( self , name , type , dimensions ) Summary
Create an empty variable for the netcdf_file object, specifying its data type and the dimensions it uses.
Parameters
name: strName of the new variable.
type: dtype or strData type of the variable.
dimensions: sequence of strList of the dimension names used by the variable, in the desired order.
Returns
variable: netcdf_variableThe newly created
netcdf_variableobject. This object has also been added to the netcdf_file object as well.
Notes
Any dimensions to be used by the variable should already exist in the NetCDF data structure or should be created by createDimension prior to creating the NetCDF variable.
See also
Aliases
-
scipy.io.netcdf_file.createVariable