Details

    • Type: Improvement
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 15.1, 16-M0
    • Component/s: coverage-multidim
    • Labels:
      None

      Description

      Add tests that rotated pole GRIB2 files are read with the expected projection parameters.

      The tiny synthetic GRIB2 files used in these tests (240 and 438 byes) were created by hand from original RAP native and COSMO EU files each over 100 MB in size. I have attached *.txt notes on the procedure to create these files.

      In a nutshell:

      • grab one message with wgrib2 in ieee data format as we can make big-endian floats in python
      • create synthetic data with python
      • splice everything together with head and cat
      • use a hex editor (ghex) with python hex calculations to update all the sizes and dimensions in the header; note that all values in the GRIB2 headers are big-endian so check that box in ghex
      • use wgrib2 to convert the file back to simple packing as NetCDF-Java will not read ieee

      Tedious, but it works.

        Attachments

        1. cosmo-eu.grib2
          0.4 kB
        2. cosmo-eu-grib2.txt
          3 kB
        3. rap-native.grib2
          0.2 kB
        4. rap-native-grib2.txt
          3 kB

          Issue links

            Activity

              People

              • Assignee:
                bencaradocdavies Ben Caradoc-Davies [Administrator]
                Reporter:
                bencaradocdavies Ben Caradoc-Davies [Administrator]
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: