Description Usage Arguments Details Value Author(s)
Calculates the directional distance between sites of a random variable. This is an internal function called by the avg.variog.dir and the EmpDir.variog function when computing the directional empirical variogram.
1 | calc.dist.dir(coord1,coord2,id,tol.angle.rad1,tol.angle.rad2,type)
|
coord1 |
numeric vector containing the longitudes of the meteorological stations. |
coord2 |
vector containing the latitudes of the metereological stations. |
id |
vector with the id of the metereological stations. |
tol.angle1 |
number giving a lower bound for the tolerance angle (measured in radians). |
tol.angle2 |
number giving an upper bound for the tolerance angle (measured in radians). |
type |
character string indicating the direction to use for variogram computations. Possible values are either 'E' (for East-West) or 'N' (for North-South). |
This function is an internal function that is used and called by the avg.variog.dir functions when estimating the directional empirical variogram of a random variable observed at different meteorological stations.
- Defaults -
None.
The function returns a square matrix of dimension n by n, where n is the length of the vector coord1 where the (i,j) entry of represents the directional distance between the i-th and the j-th metereological stations.
Berrocal, V. J. veroberrocal@gmail.com, Gel, Y., Raftery, A. E., Gneiting, T.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.