bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / io / _netcdf / netcdf_variable / assignValue
function
scipy.io._netcdf:netcdf_variable.assignValue
source: build-install/usr/lib/python3.14/site-packages/scipy/io/_netcdf.py:926
Signature
def assignValue(self, value)Summary
Assign a scalar value to a netcdf_variable of length one.
Parameters
value: scalarScalar value (of compatible type) to assign to a length-one netcdf variable. This value will be written to file.
Raises
: ValueErrorIf the input is not a scalar, or if the destination is not a length-one netcdf variable.
Aliases
scipy.io.netcdf_variable.assignValue