Debugging
When you run diag_sy_narr.csh #, it outputs a bunch of stuff to the screen. Many times you can figure out what's wrong by scrolling up and finding the first error that occurs. Sometimes it will tell you what's wrong, like “missing ')' “, other times, it's more ambiguous, but it should give you a hint as to where in your code something is wrong.
Other Issues:
-'pgmtopbm' in your diag_sy_narr.csh script doesn't work on 64-bit machines. To avoid this problem:
a) use a 32-bit lab machine. You can tell which is which by logging in, opening a terminal, and typing 'uname -a'. If there's a '386' in what it returns, it's 32bit, is there's '86_64' in
what it returns, then it's a 64bit machine.
b) In diag_sy_narr.csh, near the bottom, replace
ppmtopgm NARRSY_${mn}.ppm | pnminvert | pgmtopbm -thres -val 0.004 > NARRSY_${mn}.pbm
with
ppmtopgm NARRSY_${mn}.ppm | pnminvert | pamditherbw -threshold -value 0.004 | pamtopnm > NARRSY_${mn}.pbm
-Typing 'grads' now works again on the 64-bit machines.