<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: times new roman,new york,times,serif; font-size: 12pt; color: #330033'><div style="color: rgb(51, 0, 51); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="color: rgb(51, 0, 51); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">Hello,</div><div style="color: rgb(51, 0, 51); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="color: rgb(51, 0, 51); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">I have been using the w2grb.gs script to put a number of paramters from model output of wavewatch 3 into a grib2 file.</div><div style="color: rgb(51, 0, 51); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">This works but<b> I am having difficulties outputting peak wave period and the primary and secondary swell as grib2.</b></div><div style="color: rgb(51, 0, 51); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="color: rgb(51, 0, 51); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">Below is an extract from my grads script that has been working.</div><div style="color: rgb(51, 0, 51); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="color: rgb(51, 0, 51); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div><div><font color="#330033" face="times new roman, new york, times, serif"> <i> 'g2grb.gs hs /var/outgoing/twc-ww3/wzww3_'%time'.grb2 d='%analydate':HTSGW:surface:'%time' hour fcst'</i></font></div><div><font color="#330033" face="times new roman, new york, times, serif"><i> 'g2grb.gs wu +/var/outgoing/twc-ww3/wzww3_'%time'.grb2 d='%analydate':UGRD:surface:'%time' hour fcst'</i></font></div><div><font color="#330033" face="times new roman, new york, times, serif"><i> 'g2grb.gs wv +/var/outgoing/twc-ww3/wzww3_'%time'.grb2 d='%analydate':VGRD:surface:'%time' hour fcst'</i></font></div><div><font color="#330033" face="times new roman, new york, times, serif"><i> 'g2grb.gs tmn +/var/outgoing/twc-ww3/wzww3_'%time'.grb2 d='%analydate':WVPER:surface:'%time' hour fcst'</i></font></div><div><font color="#330033" face="times new roman, new york, times, serif"><i> 'g2grb.gs dirmndeg +/var/outgoing/twc-ww3/wzww3_'%time'.grb2 d='%analydate':WVDIR:surface:'%time' hour fcst'</i></font></div><div><font color="#330033" face="times new roman, new york, times, serif"><i> 'g2grb.gs peakp +/var/outgoing/twc-ww3/wzww3_'%time'.grb2 d='%analydate':PERPW:surface:'%time' hour fcst'</i></font></div><div><font color="#330033" face="times new roman, new york, times, serif"><i> 'g2grb.gs peakddeg +/var/outgoing/twc-ww3/wzww3_'%time'.grb2 d='%analydate':DIRPW:surface:'%time' hour fcst'</i></font></div></div><div style="color: rgb(51, 0, 51); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="color: rgb(51, 0, 51); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="color: rgb(51, 0, 51); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">However it turns out that the variable name PERPW is the primary wave period not the peak period. </div><div style="color: rgb(51, 0, 51); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">If I use PKPER (as it looks like it should be from http://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_table4-2-10-0.shtml</div><div style="color: rgb(51, 0, 51); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">I get </div><div style="color: rgb(51, 0, 51); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><i>** FATAL ERROR **</i></div><div style="color: rgb(51, 0, 51); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><i>set_var could not find PKPER</i></div><div style="color: rgb(51, 0, 51); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="color: rgb(51, 0, 51); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">Is it a case of upgrading wgrib2 (<span style="font-size: 12pt;">I am using wgrib2 V0.1.9.2c)?</span><span style="font-size: 12pt;"> If so can I get a precompiled version somewhere that will on linux CENTOS? </span></div><div><br></div>Additionally I want to output primary and secondary swell as grib2. These are not listed in the above table although it is implied in the Wavewatch documentation that these fields can be packed as grib2. So I am confused if I can convert these fields to grib2.<div><br></div><div>Or perhaps there is another way to do this easily?</div><div><br></div><div>Thanks for your time.</div><div><br></div><div>Kind regards,</div><div><br></div><div>Liz</div><div>--------------</div><div><br><div style="color: rgb(51, 0, 51); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><span></span>Dr. Elisabeth Donnell <br><br>weatherzone°<br>M 0425322032<span></span><br></div><br></div></div></body></html>