arlmet.Grid.fractional_indices#

Grid.fractional_indices(lon, lat)[source]#

Convert geographic coordinates to zero-based fractional grid indices.

Parameters:
Returns:

Fractional (x, y) grid indices with the same broadcast shape as the input coordinates.

Return type:

tuple[NDArray[Any], NDArray[Any]]