scipy.io.netcdf_variable.

getValue#

netcdf_variable.getValue()[source]#

Retrieve a scalar value from a netcdf_variable of length one.

Returns:
scalar

The scalar value contained in the length-one netcdf variable.

Raises:
ValueError

If the netcdf variable is an array of length greater than one, this exception will be raised.