geohashmod module

Description

Module for setting the seed based upon the location on the earth

Quick access

Variables:mv
Routines:geohash()

Needed modules

Variables

  • geohashmod/mv [integer,parameter=huge(i4)]

    add offset to fit into values into signed number

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:

gwgen