Skip to content

Problem converting to RINEX Obs/Nav #40

Closed Answered by alainmuls
alainmuls asked this question in Q&A
Discussion options

You must be logged in to vote

Hi All,

I found some corrections that needs to be done to get the same values as from a raw data SBF file:

  1. values are rounded by
    SCALEDP = 8 # number of decimal places to scale float values to
    which I changed to a larger value (24)

  2. the procedure "bits2val" is not treating correctly the values. I changed it into:
    def bits2valAM(att: str, scale: float, bitfield: int) -> object:
    """
    Convert bitfield to value for given attribute type.

    :param str att: attribute type e.g. "UNT008"
    :param float scale: scaling factor (where defined)
    :param int bitfield: attribute as integer
    :return: value
    :rtype: object (int, float, char, bool)
    """

    typ = rh.atttyp(att)
    siz = rh.attsiz(att)
    val = msb = 0

    if ty…

Replies: 6 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by alainmuls
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@alainmuls
Comment options

Comment options

You must be logged in to vote
1 reply
@alainmuls
Comment options

Comment options

You must be logged in to vote
1 reply
@alainmuls
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants