You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
JanisGailis edited this page Aug 26, 2016
·
1 revision
This wiki page deals with different thoughts with respect to re-gridding of one dataset onto the grid of another. This necessarily touches many topics. The keywords are: resampling, upsampling, downsampling, interpolation, smoothing, aggregation, grids, data representations.
Re-gridding by interpolation (basemap.interp)
One way to achieve re-gridding is by simply interpolating values of the slave dataset unto the grid of the master dataset. interp utiliy from the basemap package can be used to achieve this:
Basemap interp takes a 2D data point array, with accompanying x and y input grid vectors defining respectively x and y coordinates of the data set, along with two 2D meshgrids that define the new target grid onto which the provided data set should be interpolated to.
This shows nicely what meshgrids are and how they define coordinates: