Indexing (rojak.core.indexing)#

Functions

get_regular_grid_spacing(array)

Determines if array has a regular grid spacing

make_value_based_slice(coordinate, ...)

Make a slice from coordinate while accounting for whether values are increasing or decreasing.

map_index_to_coordinate_value(indices, ...)

Retrieve original value based on index

map_order(on, by)

Maps order of on based on the order specified in by.

map_values_to_nearest_coordinate_index(...)

Assuming the coordinate is a regular grid, compute the closest index that the values in the series correspond to.