NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: [netcdf-java] problems decoding a grib filem grib parameter 189

Hi Bill:

An "Unknown" param name is always due to us not having that parameter in our 
external grib tables.

Anyone seeing this problem can send us a sample file, which will help us track 
it down.

thanks.

Bill Moninger wrote:
> I'm using netCDF4-java to read grib1 files.
> 
> In one case, a typical RUC file has temperature data in the form VPT
> (virtual potential temperature). wgrib can read the file fine, and gives
> record indicators like this.
> 
> 101:29361886:d=09021719:VPTMP:kpds5=189:kpds6=109:kpds7=1:TR=0:P1=9:P2=0:TimeU=1:hybrid
> lev 1:9hr fcst:NAve=0
> 
> However, netcdf4-java fails, giving the variable name as 'Unknown', and
> apparently filling all the variables with 0.
> 
> Here's some relevant output from ncfile.toString():
> 
>   float Unknown(time=1, hybrid=50, y=337, x=451);
>      :units = "Unknown";
>      :long_name = "Unknown @ hybrid";
>      :missing_value = -9999.0f; // float
>      :grid_mapping = "Lambert_Conformal";
>      :GRIB_param_name = "Unknown";
>      :GRIB_center_id = 59; // int
>      :GRIB_table_id = 2; // int
>      :GRIB_param_number = 189; // int
>      :GRIB_param_id = 1, 59, 2, 189; // int
>      :GRIB_product_definition_type = "Forecast/Uninitialized
> Analysis/Image Product";
>      :GRIB_level_type = 109; // int
> 
> Any thoughts on how to solve this problem?
> 
> -Bill


  • 2009 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: