My WRF to GEMPAK conversion code is contained in the following archive:
Version 1.3.1 - wrf2gem.tar.gz (36 K)
To compile the code, I have included a Makefile that you'll probably have to modify. Enjoy!
What's New
Fixes geopotential height for WRF version 2.2 (but breaks it for older WRF output)
Modified Makefile for GEMPAK 5.9.4
Common Problems
Your compiler may complain about not finding netcdf.mod. There are a number of ways to fix this:
Add the flag -module /dir/to/netcdfmodfile to the compiler options. (A different flag may be required if you are not using pgf90.) This allows your compiler to find netcdf.mod.
Create a symbolic link to netcdf.mod in your source directory.
(Most general fix) Create a symbolic link to netcdf.mod in /usr/local/include.