bufgeoquad

Expand limits of geographic quadrangle

Syntax

  • [latlim,lonlim] = bufgeoquad(latlim,lonlim,buflat,buflon) example

Description

example

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

Examples

expand all

Bounding Quadrangle for U.S.

Bounding quadrangle for the Conterminous United States, buffered 2 degrees to the north and south and 3 degrees to the east and west.

Load data and expand the limits of the quadrangle.

conus = load('conus.mat');
[latlim, lonlim] = geoquadline(conus.uslat,conus.uslon);
[latlim,lonlim] = bufgeoquad(latlim,lonlim,2,3)
latlim =

   23.1200   51.3800


lonlim =

 -127.7200  -63.9700

Input Arguments

expand all

latlim — Latitude limits1-by-2 vector

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

lonlim — Latitude limits1-by-2 vector

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

buflat — Latitude buffer sizenonnegative scalar

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

Data Types: double

buflon — Longitude buffer sizenonnegative scalar

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

Data Types: double

Output Arguments

expand all

latlim — Latitude limits1–by-2 vector

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].

lonlim — Latitude limits1–by-2 vector

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.

Was this topic helpful?