Jim's Project Page
Ortho Image Metadata Parser
Parses metdata generated by ESRI ArcCatalog for orthophoto indexes.
Creates an XML metadata file for each image and inserts file size and
bounding coordinates.
Download:
ortho_metadata.tar.gz View Source:
ortho_coordinates_parser.txt
Google Maps Counter
PHP/Google Maps API application that records and displays visitor locations in a Google map. See it at
/maps/index.php.
Download:
gmap_counter.tar.gz  View README:
gmap_counter_README.txt
Python Google Maps CGI
This is a Python Google Maps CGI that performs the same function as my PHP Google Maps Visitor Counter. It writes to files rather than using a database and is likely much slower and
less scalable, which is why I rewrote it in PHP. However, I see that my blog entry concerning it has gotten some traffic lately so I'm posting the code.
Download:
pymap.tar.gz View Source:
pymap.txt
Catalog Processor - DSpace ingest workflow
Python script to parse text files and convert tif images into pdf's for
ingest into DSpace digital repository. Tar archive contains the
tab-delimited text files parsed in this project. This code has been used
for various projects including the
B.W. Wells
collection,
Green N
Growing, and
Living
off the Land.
Download:
catalog_processor.tar.gz View Source:
catalog_processor.txt
NWS XML Weather Parser CGI
Python CGI update to weather.cgi. Parses the National Weather Service XML
local observation reports. See it at
/webcam.html. This python script also caches both the SOAP XML document and the
images servered by NOAA. The cache age is checked prior to making a request from NOAA to reduce the number of calls made to the NWS server as the weather
is updated no more frequently than 45 minutes. This also speeds the CGI up considerably.
Download:
xmlweather.tar.gz View Source:
xmlweather.txt
Archive and encrypt data
pack.sh is a Bash script to create a tar archive from a directory or file and compress and encrypt it using
GnuGPG, the free Pretty Good Privacy (PGP) application. It's useful to transport sensitive data on untrusted
media such as external drives, USB drives, and for making data accessible on the web but maintaining security
of the data. This script takes some of the pain out of remembering the commands and it's nice to be able to
start the process and leave it since it can take awhile with large amounts of data.
Download:
pack.tar.gz View Source:
pack.txt
RSS XML Parser
This is a work in progress. It pulls down RSS XML feeds, parses them, and prints them
to a webpage. It uses minidom to parse the XML. I'd like to add several features when
I get time. See it at
rss.cgi.
Download:
rss.tar.gz View Source:
rss.txt
Weather CGI
Python script that parses National Weather Service data for weather
information to display on an html page. I wrote this because I
wanted to display weather information without corporate graphics and
links. Reasonably fast and robust. Can easily be modified to display any
NWS
Internet Weather Source data for any given area. Display is also
easily modified. See it in action at
/webcam.html.
Download:
weather.tar.gz View Source:
weather.txt
Remote backup bash script
Bash script reads a list of files/directories, archives, compresses, and
encrypts the archive, then moves it to a remote drive. It will need to be
modified for different environments. It calls a mount script that I'll
provide here also.
Download:
remote_backup.tar.gz View Source:
remote_backup.sh.txt
Mount/Unmount bash scripts
Bash script to mount multiple remote Samba/Windows shares on demand.
By separating the credentials file it is easy to set permissions to
protect the username and pasword. The unmount script is included.
Although this can also be achieved using /etc/fstab, by using a
stand-alone script one can control the number and combinations of Samba
connections.
Download:
mount_script.tar.gz View Source:
mount_common.sh.txt
unmount_common.sh.txt