Skip to content

scalars

clean_lat(scalars)

Remove outliers and return median of the remaining lat values.

get_scalars(scalars, t=0)

Return the first scalar for each node after time t for irregular data, translated to t=0. For regular data, nothing happens.

Parameters:

Name Type Description Default
scalars list

Initial array of scalars.

required
t int

Time after which to pick the first LAT. Defaults to 0.

0

Returns:

Type Description
ndarray

np.ndarray: One scalar per node.