<div dir="ltr"><div>A few things:</div><div>1) There should be no reason to convert the GRIB2 file to netCDF just to view the fields in GrADS. GrADS is entirely capable of reading GRIB2 files. You can use g2ctl (if you don't already have it on your system, Google it and save the text code to your own file) to write a control file based on the GRIB2 file contents. It is very simple to operate once you have the code.</div><div><br></div><div>2) It is most likely that the array names were changed in the conversion from GRIB2 to netCDF. I presume you used the NCL utility ncl_convert2_nc. You would need to use ncdump -h to see what the array names have become and then write a control file based on those names instead.</div><div><br></div><div>Jeff Duda<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 22, 2021 at 2:49 PM Jason Warren <<a href="mailto:jason@solargrafix.com">jason@solargrafix.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
I downloaded a GEFS file, and I used wgrib2 to convert the file to <br>
netcdf format.  Using wgrib2, I looked at the variables in the grib <br>
file, and here is a sample:<br>
<br>
74:13220199:d=2021012212:LHTFL:surface:0-3 hour ave fcst:ens-mean<br>
75:13383726:d=2021012212:SHTFL:surface:0-3 hour ave fcst:ens-mean<br>
76:13633911:d=2021012212:PWAT:entire atmosphere (considered as a single <br>
layer):3 hour fcst:ens-mean<br>
77:13787635:d=2021012212:TCDC:entire atmosphere:0-3 hour ave fcst:ens-mean<br>
78:13964039:d=2021012212:DSWRF:surface:0-3 hour ave fcst:ens-mean<br>
79:14033256:d=2021012212:DLWRF:surface:0-3 hour ave fcst:ens-mean<br>
80:14190680:d=2021012212:USWRF:surface:0-3 hour ave fcst:ens-mean<br>
81:14279940:d=2021012212:ULWRF:surface:0-3 hour ave fcst:ens-mean<br>
82:14401540:d=2021012212:ULWRF:top of atmosphere:0-3 hour ave fcst:ens-mean<br>
83:14547338:d=2021012212:CAPE:180-0 mb above ground:3 hour fcst:ens-mean<br>
84:14683912:d=2021012212:CIN:180-0 mb above ground:3 hour fcst:ens-mean<br>
85:14774466:d=2021012212:PRMSL:mean sea level:3 hour fcst:ens-mean<br>
<br>
I tried to plot the Mean Sea Level Pressure.  In my script, I used 'd <br>
PRMSL', however in GrADS, I get the following error:<br>
<br>
Syntax Error:  Invalid Operand<br>
   'prmsl' not a variable or function name<br>
   Error ocurred at column 1<br>
DISPLAY error:  Invalid expression<br>
   Expression = prmsl<br>
<br>
What am I doing wrong?<br>
<br>
Thanks,<br>
Jason Warren<br>
<br>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font size="2"><span>Jeff Duda, Research Scientist</span></font></div><div dir="ltr"><font size="2"><span></span></font>University of Colorado Boulder</div><div dir="ltr"><font size="2"><span></span></font>Cooperative Institute for Research in Environmental Sciences</div><div dir="ltr">NOAA/OAR/ESRL/Global Systems Laboratory<br><font size="2"><span>

<span>Boulder, CO<br></span></span></font>



</div></div></div></div></div></div></div></div></div></div>