Hello,
> How would i go about finding variables for NCL in a
> NOAA grib file?
>
> i have wgrib to view information, but cant seem to
> find the variable. Here are the results from wgrib.
>
> C:\grib>wgrib wna.wind.grb -s
> 1:0:d=05050606:WIND:sfc:anl:NAve=0
> 2:57092:d=05050606:WIND:sfc:3hr fcst:NAve=0
> 3:114184:d=05050606:WIND:sfc:6hr fcst:NAve=0
> 4:175822:d=05050606:WIND:sfc:9hr fcst:NAve=0
> 5:237460:d=05050606:WIND:sfc:12hr fcst:NAve=0
[SNIP]
> 56:3226434:d=05050606:WIND:sfc:165hr fcst:NAve=0
> 57:3283526:d=05050606:WIND:sfc:168hr fcst:NAve=0
> 58:3340618:d=05050606:WIND:sfc:171hr fcst:NAve=0
> 59:3397710:d=05050606:WIND:sfc:174hr fcst:NAve=0
> 60:3454802:d=05050606:WIND:sfc:177hr fcst:NAve=0
> 61:3511894:d=05050606:WIND:sfc:180hr fcst:NAve=0
>
> I have tried
> in = addfile("wna.WIND.grb","r") : this loads fine
> t = in->WIND : this says fatal not a variable in file
> any suggestions?
>
-----------------------------------------------------------
NCL variables are based on the netCDF variable model. netCDF
requires unique variable and coordinate names. The GRIB
'data model' is different. As a result, NCL gives variables
on GRIB files multi-part names (eg, WIND_GRD_236_MWSL) to ensure
uniqueness. The details of the naming convention are described in
the NCL Reference Manual.
http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/
Click: Supported data format information ...
GRIB - Grids In Binary
--- The next release of NCL will allow the user to create a 'dump' of the file as NCL see it. However, right now you can see the file's contents via:in = addfile("wna.WIND.grb","r") print(in) ; detailed overview of contents
var = getfilevarnames(in) ; variable names only print(var) ; print names only --- The above can be done interactively or in a script.
good luck.
_______________________________________________ ncl-talk mailing list ncl-talk@ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncl-talk
This archive was generated by hypermail 2b29 : Tue Jul 12 2005 - 10:32:00 MDT