xarray.Variable.to_index_variable

Variable.to_index_variable()

Return this variable as an xarray.IndexVariable