salem.Grid.regrid

Grid.regrid(nx=None, ny=None, factor=1)[source]

Make a copy of the grid with an updated spatial resolution.

The keyword parameters are mutually exclusive, because the x/y ratio of the grid has to be preserved.

Parameters:
nxint

the new number of x pixels

nxint

the new number of y pixels

factorint

multiplication factor (factor=3 will generate a grid with a spatial resolution 3 times finer)

Returns:
a new Grid object.