Some ECMWF data produced by the IFS is stored in GRIB with gridType=sh to indicate that the values are stored as spherical harmonic coefficients. These are the X(n,m,n) coefficients in the discrete representation of the data on a grid by a continuous function expressed as a truncated series of spherical harmonics:
...