xso.parameter
- xso.parameter(foreign=False, dims=(), description='', attrs=None)[source]
Create a parameter.
This can be a local parameter for the component, or a reference to a parameter initialized in another component.
The parameter can be of variable dimensionality.
- Parameters:
foreign (boolean, optional) – Defines whether the parameter is initialized and labeled in the component, or is simply a reference to a variable in another component.
dims (str or tuple or list, optional) – Dimension label(s) of the forcing. An empty tuple corresponds to a scalar variable (default), a string or a 1-length tuple corresponds to a 1-d variable and a n-length tuple corresponds to a n-d variable. A list of str or tuple items may also be provided if the variable accepts different numbers of dimensions.
description (str, optional) – Short description of the parameter.
attrs (dict, optional) – Dictionnary of additional metadata (e.g., standard_name, units, math_symbol…).