cdo skipping V-wind component
Added by Huy Quang TRan over 5 years ago
Hi all,
I use cdo to copy wnd10mx0.5.gdas.200210.grb2 to wnd10mx0.5.gdas.200210.grb2.nc
the input *grb2 was from CFSR hourly wind data which contains u,v wind components, but the output only gave me u-wind. When running the command:
cdo -f nc copy wnd10mx0.5.gdas.200210.grb2 wnd10mx0.5.gdas.200210.grb2.nc
I see only one variable was copied:
cdo copy: Processed 3922740 values from 1 variable over 620 timesteps ( 2.60s )
Has anyone experienced this issue? do you have any sugguestion?
P/s: a detail of cdo version I am using is below:
Climate Data Operators version 1.9.1 (http://mpimet.mpg.de/cdo)
Compiled: by hugo on hugo (x86_64-unknown-linux-gnu) Aug 3 2019 18:51:49
CXX Compiler: g++ -std=gnu++11 -g -O2 -fopenmp
CXX version : g++ (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609
C Compiler: gcc -fPIC -fopenmp
C version : gcc (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609
Features: DATA PTHREADS OpenMP4 SSE2
Libraries:
Filetypes: srv ext ieg grb1 grb2 nc1 nc5
CDI library version : 1.9.1 of Aug 3 2019 18:49:19
CGRIBEX library version : 1.9.0 of Sep 29 2017 10:16:02
GRIB_API library version : 1.24.0
NetCDF library version : 4.4.0 of Mar 29 2016 11:41:40 $
SERVICE library version : 1.4.0 of Aug 3 2019 18:49:15
EXTRA library version : 1.4.0 of Aug 3 2019 18:49:13
IEG library version : 1.4.0 of Aug 3 2019 18:49:14
FILE library version : 1.8.3 of Aug 3 2019 18:49:13
Thanks
wnd10mx0.5.gdas.200210.grb2 (6.9 MB) wnd10mx0.5.gdas.200210.grb2 | input grb2 | ||
wnd10mx0.5.gdas.200210.grb2.nc (15 MB) wnd10mx0.5.gdas.200210.grb2.nc | output netcdf |
Replies (1)
RE: cdo skipping V-wind component - Added by Uwe Schulzweida over 5 years ago
Your GRIB2 file contains multiple fields in single grib message. That means u and v are stored together in one grib message.
This GRIB2 feature is not supported in CDO.
A workaround is to store each field in a single grib message. Here is an example to do this with the ecCodes grib_filter tool:
echo "write;" > rule_file grib_filter -o outfile rule_file infile