Main Content

bufgeoquad

Expand limits of geographic quadrangle

Description

[latlim,lonlim] = bufgeoquad(latlim,lonlim,buflat,buflon) returns an expanded version of the geographic quadrangle defined by latlim and lonlim.

example

Examples

collapse all

Load a MAT file containing the latitude and longitude coordinates of the conterminous United States. Define a quadrangle by finding the latitude and longitude limits of the coordinates.

conus = load("conus.mat");
[latlim,lonlim] = geoquadline(conus.uslat,conus.uslon)
latlim = 1×2

   25.1200   49.3800

lonlim = 1×2

 -124.7200  -66.9700

Buffer the quadrangle 2 degrees to the north and south, and 3 degrees to the east and west.

[latlim,lonlim] = bufgeoquad(latlim,lonlim,2,3)
latlim = 1×2

   23.1200   51.3800

lonlim = 1×2

 -127.7200  -63.9700

Input Arguments

collapse all

Latitude limits of a geographic quadrangle, specified as a 1-by-2 vector of the form [southern_limit northern_limit], with latitudes in degrees. The two elements must be in ascending order, and lie in the closed interval [–90,90].

Data Types: single | double

Longitude limits of a geographic quadrangle, specified as a 1-by-2 vector of the form [western_limit eastern_limit], with longitudes in degrees. The two limits need not be in numerical ascending order.

Data Types: single | double

Latitude buffer size, specified as a nonnegative scalar, in units of degrees.

Data Types: double

Longitude buffer size, specified as a nonnegative scalar, in units of degrees.

Data Types: double

Output Arguments

collapse all

Latitude limits of a geographic quadrangle, returned as a 1-by-2 vector of the form [southern_limit northern_limit], in units of degrees. The elements are in ascending order, and both lie in the closed interval [–90,90].

Longitude limits of a geographic quadrangle, returned as a 1-by-2 vector of the form [western_limit eastern_limit], in units of degrees. The limits are wrapped to the interval [–180,180]. They are not necessarily in numerical ascending order.

Version History

Introduced in R2012b