GeoEco.Datasets.NumpyGrid.CreateFromGrid

classmethod NumpyGrid.CreateFromGrid(grid)

Reads an entire Grid into a newly-allocated numpy array and wraps it in a NumpyGrid instance.

Parameters:

grid (Grid) – Grid instance to read. The entire grid will be read when this function is called.

Returns:

NumpyGrid instance.

Return type:

NumpyGrid