Project

General

Profile

wrf output to grib

Added by Jure Praznikar about 13 years ago

I was trying convert WRF output to grib format file.

cdo sinfo wrfout_d01_2010-06-16_00\:00\:00

Horizontal grids :
1 : curvilinear > size : dim = 2401 nx = 49 ny = 49
XLONG : min = 13.425087 max = 14.0452194 degree_east
XLAT : min = 45.4875946 max = 45.9206505 degree_north
available : xvals yvals
2 : generic > size : dim = 34
3 : generic > size : dim = 35
4 : generic > size : dim = 4
5 : curvilinear > size : dim = 2450 nx = 50 ny = 49
XLONG_U : min = 13.4186325 max = 14.0516129 degree_east
XLAT_U : min = 45.4875526 max = 45.9206505 degree_north
available : xvals yvals
6 : curvilinear > size : dim = 2450 nx = 49 ny = 50
XLONG_V : min = 13.4250183 max = 14.0452194 degree_east
XLAT_V : min = 45.48312 max = 45.9251442 degree_north
available : xvals yvals
7 : generic > size : dim = 1
Vertical grids :
1 : surface : 0
2 : generic level : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
3 : generic level : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
4 : generic level : 1 2 3 4
Time axis : 1 step
YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss
2010-06-16 00:00:00
cdo sinfo: Processed 113 variables over 1 timestep. ( 0.00s )


cdo -f grb selgrid,1,5,6,7 wrfout file.grb

I get a grib file containing only 2D variables.(?) When I read grib file using other
program I get 0 vertical levels and latitude range "45.92 45.49 Grid distance: -0.01" (negative grid distance?)
It should be "45.49 45.91 Grid distance: 0.01"

Thank you in advance.
Jure


Replies (3)

RE: wrf output to grib - Added by Uwe Schulzweida about 13 years ago

Hi Jure,

Could you please provide the input data and the result of 'cdo -V'.

Cheers,
Uwe

RE: wrf output to grib - Added by Jure Praznikar about 13 years ago

Uwe Schulzweida wrote:

Hi Jure,

Could you please provide the input data and the result of 'cdo -V'.

Cheers,
Uwe

Climate Data Operators version 1.4.7 (http://code.zmaw.de/projects/cdo)
Compiler: gcc -std=gnu99 -g -O2
version: gcc (SUSE Linux) 4.4.1 [gcc-4_4-branch revision 150839]
with: NC4 PTHREADS Z
Compiled: by jure on nadezagar (x86_64-unknown-linux-gnu) Feb 8 2011 18:39:09
CDI library version : 1.4.7 of Feb 8 2011 18:39:04
CGRIBEX library version : 1.4.7 of Nov 12 2010 08:21:37
netCDF library version : 4.1.1 of Apr 30 2010 14:46:48 $
HDF5 library version : 1.8.3
SERVICE library version : 1.3.0 of Feb 8 2011 18:38:55
EXTRA library version : 1.3.0 of Feb 8 2011 18:38:53
IEG library version : 1.3.0 of Feb 8 2011 18:38:55
FILE library version : 1.7.1 of Feb 8 2011 18:38:53

00 (4.63 MB) 00

RE: wrf output to grib - Added by Uwe Schulzweida about 13 years ago

Hi Jure,

Your WRF netCDF contains data on a curvilinear grid. GRIB1 can't store the information about this grid. If you try it anyway, you will get the following message:

Warning (cgribexDefGrid) : Curvilinear grids are unsupported in GRIB1! Created wrong GDS!
That means the information about the curvilinear will be lost and you can't use the grid information from the resulting GRIB file.

Best regards,
Uwe

    (1-3/3)