GeoEco.Datasets.Virtual.AggregateGrid.GetIndicesForCoords

AggregateGrid.GetIndicesForCoords(coords)

Given a tuple or list of coordinates, returns a list of int indices into Data for the cell that contains the coordinates.

Parameters:

coords (object) – tuple or list of coordinates that are float (for x, y, and z) or datetime (for t). The coordinates must be in the same order as Dimensions.

Returns:

List of integer indices into Data for the cell that contains coords.

Return type:

list of int