SciPy

scipy.io.netcdf_variable.shape

property netcdf_variable.shape

Returns the shape tuple of the data variable.

This is a read-only attribute and can not be modified in the same manner of other numpy arrays.