mirror of https://github.com/ecmwf/eccodes.git
Merge pull request #24 in ECCODES/eccodes from feature/spherical-harmonics-below-truncation=20 to develop
* commit '5b9fd7f621a35cbf6e24c73e80d7551e69f23c0e': Encoding of spherical harmonics when truncation less than 20
This commit is contained in:
commit
d877503b03
|
@ -1202,9 +1202,10 @@ grib_handle* grib_util_set_spec2(grib_handle* h,
|
|||
{
|
||||
SET_STRING_VALUE("packingType", "spectral_complex");
|
||||
packingTypeIsSet=1;
|
||||
SET_LONG_VALUE("JS", 20);
|
||||
SET_LONG_VALUE("KS", 20);
|
||||
SET_LONG_VALUE("MS", 20);
|
||||
long JS = spec->truncation < 20 ? spec->truncation : 20;
|
||||
SET_LONG_VALUE("JS", JS);
|
||||
SET_LONG_VALUE("KS", JS);
|
||||
SET_LONG_VALUE("MS", JS);
|
||||
if (packing_spec->packing == GRIB_UTIL_PACKING_USE_PROVIDED && editionNumber==2 ) {
|
||||
SET_LONG_VALUE("computeLaplacianOperator", 1);
|
||||
} else if ((!(*err) && strcmp(input_grid_type,"sh")) || packing_spec->computeLaplacianOperator ) {
|
||||
|
|
Loading…
Reference in New Issue