gstools.variogram.standard_bins¶
-
gstools.variogram.
standard_bins
(pos=None, dim=2, latlon=False, mesh_type='unstructured', bin_no=None, max_dist=None)[source]¶ Get standard binning.
- Parameters
pos (
list
, optional) – the position tuple, containing either the point coordinates (x, y, …) or the axes descriptions (for mesh_type=’structured’)dim (
int
, optional) – Field dimension.latlon (
bool
, optional) – Whether the data is representing 2D fields on earths surface described by latitude and longitude. When using this, the estimator will use great-circle distance for variogram estimation. Note, that only an isotropic variogram can be estimated and a ValueError will be raised, if a direction was specified. Bin edges need to be given in radians in this case. Default: Falsemesh_type (
str
, optional) – ‘structured’ / ‘unstructured’, indicates whether the pos tuple describes the axis or the point coordinates. Default: ‘unstructured’bin_no (
int
, optional) – number of bins to create. If None is given, will be determined by Sturges’ rule from the number of points. Default: Nonemax_dist (
float
, optional) – Cut of length for the bins. If None is given, it will be set to one third of the box-diameter from the given points. Default: None
- Returns
The generated bin edges.
- Return type
Notes
Internally uses double precision and also returns doubles.