cdms2.dataset:CdmsFile

CdmsFile.createVirtualAxis(name, axislen)[source]

Create an axis without any associated coordinate array. This axis is read-only. This is useful for the ‘bound’ axis.

Parameters
nameis the string name of the axis.
axislenis the integer length of the axis.
Returns
axisfile axis whose id is name (cdms2.axis.FileVirtualAxis)

Notes

For netCDF output, this just creates a dimension without the associated coordinate array. On reads the axis will look like an axis of type float with values [0.0, 1.0, …, float(axislen-1)]. On write attempts an exception is raised.