Facebook Badge

Sunday, July 12, 2009

Scripting Life: Parsing geometries in GAMESS

Here is a script that will extract the last geometry from a GAMESS log file (optimization/saddle point run)

#!/bin/bash
# Proper header for a Bash script.
PARAMS=` grep 'TOTAL NUMBER OF ATOMS' $1 | tr -s ' ' | cut -d '=' -f 2`
let LINES=PARAMS+1
grep -A $LINES ' ATOM CHARGE X Y Z' $1 > .temp
echo ' $DATA '
tail -n $PARAMS .temp
echo ' $END '

Supply a log file to the script at the command line and the last geometry will be printed out.

Lets go over the code:

PARAMS=` grep 'TOTAL NUMBER OF ATOMS' $1 | tr -s ' ' | cut -d '=' -f 2`

This line extracts the number of atoms and stores it in the variable PARAMS

The variable LINES stores the number of lines we need to grep AHEAD in order to acquire the coordinates of the geometry.

grep -A $LINES ' ATOM CHARGE X Y Z' $1 > .temp

Greps the coordinates for each NSERCH and stores it in a file called .temp

The last three lines provides a convenient print out for pasting.

I'm sure there is a more elegant way of doing this with maybe sed or awk or perl.

Cherry Limeade. The ghetto's finest!

New Items Listed - Word On The Streets








Click image for eBay link.

Saturday, July 11, 2009

Kanye West Bear Costume



Halloween is 3 months away.

So start planning or saving.

The Kanye West Murakami Bear costume is up for sale to the highest bidder.

Restriction:
Your shipping address can not be on the EAST COAST.

Sizing:
The bear head is ONE SIZE FITS MOST.
The shoes are size US 9 ATO MATSUMOTO (but you don't have to purchase them - Air Yeezys would also do the trick!).
You can cop the Kanye West shirt from the Kanye West website.
The varsity is a Large. The varsity will not work for people who are inbetween LARGE and EXTRA-LARGE.
You supply your own jeans. (I'm wearing Stussy x NBHDs in the photo).

Submit offers to: sarom.iowastate@gmail.com

Believe me - this costume will attract attention!

It's cold enough .... I think

Never too early for SAKE!

MTV is WACK

Bring back MUSIC VIDEOS!

Friday, July 10, 2009

@FIJIWATER - Thanks for the hookup! It's like +80*F in Ames, Iowa right now!

Pad Ka Prow / Fried Tofu / Thai Ice Tea

It is never too late to be a theoretical chemist!

What is this world coming to?

8 children found in home with dead parents (via CNN)

Thursday, July 9, 2009

She's got another one ...

Wednesday, July 8, 2009

Halloween 2009



Nike Transformers Pack - 2009

by way of Walyou blog (here)







Tuesday, July 7, 2009

Weekend Review

Sunday, July 5, 2009

D.C. Sunset

Tango on Freedom Plaza? I'll pass like a white guy on some ass.



Dancing on Freedom Plaza.

Game Over. Fogo de Chao wins. Time for Transformers 2 on IMAX!

Saroming it up!

Brazilian Mohito :)

Fogo de Chao : Red Light!

Damn, gone too early. Baltimorians missing him.

iPhone 3Gs line at Apple store - Tyson, VA

Addidas - pretty sweet concept.

Addidas store in Tysons VA

A lot of history going on this year ...


Rossyln, VA Skyline



Rossyln, VA Skyline

Photos by yours trilly!