Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

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

collapse all

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

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.

Introduced in R2012b

Was this topic helpful?