[ncl-talk] grib1 to grib2 and read by NCL
Debasish Hazra
debasish.hazra5 at gmail.com
Tue Jan 16 21:14:35 MST 2018
Hi,
I have an input grib file which I converted to Grib2 using 'cnvgrib"
and tried to read in NCL (v6.4). However, it shows only 2 variables,
instead of 6 variables in the input.
Attached is input Grib1 file, which I then converted to grib2 using
"cnvgrib -g12 in.grib out.grib2". Checked with ncl_filedump with the new
out.grib2 which shows only 2 variable names. I run wgrib2 on the new file
which shows all the 6. Attached are ncl_filedump of input and output files.
Any help.
Thanks.
Debasish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180116/fa959418/attachment-0001.html>
-------------- next part --------------
Copyright (C) 1995-2017 - All Rights Reserved
University Corporation for Atmospheric Research
NCAR Command Language Version 6.4.0
The use of this software is governed by a License Agreement.
See http://www.ncl.ucar.edu/ for more details.
warning:NclGRIB: Unknown grib parameter number detected (133, center 7, table version 141 grib record 2), using default variable name (VAR_133)
warning:NclGRIB: Unknown grib parameter number detected (134, center 7, table version 141 grib record 3), using default variable name (VAR_134)
warning:NclGRIB: Unknown grib parameter number detected (135, center 7, table version 141 grib record 4), using default variable name (VAR_135)
warning:NclGRIB: Unknown grib parameter number detected (137, center 7, table version 141 grib record 6), using default variable name (VAR_137)
Variable: f
Type: file
filename: AOD550.Grb.t00z.f00
path: 20150628/AOD550.Grb.t00z.f00
file global attributes:
dimensions:
g4_lat_0 = 190
g4_lon_1 = 384
variables:
float C_WAT_GDS4_EATM ( g4_lat_0, g4_lon_1 )
center : US National Weather Service - NCEP (WMC)
long_name : Cloud water
units : kg/m^2
_FillValue : 1e+20
level_indicator : 200
gds_grid_type : 4
parameter_table_version : 2
parameter_number : 76
model : Analysis from GDAS (Global Data Assimilation System)
level : 0
forecast_time : 0
forecast_time_units : hours
initial_time : 06/28/2015 (00:00)
float AOD_GDS4_EATM ( g4_lat_0, g4_lon_1 )
center : US National Weather Service - NCEP (WMC)
long_name : Aerosol optical depth
units : non-dim
_FillValue : 1e+20
level_indicator : 200
gds_grid_type : 4
parameter_table_version : 141
parameter_number : 129
model : Analysis from GDAS (Global Data Assimilation System)
level : 0
forecast_time : 0
forecast_time_units : hours
initial_time : 06/28/2015 (00:00)
float VAR_133_GDS4_EATM ( g4_lat_0, g4_lon_1 )
center : US National Weather Service - NCEP (WMC)
long_name : unknown variable name
units : unknown
_FillValue : 1e+20
level_indicator : 200
gds_grid_type : 4
parameter_table_version : 141
parameter_number : 133
model : Analysis from GDAS (Global Data Assimilation System)
level : 0
forecast_time : 0
forecast_time_units : hours
initial_time : 06/28/2015 (00:00)
float VAR_134_GDS4_EATM ( g4_lat_0, g4_lon_1 )
center : US National Weather Service - NCEP (WMC)
long_name : unknown variable name
units : unknown
_FillValue : 1e+20
level_indicator : 200
gds_grid_type : 4
parameter_table_version : 141
parameter_number : 134
model : Analysis from GDAS (Global Data Assimilation System)
level : 0
forecast_time : 0
forecast_time_units : hours
initial_time : 06/28/2015 (00:00)
float VAR_135_GDS4_EATM ( g4_lat_0, g4_lon_1 )
center : US National Weather Service - NCEP (WMC)
long_name : unknown variable name
units : unknown
_FillValue : 1e+20
level_indicator : 200
gds_grid_type : 4
parameter_table_version : 141
parameter_number : 135
model : Analysis from GDAS (Global Data Assimilation System)
level : 0
forecast_time : 0
forecast_time_units : hours
initial_time : 06/28/2015 (00:00)
float VAR_137_GDS4_EATM ( g4_lat_0, g4_lon_1 )
center : US National Weather Service - NCEP (WMC)
long_name : unknown variable name
units : unknown
_FillValue : 1e+20
level_indicator : 200
gds_grid_type : 4
parameter_table_version : 141
parameter_number : 137
model : Analysis from GDAS (Global Data Assimilation System)
level : 0
forecast_time : 0
forecast_time_units : hours
initial_time : 06/28/2015 (00:00)
float g4_lat_0 ( g4_lat_0 )
long_name : latitude
GridType : Gaussian Latitude/Longitude Grid
units : degrees_north
N : 95
Di : 0.9375013
Lo2 : 359.063
La2 : -89.277
Lo1 : 0
La1 : 89.277
float g4_lon_1 ( g4_lon_1 )
long_name : longitude
GridType : Gaussian Latitude/Longitude Grid
units : degrees_east
N : 95
Di : 0.9375013
Lo2 : 359.063
La2 : -89.277
Lo1 : 0
La1 : 89.277
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AOD550.Grb.t00z.f00
Type: application/octet-stream
Size: 876024 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180116/fa959418/attachment-0001.obj>
-------------- next part --------------
Copyright (C) 1995-2017 - All Rights Reserved
University Corporation for Atmospheric Research
NCAR Command Language Version 6.4.0
The use of this software is governed by a License Agreement.
See http://www.ncl.ucar.edu/ for more details.
warning: NclGRIB2: codetable file "/global/noscrub/Debasish.Hazra/NCL_64/lib/ncarg/grib2_codetables/ncep/4/4.2.255.255.table" not a valid GRIB2 code table.
warning:NclGRIB2: VAR_255_255_255_P0_L200 contains records that NCL cannot currently differentiate. One or more records will be ignored.
Variable: f
Type: file
filename: AOD550.t00z.f00
path: control_gfed/20150628/AOD550.t00z.f00.grib2
file global attributes:
dimensions:
lat_0 = 190
lon_0 = 384
variables:
float CWAT_P0_L200_GGA0 ( lat_0, lon_0 )
center : US National Weather Service - NCEP (WMC)
production_status : Operational products
long_name : Cloud water
units : kg m-2
_FillValue : 1e+20
grid_type : Gaussian latitude/longitude
parameter_discipline_and_category : Meteorological products, Cloud
parameter_template_discipline_category_number : ( 0, 0, 6, 6 )
level_type : Entire atmosphere (considered as a single layer)
level : 0
forecast_time : 0
forecast_time_units : hours
initial_time : 06/28/2015 (00:00)
float VAR_255_255_255_P0_L200_GGA0 ( lat_0, lon_0 )
center : US National Weather Service - NCEP (WMC)
production_status : Operational products
long_name : unknown variable name
units : unknown
_FillValue : 1e+20
grid_type : Gaussian latitude/longitude
parameter_discipline_and_category : Missing, Missing
parameter_template_discipline_category_number : ( 0, 255, 255, 255 )
level_type : Entire atmosphere (considered as a single layer)
level : 0
forecast_time : 0
forecast_time_units : hours
initial_time : 06/28/2015 (00:00)
float lat_0 ( lat_0 )
long_name : latitude
grid_type : Gaussian Latitude/Longitude
units : degrees_north
N : 95
Di : 0.9375013
Lo2 : 359.063
La2 : -89.277
Lo1 : 0
La1 : 89.277
float lon_0 ( lon_0 )
long_name : longitude
grid_type : Gaussian Latitude/Longitude
units : degrees_east
N : 95
Di : 0.9375013
Lo2 : 359.063
La2 : -89.277
Lo1 : 0
La1 : 89.277
More information about the ncl-talk
mailing list