Package ucar.nc2.grib

Class GribData


  • public class GribData
    extends Object
    Abstraction for handling Grib 1 & 2 data in a uniform way.
    Since:
    9/1/2014
    • Constructor Detail

      • GribData

        public GribData()
    • Method Detail

      • calcScaleOffset

        public static void calcScaleOffset​(GribData.Bean bean1,
                                           Formatter f)
        This reports how well different compression schemes would work on the specific data. Should be renamed
      • uncompressScaled

        public static float[] uncompressScaled​(byte[] bdata)
      • convertToBytes

        public static byte[] convertToBytes​(float[] data)
      • convertToBytes

        public static byte[] convertToBytes​(int[] data)
      • entropy

        public static double entropy​(byte[] data)
      • entropy

        public static double entropy​(int nbits,
                                     int[] data)