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.
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 -- William R. Moninger http://www-frd.fsl.noaa.gov/~moninger/ NOAA / Earth Systems Research Laboratory / Global Systems Division 325 Broadway, R/GSD1 voice: 303-497-6435 Boulder, CO 80305 fax: 303-497-3329
netcdf-java
archives: