xdas.coordinates.Coordinates.get_query#

Coordinates.get_query(item)[source]#

Format a query from one or multiple indexer.

Parameters:

item (indexer-like or sequence or mapping) – Object to be parsed as a query. If item is indexer-like object, it is applied on the first dimension. If item is a sequence, positional indexing is performed. If item is a mapping, labeled indexing is performed.

Returns:

A mapping between each dim and a given indexer. If No indexer was found for a given dim, slice(None) will be used.

Return type:

dict