match

match(*args)[source]

Return the overlapping points for a group of 1D vectors. Useful e.g. for matching the time dimensions of 3D or 4D variables collected over different years and months.

Parameters

v1, v2, … (ndarray) – The coordinate vectors.

Returns

i1, i2, …, v (ndarray) – The indices of matching coordinates for each vector, and the vector consisting of these coordinates. These satsify the following condition:

v1[i1] == v2[i2] == ... == vmatch