Documentation ¶
Overview ¶
Package grump contains function to process data of a GRUMP file describing the country density into a body file that can be fed into the simulator.
GRUMP is the acronym for "Global Rural-Urban Mapping Project"; this is a freely available data source of population density.
Index ¶
Constants ¶
View Source
const GrumpSpacing float64 = 0.0083333333333
GrumpSpacing is side length in degrees of the input data unit square
Variables ¶
Functions ¶
func PrintMemUsage ¶
func PrintMemUsage()
Types ¶
type Country ¶
type Country struct { Name string NCols, NRows int // XllCorner is longitude of the lower left corner, in degress XllCorner float64 // XYlCorner is latitude of the lower left corner, in degress YllCorner float64 }
Country stores country meta data
func (*Country) LatLng2XY ¶
LatLng2XY gives from lat/lng, the relative coordinate within the country
func (*Country) Unserialize ¶
func (country *Country) Unserialize()
Unserialize inits struct from a coord file
Click to show internal directories.
Click to hide internal directories.