Skip to content

Commit

Permalink
Fix for mapping of bytes for PDT 4.32 (#474)
Browse files Browse the repository at this point in the history
* Fix for mapping of bytes for PDT 4.32

Fixed byte length at index 8 from -2 to -4.

* 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.

---------

Co-authored-by: Eric Engle <EricEngle-NOAA@users.noreply.github.com>
  • Loading branch information
EricEngle-NOAA and EricEngle-NOAA authored Jan 29, 2024
1 parent 99018c8 commit 0c63c89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pdstemplates.c
Original file line number Diff line number Diff line change
Expand Up @@ -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}},
Expand Down
2 changes: 1 addition & 1 deletion tests/tst_pdstemplates.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 0c63c89

Please sign in to comment.