public class Grib1RecordScanner
extends java.lang.Object
Grib1RecordScanner reader = new Grib1RecordScanner(raf); while (reader.hasNext()) { ucar.nc2.grib.grib1.Grib1Record gr = reader.next(); Grib1SectionProductDefinition pds = gr.getPDSsection(); Grib1SectionGridDefinition gds = gr.getGDSsection(); ... }
Constructor and Description |
---|
Grib1RecordScanner(RandomAccessFile raf) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
static boolean |
isValidFile(RandomAccessFile raf) |
Grib1Record |
next() |
static void |
setAllowBadDsLength(boolean allowBadDsLength) |
static void |
setAllowBadIsLength(boolean allowBadIsLength) |
public Grib1RecordScanner(RandomAccessFile raf) throws java.io.IOException
java.io.IOException
public static void setAllowBadIsLength(boolean allowBadIsLength)
public static void setAllowBadDsLength(boolean allowBadDsLength)
public static boolean isValidFile(RandomAccessFile raf)
public boolean hasNext() throws java.io.IOException
java.io.IOException
@Nullable public Grib1Record next() throws java.io.IOException
java.io.IOException