()oabin
oabin (gexpr, sexpr <,-flag>)
This function bins station observations into grid cells based on their location. If more than one station is located within a grid box, the observations are averaged together to produce the analyzed value.
gexpr
a valid grid expression
sexpr
a valid station data expression
The optional flag
may be one of the following:
-f
set the value to the first observation that gets binned
-c
output is the # of stations located within each grid cell
Usage Notes
-
The -f flag should be used when summing is not appropriate -- e.g. surface type classification.
-
See the related function
oacres
.
Example
open grd_var.ctlopen stn_var.ctlset gxout grfilld oabin(grd_var.1,stn_var.2)set gxout gridd oabin(grd_var.1,stn_var.2,-c)