metpy.calc.resample_nn_1d(a, centers)#

Return one-dimensional nearest-neighbor indexes based on user-specified centers.

  • a (array-like) – 1-dimensional array of numeric values from which to extract indexes of nearest-neighbors

  • centers (array-like) – 1-dimensional array of numeric values representing a subset of values to approximate


  • A list of indexes (in type given by array.argmin()) representing values closest to

  • given array values.

Examples using metpy.calc.resample_nn_1d#

Simple Sounding

Simple Sounding