Next: , Previous: , Up: Internal Routines   [Contents][Index]


15.5.492 regrid3

regrid3(x, xgrid, ygrid, dx, dy)

Maps a 2D image onto a specified linear grid and returns the mapped image. Uses bicubic interpolation.

x

the two-dimensional image to be remapped.

xgrid ygrid

the remapping grid: the coordinates of the corners of the remapped image in the coordinate system of the old image. Must be 2D arrays.

dx dy

the scaling factor of the grid cells. Must be scalars.

If ngx, ngy are the dimensions of the grid, then the dimensions of the resulting image are equal to (ngx-1)*dx and (ngy-1)*dy, respectively.

Areas in the remapped image for which there is no equivalent data in the original image receive values related to the closest remapped image data. To suppress such "streaks", use regrid3ns.

See at regrid for more information and examples.

See also: compress, expand, regrid, regrid3ns