original_docstring: 
      iterpolate a data array in 1D with the given indices and weights
      
docstring: iterpolate a data array in 1D with the given indices and weights
docstring_tokens: iterpolate a data array in 1D with the given indices and weights
code: def _interp_1d_array(da, indices, weight0, inInterpDim):  # {{{
      """
      iterpolate a data array in 1D with the given indices and weights
      """
      if inInterpDim not in da.dims:
          return da
  
      indices0 = {}
      indices1 = {}
      for dim in da.dims:
          if dim in indices.keys():
              indices0[dim] = indices[dim]
              if dim == inInterpDim:
                  indices1[dim] = indices[dim] + 1
              else:
                  indices1[dim] = indices[dim]
  
      da0 = da.isel(**indices0)
      da1 = da.isel(**indices1)
      da = weight0 * da0 + (1. - weight0) * da1
      return da
code_tokens: def _interp_1d_array ( da , indices , weight0 , inInterpDim ) : if inInterpDim not in da . dims : return da indices0 = { } indices1 = { } for dim in da . dims : if dim in indices . keys ( ) : indices0 [ dim ] = indices [ dim ] if dim == inInterpDim : indices1 [ dim ] = indices [ dim ] + 1 else : indices1 [ dim ] = indices [ dim ] da0 = da . isel ( ** indices0 ) da1 = da . isel ( ** indices1 ) da = weight0 * da0 + ( 1. - weight0 ) * da1 return da
short_docstring: iterpolate a data array in 1D with the given indices and weights
short_docstring_tokens: iterpolate a data array in 1D with the given indices and weights
comment: # {{{$SEP$"""
      iterpolate a data array in 1D with the given indices and weights
      """