This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / io / _netcdf / netcdf_variable / getValue

function

scipy.io._netcdf:netcdf_variable.getValue

source: build-install/usr/lib/python3.14/site-packages/scipy/io/_netcdf.py:908

Signature

def getValue(self)

Summary

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.

Aliases

  • scipy.io.netcdf_variable.getValue