Python

Forpedo v0.1.1

Description:
Forpedo is a preprocessor for Fortran that supports generic programming and run-time polymorphism.

Author's Email:
drewmccormack@mac.com

Author's Full Name:
Drew McCormack

Author's Homepage:
http://www.macanics.net

Script File:
forpedo.zip (20.37 KB)

Image path, size, and EXIF data

Description:
This script finds all images on your hard drive below a directory and generates a MATLAB structure with path, size, type, and EXIF information. It's useful for anyone who deals with images in MATLAB.
To use it, run the script with the directory name and output file as arguments:
find_images.py /Users/username/Pictures pictures.m
Then in MATLAB, you can load the pictures and view info about them:

Author's Homepage:

Script File:
find_images.zip (15.81 KB)

Comment/Uncomment MATLAB code in TextWrangler

Description:
For some reason, "Un/Comment Selection" in the Text Menu does not work on MATLAB code in TextWrangler. Could be my system, but this script adds this capability as a UNIX filter.
It's very simple to use, just select one or more lines of code and click the script. It comments or uncomments the selection.

Author's Email:
kimo@mac.com

Author's Homepage:

Script File:
comment.zip (1.46 KB)

Generate Matlab Header

Description:
This script runs in TextWrangler or BBEdit as a UNIX filter. You select the function declaration
function [out1, out2] = function_name( in1, in2 )
click the script, and it generates a pretty header and inserts it at the top of the file. After using the script, you can type (in MATLAB)
>> help function_name
and see your auto-generated documentation.

Author's Email:
kimo@mac.com

Author's Homepage:

Script File:
matlab_header.zip (1.95 KB)

Monatomic chain charge ordering

Description:
This script was developed for my master's project, and solves exactly the charge density wavefunction for electrons on a one-dimensional crystal. The to do list includes improving the wavefunction statistics and expanding to higher dimensions / diatomic chains, but I don't work in condensed matter any more :-(

Author's Email:
leeg@teaching.physics.ox.ac.uk

Author's Full Name:
Graham J Lee

Author's Homepage:
http://users.ox.ac.uk/~wadh1342

Script File:
generalm.py (10.86 KB)

maint_kickstart

Description:
Maintenance script that rekickstarts N nodes based on age of install and job characteristics. Originally made for ROCKS cluster but easily reworked.

Author's Email:
krj4g2@umr.edu

Author's Full Name:
Kevin Johnson

Author's Homepage:
http://www.umr.edu/~krj4g2

Script File:
maint_kickstart.py (5.15 KB)

qsub_wrapper

Description:
A wrapper for qsub to enforce policy (like no interactive jobs) on a cluster.

Author's Email:
krj4g2@umr.edu

Author's Full Name:
Kevin Johnson

Author's Homepage:
http://www.umr.edu/~krj4g2

Script File:
qsub (3.12 KB)

job_data_prerun

Description:
When run from a PBS jobscript this script will give useful information about the job's properties.

Author's Email:
krj4g2@umr.edu

Author's Full Name:
Kevin Johnson

Author's Homepage:
http://www.umr.edu/~krj4g2

Script File:
job_data_prerun.py (1.44 KB)

Forpedo

Description:
Forpedo is a preprocessor for Fortran that implements generic programming similar to C++'s templates. The output of forpedo is fully-conformant Fortran code. Generic programming allows the same code to be used for different types, reducing duplication, and the risk of introducing bugs.
Forpedo is also described in the August 2005 edition of Fortran Forum.

Author's Email:
drewmccormack@mac.com

Author's Full Name:
Drew McCormack

Author's Homepage:
http://www.maniacalextent.com

Script File:
forpedo.zip (13.38 KB)

Source Safari

Description:
Source Safari is a Fortran to HTML translator. The idea is that you run it on a multifile-multidirectory Fortran program, and it generates HTML files for all Fortran source files encountered. You can then browse the HTML files in a browser like Safari, and navigate between files by clicking on subroutine calls. Of course, standard aspects of browser operation also apply; for example, you can create bookmarks for your program, use the forward and back buttons, and lookup history. Source Safari is a user friendly way to learn a large Fortran program, making it ideal for students.

Author's Email:
drewmccormack@mac.com

Author's Full Name:
Drew McCormack

Author's Homepage:
http://www.maniacalextent.com

Script File:
SourceSafari.py.zip (6.07 KB)