magpie.remap.grid2grid3d

magpie.remap.grid2grid3d(f, boxsize, ngridout, origin=0.0, originout=0.0, boxsizeout=None)

Remaps a dataset defined on a uniform 3D cartesian grid onto a new uniform 3D cartesian grid.

Parameters
f3darray

The values of the 3D grid pixels.

boxsizefloat or list[float]

Box size or list of length along each axis.

ngridoutint or list[int]

Grid division of the output grid along one axis or a list of the grid divisions along each axis.

originfloat or list[float], optional

Origin of the grid. If all axes begin at the same origin this can be a scalar, if you instead wish to specify different origins for each axis this should be added as a list.

originoutfloat or list[float], optional

Origin of the output grid. If all axes begin at the same origin this can be a scalar, if you instead wish to specify different origins for each axis this should be added as a list.

boxsizeoutfloat or list[float], optional

Box size or list of length along each axis for the output grid.

Returns
fout3darray

The resampled pixel values for the output 3D cartesian grid.