From f39769bba2b9b3a947f539dc283d4759ad75b254 Mon Sep 17 00:00:00 2001 From: Eric Engle Date: Fri, 26 Jan 2024 09:28:35 -0500 Subject: [PATCH 1/2] Fix for mapping of bytes for PDT 4.32 Fixed byte length at index 8 from -2 to -4. --- src/pdstemplates.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pdstemplates.c b/src/pdstemplates.c index 007369ac..6ab61d1d 100644 --- a/src/pdstemplates.c +++ b/src/pdstemplates.c @@ -142,7 +142,7 @@ static const struct pdstemplate templatespds[G2C_MAX_PDS_TEMPLATE] = statistical processing */ {1101, 22, 0, {1, 1, 1, 1, 1, 2, 1, 1, -4, 1, -1, -4, 1, -1, -4, 4, 1, 1, 1, 4, 1, 4}}, /** 4.32:Simulate (synthetic) Satellite Product */ - {32, 10, 1, {1, 1, 1, 1, 1, 2, 1, 1, -2, 1}}, + {32, 10, 1, {1, 1, 1, 1, 1, 2, 1, 1, -4, 1}}, /** 4.44: Analysis or forecast at a horizontal level or in a horizontal layer at a point in time for Aerosol */ {44, 21, 0, {1, 1, 2, 1, -1, -4, -1, -4, 1, 1, 1, 2, 1, 1, -2, 1, -1, -4, 1, -1, -4}}, From 7208e5849df9dd36ef2a4f14187bff441665e028 Mon Sep 17 00:00:00 2001 From: Eric Engle Date: Fri, 26 Jan 2024 09:52:25 -0500 Subject: [PATCH 2/2] Update tst_pdstemplates.c with fix for PDT 4.32 Updated tst_pdstemplate.c with same map fix for PDT 4.32 as done for pdstemplates.c. --- tests/tst_pdstemplates.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tst_pdstemplates.c b/tests/tst_pdstemplates.c index 8e072327..3d602517 100644 --- a/tests/tst_pdstemplates.c +++ b/tests/tst_pdstemplates.c @@ -401,7 +401,7 @@ main() {1, 1, 1, 1, 1, 2, 1, 1, -4, 1, 1, 1, 4, 4, 2}, /* 1002 */ {1, 1, 1, 1, 1, 2, 1, 1, -4, 1, -1, -4, 1, -1, -4}, /* 1100 */ {1, 1, 1, 1, 1, 2, 1, 1, -4, 1, -1, -4, 1, -1, -4, 4, 1, 1, 1, 4, 1, 4}, /* 1101 */ - {1, 1, 1, 1, 1, 2, 1, 1, -2, 1}, /* 32 */ + {1, 1, 1, 1, 1, 2, 1, 1, -4, 1}, /* 32 */ {1, 1, 2, 1, -1, -4, -1, -4, 1, 1, 1, 2, 1, 1, -2, 1, -1, -4, 1, -1, -4}, /* 44 */ {1, 1, 2, 1, -1, -4, -1, -4, 1, 1, 1, 2, 1, 1, -4, 1, -1, -4, 1, -1, -4, 1, 1, 1}, /* 45 */ {1, 1, 2, 1, -1, -4, -1, -4, 1, 1, 1, 2, 1, 1, -4, 1, -1, -4, 1, -1, -4, 2, 1, 1, 1, 1, 1, 1, 4, 1, 1, 1, 4, 1, 4}, /* 46 */