finite_first_d

jwst.extract_1d.soss_extract.atoca_utils.finite_first_d(grid)[source]

Return the first derivative operator based on grid.

Parameters:
gridarray[float]

Grid where the first derivative will be computed.

Returns:
first_darray[float]

Operator to compute the first derivative, so that f' = first_d.dot(f), where f is a function projected on grid.