public class Grib2NetcdfWriter
extends java.lang.Object
implements java.io.Closeable
Constructor and Description |
---|
Grib2NetcdfWriter(java.lang.String fileIn,
java.lang.String fileOut) |
Modifier and Type | Method and Description |
---|---|
static float |
bitShave(float value,
int bitMask)
Shave n bits off the float
|
void |
close() |
static int |
getBitMask(int bitN) |
static void |
main(java.lang.String[] args) |
static void |
main2(java.lang.String[] args) |
void |
write() |
public Grib2NetcdfWriter(java.lang.String fileIn, java.lang.String fileOut) throws java.io.IOException
java.io.IOException
public void write() throws java.io.IOException
java.io.IOException
public static int getBitMask(int bitN)
public static float bitShave(float value, int bitMask)
value
- original floating pointbitMask
- bitMask from getBitMask()public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
public static void main2(java.lang.String[] args)
public static void main(java.lang.String[] args)