make_chebyshev_grid

hcipy.field.make_chebyshev_grid(dims, minimum=None, maximum=None, xp=None)[source]

Make a Chebyshev grid.

Parameters:
dimstuple of ints

The number of points in each dimension.

minimumscalar or array_like

The minimum value in each dimension. The default is -1.

maximumscalar or array_like

The maximum value in each dimension. The default is 1.

xpmodule, optional

The array namespace to use. If you’re using old-style Fields, this must be Numpy. If you’re using new-style Fields and don’t provide this, it will be attempted to be inferred from inputs.

Returns:
Grid

A CartesianGrid with SeparatedCoords.

Raises:
ValueError

If xp cannot be inferred and using new-style Fields.