Skip to content

Commit

Permalink
Bug fixes (tropo coeff data block and time offset)
Browse files Browse the repository at this point in the history
- The number of parameters to be consider in zdb023 is the number of orders (i.e., the maximum order + 1) and not the number of coefficients.
- the time offset in zdf057 is defined exactly by zdf057 and not plus 1
  • Loading branch information
GeoppGmbH committed Dec 4, 2024
1 parent e40ad60 commit 30729d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ssrz_blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1560,7 +1560,7 @@ def __init__(self, msg, unpacked_bits, zdf107_bit0=False):
n_coeff_triangle = compute_ncoeff_from_order_triangle(self.m_hor)
self.n_coeff = (self.m_hgt + 1) * n_coeff_triangle
# Compressed coefficients block definition of regional tropo component
self.blk = zdb023(msg, unpacked_bits, self.n_coeff)
self.blk = zdb023(msg, unpacked_bits, self.m_hor + 1)
unpacked_bits = self.blk.unpacked_bits
# Separated compressed coeff block per height
if zdf107_bit0:
Expand Down
4 changes: 2 additions & 2 deletions src/ssrz_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,11 +478,11 @@ def zdf056(msg, unpacked_bits):

def zdf057(msg, unpacked_bits):
""" SSR update interval offset of an SSR update interval.
T_offset = ZDF057 + 1
T_offset = ZDF057
"""
[pr_code, num, bits_zdf057] = prefix_coding(msg, 6, 0,
unpacked_bits=unpacked_bits)
t_offset = num + 1
t_offset = num
return [t_offset, bits_zdf057]


Expand Down

0 comments on commit 30729d4

Please sign in to comment.