salem.Grid.regrid¶
- Grid.regrid(nx=None, ny=None, factor=1)¶
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: nx : int
the new number of x pixels
nx : int
the new number of y pixels
factor : int
multiplication factor (factor=3 will generate a grid with a spatial resolution 3 times finer)
Returns: a new Grid object.