This is documentation for an old release of SciPy (version 1.5.3). Read this page in the documentation of the latest stable release (version 1.15.1).
scipy.io.netcdf_variable.assignValue¶
-
netcdf_variable.
assignValue
(self, value)[source]¶ Assign a scalar value to a
netcdf_variable
of length one.- Parameters
- valuescalar
Scalar value (of compatible type) to assign to a length-one netcdf variable. This value will be written to file.
- Raises
- ValueError
If the input is not a scalar, or if the destination is not a length-one netcdf variable.