csep.core.regions.CartesianGrid2D.get_cartesian

CartesianGrid2D.get_cartesian(data)[source]

Returns 2d ndrray representation of the data set, corresponding to the bounding box.

Parameters:

data – An array of values, whose indices corresponds to each cell of the region

Returns:

A 2D array of values, corresponding to the original data projected onto the region. Values outside the region polygon are represented as np.nan