cdms2.dataset:CdmsFile

CdmsFile.createVariable(name, datatype, axesOrGrids, fill_value=None)[source]

Create a variable.

Parameters
nameThe string name of the Variable
datatypeA CDMS datatype or numpy typecode
axesOrGridsis a list of axes, grids.
fill_valuefill_value (cast into data type).
Returns
Return a variable object (cdms2.fvariable.FileVariable.

Notes

This should be generalized to allow subintervals of axes and/or grids.