[gradsusr] extract wind profile for plot, or wgrib2?

Bo Zhang bzhang3 at mtu.edu
Tue Oct 11 11:33:49 EDT 2011


Hi great grads users:

I basically want to extract wind profile at a certain lon-lat location for a long period. As each grib2 file is for a certain time, I have to extract wind profile from multiple data files. Is there a build-in function in Grads2 do such thing? I am trying wgrib2 also, which doesn't give result I expect. 

./wgrib2 gfs_3_20090719_1800_003.grb2 -s -ij 45 45 | grep :UGRD | ./wgrib2 -i gfs_3_20090719_1800_003.grb2 -text data.txt

Based on my understanding this supposes to work but it writes the whole field instead of a single lon-lat location into the .txt file. Dump the rewrite part and just keep the reading part:

./wgrib2 gfs_3_20090719_1800_003.grb2 -s -ij 45 45 | grep :UGRD |

This does display what I want, but never rewrite into any new files. Looking for suggestions.

Bo Zhang
Dow 824,Civil and Environmental Engineering
Michigan Tech University
1400 Townsends Drive. 
Houghton, MI, 49931



More information about the gradsusr mailing list