Hi Julian:
Because this file has more than one GDS, they get placed into seperate groups:
netcdf C:/data/test/INDOuestN_20652.grb {
Group proj0 {
dimensions:
time = 7; // (has coord.var)
lat = 31; // (has coord.var)
lon = 21; // (has coord.var)
height_above_ground = 1; // (has coord.var)
variables:
float u_wind(time=7, height_above_ground=1, lat=31, lon=21);
:units = "m/s";
:long_name = "u wind @ height_above_ground";
:missing_value = -9999.0f; // float
:GRIB_param_name = "u wind";
:GRIB_center_id = 98; // int
:GRIB_table_id = 2; // int
:GRIB_param_number = 33; // int
:GRIB_param_id = 1, 98, 2, 33; // int
:GRIB_product_definition_type = "Forecast/Uninitialized Analysis/Image
Product";
:GRIB_level_type = 105; // int
float v_wind(time=7, height_above_ground=1, lat=31, lon=21);
:units = "m/s";
:long_name = "v wind @ height_above_ground";
:missing_value = -9999.0f; // float
:GRIB_param_name = "v wind";
:GRIB_center_id = 98; // int
:GRIB_table_id = 2; // int
:GRIB_param_number = 34; // int
:GRIB_param_id = 1, 98, 2, 34; // int
:GRIB_product_definition_type = "Forecast/Uninitialized Analysis/Image
Product";
:GRIB_level_type = 105; // int
char latLonCoordSys;
:_CoordinateAxes = "time lat lon";
int time(time=7);
:long_name = "forecast time";
:units = "hour since 2006-07-17T12:00:00Z";
:GRIB_orgReferenceTime = "2006-07-17T12:00:00Z";
:GRIB2_significanceOfRTName = "Start of forecast";
:_CoordinateAxisType = "Time";
double lat(lat=31);
:units = "degrees_north";
:long_name = "latitude coordinate";
:standard_name = "latitude";
:grid_spacing = "-2.0 degrees_north";
:_CoordinateAxisType = "Lat";
double lon(lon=21);
:units = "degrees_east";
:long_name = "longitude coordinate";
:standard_name = "longitude";
:grid_spacing = "2.0 degrees_east";
:_CoordinateAxisType = "Lon";
double height_above_ground(height_above_ground=1);
:long_name = "Specified height level above ground";
:units = "m";
:positive = "up";
:GRIB_level_type = "105";
:_CoordinateAxisType = "Height";
:_CoordinateZisPositive = "up";
}
Group proj1 {
dimensions:
time = 7; // (has coord.var)
lat = 21; // (has coord.var)
lon = 21; // (has coord.var)
height_above_ground = 1; // (has coord.var)
variables:
float Pressure_reduced_to_MSL(time=7, lat=21, lon=21);
:units = "Pa";
:long_name = "Pressure reduced to MSL @ msl";
:missing_value = -9999.0f; // float
:GRIB_param_name = "Pressure reduced to MSL";
:GRIB_center_id = 98; // int
:GRIB_table_id = 2; // int
:GRIB_param_number = 2; // int
:GRIB_param_id = 1, 98, 2, 2; // int
:GRIB_product_definition_type = "Forecast/Uninitialized Analysis/Image
Product";
:GRIB_level_type = 102; // int
float Sig_height_of_wind_waves_and_swell(time=7, lat=21, lon=21);
:units = "m";
:long_name = "Sig height of wind waves and swell @ msl";
:missing_value = -9999.0f; // float
:GRIB_param_name = "Sig height of wind waves and swell";
:GRIB_center_id = 98; // int
:GRIB_table_id = 2; // int
:GRIB_param_number = 100; // int
:GRIB_param_id = 1, 98, 2, 100; // int
:GRIB_product_definition_type = "Forecast/Uninitialized Analysis/Image
Product";
:GRIB_level_type = 102; // int
char latLonCoordSys;
:_CoordinateAxes = "time lat lon";
int time(time=7);
:long_name = "forecast time";
:units = "hour since 2006-07-17T12:00:00Z";
:GRIB_orgReferenceTime = "2006-07-17T12:00:00Z";
:GRIB2_significanceOfRTName = "Start of forecast";
:_CoordinateAxisType = "Time";
double lat(lat=21);
:units = "degrees_north";
:long_name = "latitude coordinate";
:standard_name = "latitude";
:grid_spacing = "-2.0 degrees_north";
:_CoordinateAxisType = "Lat";
double lon(lon=21);
:units = "degrees_east";
:long_name = "longitude coordinate";
:standard_name = "longitude";
:grid_spacing = "2.0 degrees_east";
:_CoordinateAxisType = "Lon";
double height_above_ground(height_above_ground=1);
:long_name = "Specified height level above ground";
:units = "m";
:positive = "up";
:GRIB_level_type = "105";
:_CoordinateAxisType = "Height";
:_CoordinateZisPositive = "up";
}
:Conventions = "CF-1.0";
:Originating_center = "ECMWF, RSMC subcenter = 0";
:Generating_Process_or_Model = "Lake Ice Forecast Model";
:Product_Type = "Forecast/Uninitialized Analysis/Image Product";
:cdm_data_type = "Grid";
:creator_name = "ECMWF, RSMC subcenter = 0";
:file_format = "GRIB-1";
:location = "C:/data/test/INDOuestN_20652.grb";
:history = "Direct read of GRIB into NetCDF-Java 2.2 API";
:_CoordinateModelRunDate = "2006-07-17T12:00:00Z";
}
You can see this by usung the ToolsUI program.
These cannot be written into a netcdf-3 file, which doesnt support groups. We
could probably add an option to flatten groups so that they can be written to
netcdf-3, but its not available at this point.
We will respond separately about the table problem.
Ticket Details
==================
Ticket ID: WCC-197892
Department: Support netCDF Java
Priority: Normal
Status: Open