Package ucar.nc2.grib
Class GribData
- java.lang.Object
-
- ucar.nc2.grib.GribData
-
public class GribData extends Object
Abstraction for handling Grib 1 & 2 data in a uniform way.- Since:
- 9/1/2014
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
GribData.Bean
static class
GribData.Info
static class
GribData.InterpolationMethod
-
Constructor Summary
Constructors Constructor Description GribData()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
calcScaleOffset(GribData.Bean bean1, Formatter f)
This reports how well different compression schemes would work on the specific data.static byte[]
compressScaled(GribData.Bean bean)
static byte[]
convertToBytes(float[] data)
static byte[]
convertToBytes(int[] data)
static double
entropy(byte[] data)
static double
entropy(int nbits, int[] data)
static GribData.InterpolationMethod
getInterpolationMethod()
static void
setInterpolationMethod(GribData.InterpolationMethod interpolationMethod)
static float[]
uncompressScaled(byte[] bdata)
-
-
-
Method Detail
-
getInterpolationMethod
public static GribData.InterpolationMethod getInterpolationMethod()
-
setInterpolationMethod
public static void setInterpolationMethod(GribData.InterpolationMethod interpolationMethod)
-
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
-
compressScaled
@Nullable public static byte[] compressScaled(GribData.Bean bean) throws IOException
- Throws:
IOException
-
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)
-
-