cdo doesn’t recognise the name for 100m u and v winds from ERA5. So, I created a small text file called myparam.txt with information about the variables:
¶meter
name = 246
out_name= u100
standard_name = "100 metre U wind component"
units = "m s**-1"
param = 246.228
/
¶meter
name = 247
out_name= v100
standard_name = "100 metre V wind component"
units = "m s**-1"
param = 247.228
Then I used the following cdo command:
cdo -f nc4 setpartabp,myparam.txt ERA5_100m_u_v_hourly_2009.grib qwe.nc
and that worked!
$ cdo sinfov qwe.nc
File format : NetCDF4
-1 : Institut Source T Steptype Levels Num Points Num Dtype : Parameter name
1 : ECMWF unknown v instant 1 1 525 1 F32 : u100
2 : ECMWF unknown v instant 1 1 525 1 F32 : v100
Grid coordinates :
1 : lonlat : points=525 (25x21)
lon : -11 to -5 by 0.25 degrees_east
lat : 56 to 51 by -0.25 degrees_north
Vertical coordinates :
1 : surface : levels=1
Time coordinate : 8760 steps