PutArray()

Put an array parameter in the data base.

Usage

PutArray( path, par, value,
   clobber=True, unit=None )

Parameters

path (string)
Data base path of the node containing the parameter.
par (string)
Parameter name.
value (array)
The parameter value.
clobber (boolean)
The parameter value will be overwritten if clobber is true.
unit (string)
If this parameter is not None, the value is converted into this unit.

Return Value

None

Errors

  • The parameter must be an array.
  • The unit must be valid, or None.

Description

This routine saves an array parameter in the data base. The parameter address is given by its node path and the par name. The value of parameter is given by value. If the clobber is true, the parameter value will be overwritten. If unit is given, the parameter value is converted into this unit, otherwise the raw value is saved. For example,
nodeSun= ROOT + RS + 'SOLAR_RADIATION'
PutArray( nodeSun, 'curve_fit_values', ((0,0,0,-1352),),
False )