Skip to content

Commit

Permalink
Project import
Browse files Browse the repository at this point in the history
  • Loading branch information
wincentbalin committed Apr 2, 2022
1 parent 75df47a commit 129137f
Show file tree
Hide file tree
Showing 5 changed files with 1,775 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Makefile
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)
20 changes: 20 additions & 0 deletions README.geoplot
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
Loading

0 comments on commit 129137f

Please sign in to comment.