[PLUG-JOBS] Sample Scripts [Was: Looking For Work In Portland]
Cooper Stevenson
cooper at cooper.stevenson.name
Tue Feb 6 21:57:44 UTC 2007
Hello,
I've recently been asked to share some examples of some scripting
skills. I thought these might be of interest to you as well--especially
my geosynchronized photo script.
The first, process_main.sh is one of my favorites. I wanted a system
that would permit me to automatically create geosynchronized satellite
maps with labels depicting the exact location of each photo was taken.
You may view the script online here:
http://cooper.stevenson.name/scripts/process_main.txt
All the user has to do is simply plug in the camera & GPS and save the
camera's images to a directory. The script will automatically download
the GPS track log, synchronize the data with the image header data, pull
down a sat. map from the Internet, and display the results!
I like to separate my code as much as I can; this makes reading the code
for myself and others much easier. I have included my script performing
the "gruntwork" main task, process_inf_data.rb, as an example.
Process_inf_data.rb, written in Ruby, also serves t estimate to my
talent for writing scripts in various languages. Here's the data
processing script:
http://cooper.stevenson.name/scripts/process_inf_data.txt
A picture is worth a thousand words, so here's the output of the image
geosynchronization scripts here:
http://cooper.stevenson.name/scripts/geo4589-map.jpg
The second group of scripts, address.ksh & filter_web.sed is are part of
a series of scripts I wrote to automatically filter information from the
online OLMIS database. Later in the series I export and run queries
against the results in an SQL database. These two scripts illustrate my
ability to perform complex data extraction through automation in both
shell and Sed (yes, the Perl guys and girls will "crush" me for using
Sed). Here they are:
http://cooper.stevenson.name/scripts/address.txt
http://cooper.stevenson.name/scripts/filter_web.txt
The last scripting sample in the series is rather complex; the script
reads exported GIS information and creates a hexagon-based configuration
file. I have included the script, "roads.sh," and the input GIS file,
"roads.txt." Again, this illustrates my ability to extract meaningful
information from complex input streams.
http://cooper.stevenson.name/scripts/roads.txt
Not trivial work--here's the GIS ASCII input file:
http://cooper.stevenson.name/scripts/roads_input.txt
I have dozens more scripts for things ranging from server monitoring to
complex Ruby on Rails based online GIS applications. I thank the PLUG
list community for their patience in my posting to the main list; feel
free to ask me for details or if you would like the source code.
Enjoy!
Best,
Cooper Stevenson
541.971.0344
http://cooper.stevenson.name
_______________________________________________
PLUG mailing list
PLUG at lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug
More information about the PLUG-jobs
mailing list