def __new__(cls, arr, extent, x_dim, y_dim, y_increasing=False):
assert len(arr.shape) > <NUM_LIT:1><EOL>assert isinstance(extent, BBox)<EOL>obj = numpy.asarray(arr).view(cls)<EOL>obj.x_dim = x_dim<EOL>obj.y_dim = y_dim<EOL>obj.extent = extent<EOL>obj.y_increasing = y_increasing<EOL>obj.__array_priority__ = <NUM_LIT:100><EOL>if is_masked(arr):<EOL><INDENT>obj._mask = arr._mask<EOL>obj._fill_value = arr._fill_value<EOL><DEDENT>return obj<EOL>
Create a new Raster from a numpy array and a `BBox` object.