gis-tools-ts - v0.6.0
    Preparing search index...

    Function grib2Template551

    • Data Representation Template 5.51 - Spectral data - complex packing

      Read more...

      Parameters

      • section: Reader
        • The unpacked subset is a set of values defined in the same way as the full set of values (on a spectrum limited to Js, Ks and Ms ), but on which scaling and packing are not applied. Associated values are stored in octets 6 onwards of section 7.
        • The remaining coefficients are multiplied by (n x (n+1))p , scaled and packed. The operator associated with this multiplication is derived from the Laplacian operator on the sphere.
        • The retrieval formula for a coefficient of wave number n is then: Y = (R+X x 2e ) x 10-d x (n x(n+1))-p where X is the packed scaled value associated with the coefficient.

      Returns {
          binaryScaleFactor: number;
          decimalScaleFactor: number;
          Js: number;
          Ks: number;
          Ms: number;
          numberOfBits: number;
          P: number;
          precision: { code: number; description: string };
          referenceValue: number;
          Ts: number;
      }

      • description of how to decode simple unpacked data
      • binaryScaleFactor: number

        Binary scale factor (E)

      • decimalScaleFactor: number

        Decimal scale factor (D)

      • Js: number

        Js ― pentagonal resolution parameter of the unpacked subset (see Note1)

      • Ks: number

        Ks ― pentagonal resolution parameter of the unpacked subset (see Note1)

      • Ms: number

        Ms ― pentagonal resolution parameter of the unpacked subset (see Note1)

      • numberOfBits: number

        Number of bits used for each packed value for simple packing, or for each group reference value for complex packing or spatial differencing

      • P: number

        P ― Laplacian scaling factor (expressed in 10^-6 units)

      • precision: { code: number; description: string }

        Precision of the unpacked subset (see Code Table 5.7)

      • referenceValue: number

        Reference value (R) (IEEE 32-bit floating-point value)

      • Ts: number

        Ts ― total number of values in the unpacked subset (see Note1)