-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
75df47a
commit 129137f
Showing
5 changed files
with
1,775 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
PREFIX = /usr/local | ||
BINPREFIX = $(PREFIX)/bin/ | ||
CC=cc | ||
CFLAGS=-O3 -std=c99 -Wall | ||
LFLAGS=-lz -lm | ||
|
||
geoloc: geoloc.c wordhash.h | ||
$(CC) $(CFLAGS) -o geoloc geoloc.c $(LFLAGS) | ||
|
||
clean: | ||
rm geoloc | ||
|
||
install: geoloc | ||
-@if [ ! -d $(BINPREFIX) ]; then mkdir -p $(BINPREFIX); fi | ||
cp geoloc $(BINPREFIX) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Simple plotting utility written in python for geoloc. Requires numpy and matplotlib and Basemap. | ||
|
||
It reads geoloc's --print-matrix output from stdin, and plots the results | ||
on a map. | ||
|
||
Usage examples (assume mymsg.txt contains comma-separated features as input for geoloc): | ||
|
||
Plot matrix on Europe map: | ||
geoloc --classify --print-matrix mymsg.txt | ./geoplot.py --europe | ||
|
||
Plot on world map, projection is mercator: | ||
geoloc --classify --print-matrix mymsg.txt | ./geoplot.py --world --proj=merc | ||
|
||
Plot on U.S. map, use contours instead of grid: | ||
geoloc --classify --print-matrix mymsg.txt | ./geoplot.py --us --contour | ||
|
||
As previous, but output PDF: | ||
geoloc --classify --print-matrix mymsg.txt | ./geoplot.py --us --contour --pdf | ||
|
||
- MH20140406 |
Oops, something went wrong.