From 62de7e1ebab2ce00750d6e07df9f4f8812190f14 Mon Sep 17 00:00:00 2001 From: shahramn Date: Mon, 11 Mar 2024 17:11:01 +0000 Subject: [PATCH] Tools: Print formula for calculating lon2 --- tools/grib_check_gaussian_grid.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/grib_check_gaussian_grid.cc b/tools/grib_check_gaussian_grid.cc index ce944fa28..9c0e8ab2a 100644 --- a/tools/grib_check_gaussian_grid.cc +++ b/tools/grib_check_gaussian_grid.cc @@ -227,7 +227,8 @@ static int process_file(const char* filename) } if (fabs(lon2 - expected_lon2) > angular_tolerance) { - error(filename, msg_num, "longitudeOfLastGridPointInDegrees=%f but should be %f\n", lon2, expected_lon2); + error(filename, msg_num, "longitudeOfLastGridPointInDegrees=%f but should be %f (= 360 - 360/max(pl) )\n", + lon2, expected_lon2); } GRIB_CHECK(grib_get_size(h, "values", &sizeOfValuesArray), 0);