darkhistory.utilities.get_grid¶
-
darkhistory.utilities.
get_grid
(a, b)¶ Returns a 2D grid of coordinates from 2 1D arrays.
Parameters: - a : ndarray
First array.
- b : ndarray
Second array.
Returns: - ndarray
2D array with grid values from a and b.
Notes
This function returns an array that when passed to
scipy.interpolate.RegularGridInterpolator
produces the same result asscipy.interpolate.interp2d(a, b)
.