geohashmod module¶
Description
Module for setting the seed based upon the location on the earth
Quick access
Variables: | mv |
---|---|
Routines: | geohash() |
Needed modules
parametersmod
(sp()
,i4()
,dp()
): Simple module defining some types and parameters
Variables
Subroutines and functions
-
function
geohashmod/
geohash
(lon, lat)¶ encode a lon and lat pair into a signed 4-byte integer
original use: to seed a random number generator in a predictable but geographically non-uniform way this should be precise and provide a unique number down to 30 arc-second resolution (1km) Jed O. Kaplan, 2011
Parameters: - lon [real,in] :: the longitude
- lat [real,in] :: the latitude
Return: geohash [integer]
Called from: