Hi all,
I am reading in some quarter degree SST data which was originally in netCDF format and I converted over to grib2 format using the Iris package in Python. The Python script does successfully convert the data over to grib2 format, however the metadata appears to have gotten mixed up in the conversion process. The output from the g2print command produces:
ungrib - grib edition num 2
reading from grib file =
avhrr-only-v2.20170909.grib2
UKMO
-------------------------------------------------------------------------------
--------
rec Prod Cat Param Lvl Lvl Lvl Prod Name Time
Fcst
num Disc num code one two Templ
hour
-------------------------------------------------------------------------------
--------
1 255 255 255 103 0 0 0 IMGD 2017-09-09_00:00:00 00
Successful completion of g2print
With IMGD being the name and the parameter number being 255 (or missing). Additionally the level code is set as 103, when it should be either 1 (surface) or 102 (sea-level) however I am not sure which. I have come here with the hopes that somebody on here has dealt with this issue in the past and may have some suggestions on what to do, whether it be rewriting the Vtable for reading in the SST, or rewriting the metadata to something that ungrib will accept.
I am reading in some quarter degree SST data which was originally in netCDF format and I converted over to grib2 format using the Iris package in Python. The Python script does successfully convert the data over to grib2 format, however the metadata appears to have gotten mixed up in the conversion process. The output from the g2print command produces:
ungrib - grib edition num 2
reading from grib file =
avhrr-only-v2.20170909.grib2
UKMO
-------------------------------------------------------------------------------
--------
rec Prod Cat Param Lvl Lvl Lvl Prod Name Time
Fcst
num Disc num code one two Templ
hour
-------------------------------------------------------------------------------
--------
1 255 255 255 103 0 0 0 IMGD 2017-09-09_00:00:00 00
Successful completion of g2print
With IMGD being the name and the parameter number being 255 (or missing). Additionally the level code is set as 103, when it should be either 1 (surface) or 102 (sea-level) however I am not sure which. I have come here with the hopes that somebody on here has dealt with this issue in the past and may have some suggestions on what to do, whether it be rewriting the Vtable for reading in the SST, or rewriting the metadata to something that ungrib will accept.