Mapping Toolbox    
hista

Create spatial equal area histogram

Syntax

Description

[lat,lon,num] = hista(lats,lons) returns the center coordinates of equal-area bins and the number of observations falling in each based on the geographically distributed input data.

[lat,lon,num] = hista(lats,lons,binarea) specifies the equal area bin size, in square kilometers. It is 100 km2 by default.

[lat,lon,num] = hista(lats,lons,binarea,geoid) specifies the elliptical definition of the Earth to be used with the two-element geoid vector. The default geoid model is a spherical Earth, which is sufficient for most applications.

[lat,lon,num] = hista(lats,lons,binarea,units) specifies the standard angle unit string. The default value is 'degrees'.

Examples

Create random data:

Bin the data in 50-by-50 km cells (2500 sq km):

See Also
eqa2grn
grn2eqa
Greenwich/equal are a conversion
histr
Spatial equirectangular histogram


  hidem histr