Package ComboCode :: Package cc :: Package tools :: Package numerical :: Module Gridding
[hide private]
[frames] | no frames]

Module Gridding

source code

Tools for making coordinate grids.

Author: R. Lombaert

Functions [hide private]
array
makeGrid(minval, maxval, gridpoints=0, log=0, make_int=0)
Make grid between max and min value.
source code
Variables [hide private]
  __package__ = 'ComboCode.cc.tools.numerical'
Function Details [hide private]

makeGrid(minval, maxval, gridpoints=0, log=0, make_int=0)

source code 

Make grid between max and min value.

Parameters:
  • minval (float) - lower boundary of grid range
  • maxval (float) - upper boundary of grid range
  • gridpoints (int) - number of grid points, including boundaries. If 0 it is replaced by 2, if 1 then minval is gridpoint

    (default: 0)

  • log (bool) - if grid should be calculated in logspace

    (default: 0)

  • make_int (bool) - 0 if final gridpoints should be rounded to nearest integer

    (default: 0)

Returns: array
the grid points including the boundaries