cf.AncillaryVariables.index

AncillaryVariables.index(value, start=0, stop=None)[source]

Return the first index of a value.

Elements are compared with the cf.equals function.

Parameters:
value :

The value to search for in the list.

start : int, optional

Start looking from this index. By default, look from the beginning of the list.

stop : int, optional

Stop looking before this index. By default, look up to the end of the list.

Returns:
out : int

The first index of the value.

Previous topic

cf.AncillaryVariables.identity

Next topic

cf.AncillaryVariables.indices

This Page