This function is a grid-to-station interpolator. It creates "station" data by taking a 1-dimensional sample from a gridded data set and interpolating to a given location. That location may be provided by specifying a longitude and a latitude, or by providing a station expression.
gr2stn(grid_expr, lon, lat <,-a>)gr2stn(grid_expr, stn_expr <,-a>)where:
grid_expr is a GrADS expression
that gives a grid result. The interpolation will be done on this
data.
stn_expr is a GrADS
expression that gives a station data result. The interpolation will be
done to the station location, the value of the station data is
not used.
lon,lat may be used instead of
stn_expr to specify the location to which the
gridded data will be interpolated.
gr2stn.
d t.3-gr2stn(t.1,t.3)where file 1 is gridded data, and file 3 is station data. The result would displayas differences at the station locations.
oacres function to do a quick
analysis of the station values:
d oacres(t.1,t.3-gr2stn(t.1,t.3))