wrf.get_left_indexes¶
-
wrf.
get_left_indexes
(var, expected_dims)¶ Returns a tuple for the extra leftmost dimension sizes.
For example, if an algorithm expects a 3 dimensional variable, but the variable includes an additional left dimension for Time, and this Time dimension has 3 values, then this function will return (3,).
Parameters: - var (array) – An array object that contains the
ndim
andshape
attributes. - expected_dims (
int
) – The expected number of dimensions (usually for a computational algorithm).
Returns: The shape for the extra leftmost dimensions.
Return type: - var (array) – An array object that contains the