xlo ylo xhi yhi georect
| Arguments | ||
|---|---|---|
| label | type | description |
| xlo | number | west longitude |
| ylo | number | south latitude |
| xhi | number | east longitude |
| yhi | number | north latitude |
| Returns | ||
| rectangle | variable | a lat/lon rectangle as a geometry variable |
Description
georect defines a rectangular
region from user-defined latitude/longitude coordinates within an input
variable that depends upon latitude and longitude, creating a geometry
variable "rectangle" as a result. To define the rectangle,
the user provides four arguments in the following order: xlo (the
western-most longitude), ylo (the southern-most latitude), xhi
(the eastern-most longitude), and yhi (the northern-most
latitude).
Example
In the following example, georect
is used in conjunction with the Reynolds and Smith Version 2 SSTA data
set and the weighted-average function to calculate the Niño3.4
Index in the central Pacific. The Niño3.4 region is defined by the
western-most longitude "-170°", the southern-most latitude "-5°", the
eastern-most longitude "-120°", and the northern-most latitude "5°". "[X
Y] weighted-average" calculates the spatial average of the SSTA values
over the Niño3.4 region defined by georect. The use of georect
also ensures that area weighting using the cosine of latitude is applied
in the "weighted average" calculation.
SOURCES .NOAA .NCEP .EMC .CMB .GLOBAL .Reyn_SmithOIv2 .monthly .ssta